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
 General SQL Server Forums
 New to SQL Server Programming
 writing Sql Code into Text Files

Author  Topic 

aoriju
Posting Yak Master

156 Posts

Posted - 2009-02-16 : 03:22:12
Hai,

Iwant to write sqlcode into Textfiles using Sql Query.One thing don't use xp_CmdShell

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2009-02-16 : 07:42:38
You can do this via command prompt. Read abt bcp in sql server help file

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page

sakets_2000
Master Smack Fu Yak Hacker

1472 Posts

Posted - 2009-02-16 : 07:44:37
quote:
Originally posted by aoriju

Hai,

Iwant to write sqlcode into Textfiles using Sql Query.One thing don't use xp_CmdShell



Just curious, why without xp_cmdshell ?
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2009-02-16 : 08:02:55
quote:
Originally posted by sakets_2000

quote:
Originally posted by aoriju

Hai,

Iwant to write sqlcode into Textfiles using Sql Query.One thing don't use xp_CmdShell



Just curious, why without xp_cmdshell ?

One of the questions asked in interview

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -