September 25, 2012 at 4:03 am
Hi,
This is vivek, i have one requirement load sql server table data to flat file(text file) with out applications.please any one help to me.
Thanks&Regards,
vivek.:-)
September 25, 2012 at 4:52 am
If your table is not very big, you could SELECT * FROM Table using 'Results to Text' instead of grid, then copy & paste the output to a text file.:-D
September 25, 2012 at 4:55 am
You can use BCP
September 25, 2012 at 5:39 am
DTS is another one to use
September 25, 2012 at 5:50 am
unless you consider dbmail creating an attachment as a file for an email, SQL server itself, doesn't have any native ways to write files to disk that I can think of; everything's an application...SQL Server Management Studio itself,, bcp,dts/ssis, CLR methods, powershell, Office like excel/word, custom applicaitons, etc all would count as "applications" in my book.
it would be better for you to identify what applications you don't wnat to use instead.
what's the real requirement? write data to disk, or not use applications at all? Think it through and let us know what you really need to do.
Lowell
September 25, 2012 at 7:21 am
table is very big:-)
September 25, 2012 at 8:04 am
You can try OPENROWSET, documented in Books Online.
Viewing 7 posts - 1 through 6 (of 6 total)
You must be logged in to reply to this topic. Login to reply