load sql server table data to flat file with out applications

  • 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.:-)

  • 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

  • You can use BCP

  • DTS is another one to use

  • 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


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • table is very big:-)

  • 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