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
 create folder ithrough sqlserver

Author  Topic 

sent_sara
Constraint Violating Yak Guru

377 Posts

Posted - 2010-03-02 : 15:12:36
Hi,

could any one help to create folder named test into my c: path
through sql without xp_cmdshell

Thanks in advance

russell
Pyro-ma-ni-yak

5072 Posts

Posted - 2010-03-02 : 15:24:37
i guess u could sp_OACreate to create an instance of the FileSystemObject, Or a CLR routine, but really, SQL is the wrong tool for the job.
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2010-03-03 : 09:42:17
you can use xp_create_subdir extended procedure
http://www.mssqltips.com/tip.asp?tip=1460

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

sent_sara
Constraint Violating Yak Guru

377 Posts

Posted - 2010-03-03 : 15:07:17
whether there is any possiblity of without xp command?

quote:
Originally posted by visakh16

you can use xp_create_subdir extended procedure
http://www.mssqltips.com/tip.asp?tip=1460

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/



Go to Top of Page
   

- Advertisement -