is there any stored procedure or extended stored procedure that can be used to creat a new directory on the machine that the sequal server is running on even if it is a remote machine.
If a login has permissions and xp_cmdshell is avaliable, you can us this extended stored proc to do what you want.
exec xp_cmdshell 'md e:\mssql\dba_scripts'
You should be able to use the OLE Automation procedures to create a File System Object and use the CreateFolder method to create the directory. Use sp_oacreate to create the object - FSO. Use FSO.CreateFolder to create the directory.
See OLE Automation in SQL BOL. Terry L. Broadbent - DBA
Computing Links:
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.