﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / Article Discussions / Article Discussions by Author / Discuss content posted by Manish Mathur  / Export Data in Text File Using SQLCMD in SQL SERVER 2005 / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Fri, 24 May 2013 02:51:15 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Export Data in Text File Using SQLCMD in SQL SERVER 2005</title><link>http://www.sqlservercentral.com/Forums/Topic657284-1474-1.aspx</link><description>This seems to be nice.  However, I ahve a question.  I am trying to get SQL to create a tab delimited text file but I keep getting a comma delimited text file with the stored procedure I use.  Now, I am wondering what kind of text file is created using the code you have given also will it be possible to specify what kind of text file can be output?Thank you,Asha</description><pubDate>Tue, 26 Apr 2011 17:38:18 GMT</pubDate><dc:creator>avanch-990710</dc:creator></item><item><title>RE: Export Data in Text File Using SQLCMD in SQL SERVER 2005</title><link>http://www.sqlservercentral.com/Forums/Topic657284-1474-1.aspx</link><description>Nice script! As an alternate workaround you could also make use of bcp command.Thanks</description><pubDate>Fri, 22 Apr 2011 11:17:37 GMT</pubDate><dc:creator>AmolNaik</dc:creator></item><item><title>RE: Export Data in Text File Using SQLCMD in SQL SERVER 2005</title><link>http://www.sqlservercentral.com/Forums/Topic657284-1474-1.aspx</link><description>What is the max size of the file that can be created using this method? I am trying to write a text file in more or less same manner, but it wont write file above 2 MB :( and the table contents would definitely make the file size go upto or &amp;gt; 10 MB. Please suggest.</description><pubDate>Wed, 24 Mar 2010 14:02:33 GMT</pubDate><dc:creator>sudheer babu chava</dc:creator></item><item><title>RE: Export Data in Text File Using SQLCMD in SQL SERVER 2005</title><link>http://www.sqlservercentral.com/Forums/Topic657284-1474-1.aspx</link><description>Okay I seem to be missing something here, the query seems to fail at the SET command. May seem like a silly question but I am failing to also see where the query gets inputted into all this. Can some one please help...the description of the script sounds like a perfect fit for what I am trying to do. I have 3 sql scripts that I have to run in order to get a output which I copy paste into txt file. This script sounds like it would eliminate that problem.</description><pubDate>Wed, 04 Nov 2009 17:16:58 GMT</pubDate><dc:creator>khuzaan</dc:creator></item><item><title>RE: Export Data in Text File Using SQLCMD in SQL SERVER 2005</title><link>http://www.sqlservercentral.com/Forums/Topic657284-1474-1.aspx</link><description>Great script.  Keep up the good work.My only difficulty is that xpcommandshell is [b][i][u]forbidden[/u][/i][/b] at some of my production sites.</description><pubDate>Tue, 24 Mar 2009 09:17:33 GMT</pubDate><dc:creator>Charles Kincaid</dc:creator></item><item><title>Export Data in Text File Using SQLCMD in SQL SERVER 2005</title><link>http://www.sqlservercentral.com/Forums/Topic657284-1474-1.aspx</link><description>Comments posted to this topic are about the item [B]&lt;A HREF="/scripts/SQLCMD/65830/"&gt;Export Data in Text File Using SQLCMD in SQL SERVER 2005&lt;/A&gt;[/B]</description><pubDate>Sat, 14 Feb 2009 21:32:28 GMT</pubDate><dc:creator>manish.mathur</dc:creator></item></channel></rss>