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
 storing in local folder

Author  Topic 

sent_sara
Constraint Violating Yak Guru

377 Posts

Posted - 2010-03-03 : 16:16:37
Hi,

can anyone help me how to store the resultset into local machine
without using xp_cmdshell

since xp_cmdshell can be used only by Administration..
how the normal user can do this?

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2010-03-03 : 16:19:43
You can use bcp.exe, which is a command line utility. You have it on your client machine if you've got the SQL tools installed. You can also use DTS/SSIS.

Why not do a simple save from the file menu though?

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog

"Let's begin with the premise that everything you've done up until this point is wrong."
Go to Top of Page

sent_sara
Constraint Violating Yak Guru

377 Posts

Posted - 2010-03-03 : 16:42:26
I need only through T-Sql statement, because this will be scheduled by one of our application.
whether bcp works with T-Sql Statement,which I mean is through Dynamic query
quote:
Originally posted by tkizer

You can use bcp.exe, which is a command line utility. You have it on your client machine if you've got the SQL tools installed. You can also use DTS/SSIS.

Why not do a simple save from the file menu though?

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog

"Let's begin with the premise that everything you've done up until this point is wrong."

Go to Top of Page
   

- Advertisement -