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
 SQL Server Development (2000)
 Direct results from a query to an output text file

Author  Topic 

sasproc
Starting Member

1 Post

Posted - 2009-08-12 : 00:56:21
Hi all,

I am using SQLSERVER2000,i want to write a query and then re-direct it

to an output file like .txt or xls format.so please can you guide me

how to do this as i am very new.Please help me.

Thanks & Regards,
SASPROC


sasproc

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2009-08-12 : 01:04:28
you can use BCP queryout to a text file

See http://msdn.microsoft.com/en-us/library/aa174646%28SQL.80%29.aspx


KH
[spoiler]Time is always against us[/spoiler]

Go to Top of Page

senthil_nagore
Master Smack Fu Yak Hacker

1007 Posts

Posted - 2009-08-12 : 01:53:25
Refer this too

http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=49926


Senthil.C
------------------------------------------------------
[Microsoft][ODBC SQL Server Driver]Operation canceled

http://senthilnagore.blogspot.com/
Go to Top of Page

jezemine
Master Smack Fu Yak Hacker

2886 Posts

Posted - 2009-08-12 : 02:18:00
ugh, prefer bcp to that!


elsasoft.org
Go to Top of Page
   

- Advertisement -