{"id":148,"date":"2016-11-20T22:50:56","date_gmt":"2016-11-20T22:50:56","guid":{"rendered":"http:\/\/kloxo.web.id\/?p=148"},"modified":"2016-11-20T22:50:56","modified_gmt":"2016-11-20T22:50:56","slug":"import-a-sql-script-using-osql","status":"publish","type":"post","link":"https:\/\/kloxo.web.id\/?p=148","title":{"rendered":"Import a .SQL script using OSQL"},"content":{"rendered":"<p>untuk hasil export script .sql MS SQL Server yang berukuran besar dan tidak dapat diproses import oleh sql management studio, dapat menggunakan osql untuk mengimport nya :<\/p>\n<p><b>osql -U<\/b> YourUserName <b>-P<\/b> YourPassword <b>-S<\/b> ServerName <b>-d<\/b> DatabaseName <b>-n<\/b>-1 <b>-i<\/b> DriveLetter:SQLFileNameAndPath.sql <b>-o<\/b> DriveLetter:LogFile.txt<\/p>\n<p><u>Switches<\/u><br \/>\n<b>-U<\/b>: login ID for the specified server<br \/>\n<b>-P<\/b>: password for the login ID<br \/>\n<b>-S<\/b>: server name<br \/>\n<b>-d<\/b>: database upon which the script will be executed<br \/>\n<b>-n<\/b>: removes numbering and the prompt symbol (&gt;) from the output file<br \/>\n<b>-i<\/b>: the .SQL file name (including drive letter)<br \/>\n<b>-o<\/b>: an output file that details how the script executed (if at all)<\/p>\n<p>(http:\/\/metrix.fcny.org\/wiki\/display\/dev\/How+to+execute+a+.SQL+script+using+OSQL)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>untuk hasil export script .sql MS SQL Server yang berukuran besar dan tidak dapat diproses import oleh sql management studio, dapat menggunakan osql untuk mengimport nya : osql -U YourUserName -P YourPassword -S ServerName -d DatabaseName -n-1 -i DriveLetter:SQLFileNameAndPath.sql -o DriveLetter:LogFile.txt Switches -U: login ID for the specified server -P: password for the login ID [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-148","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/kloxo.web.id\/index.php?rest_route=\/wp\/v2\/posts\/148","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kloxo.web.id\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kloxo.web.id\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kloxo.web.id\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/kloxo.web.id\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=148"}],"version-history":[{"count":1,"href":"https:\/\/kloxo.web.id\/index.php?rest_route=\/wp\/v2\/posts\/148\/revisions"}],"predecessor-version":[{"id":149,"href":"https:\/\/kloxo.web.id\/index.php?rest_route=\/wp\/v2\/posts\/148\/revisions\/149"}],"wp:attachment":[{"href":"https:\/\/kloxo.web.id\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=148"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kloxo.web.id\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=148"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kloxo.web.id\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=148"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}