Oct 25, 2001 #1 kenworld Technical User Joined Aug 4, 2001 Messages 3 Location US Example: Select * from TEST_TBL result are saved to a file called text c:\test.txt
Oct 25, 2001 #2 GRHE Programmer Joined Jun 19, 2001 Messages 29 Location GB Try this declare @str varchar(100) select @str = 'isql -Q "set nocount on SELECT * from TEST_TBL" -o\\test.txt' exec master..xp_cmdshell @str also have a look at the many params of isql enjoy.............. Upvote 0 Downvote
Try this declare @str varchar(100) select @str = 'isql -Q "set nocount on SELECT * from TEST_TBL" -o\\test.txt' exec master..xp_cmdshell @str also have a look at the many params of isql enjoy..............