{"id":675,"date":"2011-04-02T02:07:38","date_gmt":"2011-04-02T07:07:38","guid":{"rendered":"http:\/\/swildow.darktech.org\/wp\/?p=675"},"modified":"2011-04-02T02:07:38","modified_gmt":"2011-04-02T07:07:38","slug":"export-table-mssql","status":"publish","type":"post","link":"http:\/\/www.wildow.com\/blog\/?p=675","title":{"rendered":"export table  mssql"},"content":{"rendered":"<ol>\n<li>Click the Windows &#8220;Start&#8221; button. Enter &#8220;cmd&#8221; into the text box and press &#8220;Enter&#8221;. This opens the Windows command line.<\/li>\n<li>Type the following code to export your table to a CSV file:\n<p>bcp database.dbo.customer out customer.csv \/Uuser \/Ppassword \/ScustomerServer \/c \/t<\/p>\n<p>In this example, the customer table is exported to the &#8220;customer.csv&#8221; file. The &#8220;user&#8221; and &#8220;password&#8221; are the values used to access the server. &#8220;CustomerServer&#8221; is the name of your database server.<\/li>\n<li>Press &#8220;Enter&#8221; to execute your bcp command. It may take several minutes to export to the CSV file, depending on the size of your table.<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>Click the Windows &#8220;Start&#8221; button. Enter &#8220;cmd&#8221; into the text box and press &#8220;Enter&#8221;. This opens the Windows command line. Type the following code to export your table to a CSV file: bcp database.dbo.customer out customer.csv \/Uuser \/Ppassword \/ScustomerServer \/c &#8230; <a class=\"more-link\" href=\"http:\/\/www.wildow.com\/blog\/?p=675\">Read More &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-675","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/675","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=675"}],"version-history":[{"count":1,"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/675\/revisions"}],"predecessor-version":[{"id":676,"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/675\/revisions\/676"}],"wp:attachment":[{"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=675"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=675"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=675"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}