Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Import/Export (DTS) and Replication (2000)
 SQL command to Export table to flat file

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2007-03-12 : 09:28:18
Robert writes "Is there a way to export a complete table to a text file using only tsql commands without depending on BCP or DTS? I was wondering if INSERT INTO would have possibilities."

rlaubert
Yak Posting Veteran

96 Posts

Posted - 2007-03-16 : 12:12:07
What are you going to connect to sql with? Have to have a front end to run the code from. You can use OSQL or Query Analyzer. Both will let you save the results.

Raymond Laubert
MCDBA, MCITP:Administration, MCT
Go to Top of Page

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2007-03-16 : 12:13:36
Or OPENROWSET.


Peter Larsson
Helsingborg, Sweden
Go to Top of Page
   

- Advertisement -