{"id":2923,"date":"2014-01-20T10:14:53","date_gmt":"2014-01-20T10:14:53","guid":{"rendered":"http:\/\/www.withdata.com\/blog\/?p=2923"},"modified":"2026-07-15T05:00:01","modified_gmt":"2026-07-15T05:00:01","slug":"export-sql-server-query-results-to-txt-file","status":"publish","type":"post","link":"https:\/\/www.withdata.com\/blog\/sqltotxt\/export-sql-server-query-results-to-txt-file.html","title":{"rendered":"Export SQL Server query results to TXT file"},"content":{"rendered":"<p>Want to export data from  <a href=\"https:\/\/www.microsoft.com\/en-us\/cloud-platform\/sql-server\">SQL Server<\/a>  query to Txt file?<\/p>\n<p>Using <a href=\"https:\/\/www.withdata.com\/sqltotxt\/\">SqlToTxt<\/a>, you can export data from SQL Server query to Txt file easily and fast, just a few mouse clicks!<\/p>\n<p>Here you can <a href=\"https:\/\/www.withdata.com\/down\/SqlToTxt.exe\">download<\/a> and install <a href=\"https:\/\/www.withdata.com\/sqltotxt\/\">SqlToTxt<\/a>.<\/p>\n<h2>Export data from SQL Server query to Txt file<\/h2>\n<p> Click &#8220;Export From Query&#8221; at task dialog.<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.withdata.com\/images\/dbtofile\/wizard-task.png\" ALT=\"Export data from SQL Server Query To Txt File - task window\" width=\"636\" height=\"457\" style=\"max-width:100%;height:auto;display:block;\"><\/p>\n<p>then show the Export Query form.<\/p>\n<p>1. Select Txt file type.<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.withdata.com\/images\/dbtofile\/select-txt-type.png\" ALT=\"Export Query Results from SQL Server Table To Txt File - select Txt file type\" width=\"489\" height=\"200\" style=\"max-width:100%;height:auto;display:block;\"><\/p>\n<p>2. Enter query.<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.withdata.com\/images\/dbtofile\/query-to-a-file-source.png\" ALT=\"Unload data from SQL Server Query ResultSet To Txt File - select table\" width=\"722\" height=\"572\" style=\"max-width:100%;height:auto;display:block;\" loading=\"lazy\" decoding=\"async\"><\/p>\n<p>3. Enter data file name.<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.withdata.com\/images\/dbtofile\/query-to-txt-target.png\" ALT=\"Extract data from SQL Server Query Results To Txt File - enter file name\" width=\"722\" height=\"572\" style=\"max-width:100%;height:auto;display:block;\" loading=\"lazy\" decoding=\"async\"><\/p>\n<p>4. Summary.<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.withdata.com\/images\/dbtofile\/query-to-txt-summary.png\" ALT=\"Convert data from SQL Server Query ResultSet To Txt File - summary\" width=\"722\" height=\"572\" style=\"max-width:100%;height:auto;display:block;\" loading=\"lazy\" decoding=\"async\"><\/p>\n<p>5. Export.<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.withdata.com\/images\/dbtofile\/query-to-txt-convert.png\" ALT=\"Dump data from SQL Server SQL Query To Txt File - export\" width=\"722\" height=\"572\" style=\"max-width:100%;height:auto;display:block;\" loading=\"lazy\" decoding=\"async\"><\/p>\n<hr style=\"clear: both;\" \/>\n<p><a href=\"http:\/\/www.withdata.com\/sqltotxt\/\">More about SqlToTxt &#8211; the tool to export data from SQL Server query to Txt file<\/a><\/p>\n<div style=\"clear: both;\">\n<p>30-day free trial <a href=\"http:\/\/www.withdata.com\/down\/SqlToTxt.exe\"><img decoding=\"async\" src=\"http:\/\/www.withdata.com\/images\/btn_download_green.png\" alt=\"Download SqlToTxt\" width=\"165\" height=\"50\" style=\"max-width:100%;height:auto;\" loading=\"lazy\" decoding=\"async\" \/><\/a>US$59.95 <a href=\"http:\/\/www.withdata.com\/sqltotxt\/purchase.html\"><img decoding=\"async\" src=\"http:\/\/www.withdata.com\/images\/btn_buynow_green.png\" alt=\"Buy SqlToTxt\" width=\"154\" height=\"45\" style=\"max-width:100%;height:auto;\" loading=\"lazy\" decoding=\"async\" \/> <\/a><\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Want to export data from SQL Server query to Txt file? Using SqlToTxt, you can export data from SQL Server query to Txt file easily and fast, just a few mouse clicks! Here you can download and install SqlToTxt. Export data from SQL Server query to Txt file Click &#8220;Export From Query&#8221; at task dialog. [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[65],"tags":[589,257,1339],"class_list":["post-2923","post","type-post","status-publish","format-standard","hentry","category-sqltotxt","tag-sql-server-query-results-export-to-txt","tag-sql-server-to-txt","tag-sqltotxt"],"_links":{"self":[{"href":"https:\/\/www.withdata.com\/blog\/wp-json\/wp\/v2\/posts\/2923","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.withdata.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.withdata.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.withdata.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.withdata.com\/blog\/wp-json\/wp\/v2\/comments?post=2923"}],"version-history":[{"count":7,"href":"https:\/\/www.withdata.com\/blog\/wp-json\/wp\/v2\/posts\/2923\/revisions"}],"predecessor-version":[{"id":7473,"href":"https:\/\/www.withdata.com\/blog\/wp-json\/wp\/v2\/posts\/2923\/revisions\/7473"}],"wp:attachment":[{"href":"https:\/\/www.withdata.com\/blog\/wp-json\/wp\/v2\/media?parent=2923"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.withdata.com\/blog\/wp-json\/wp\/v2\/categories?post=2923"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.withdata.com\/blog\/wp-json\/wp\/v2\/tags?post=2923"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}