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.
| Author |
Topic |
|
edpel
Starting Member
22 Posts |
Posted - 2002-09-25 : 12:00:11
|
| Is it possible to access a command line inside of a stored procedure to run other programs or access files?Thanks,Eddie |
|
|
nr
SQLTeam MVY
12543 Posts |
Posted - 2002-09-25 : 12:03:14
|
| look at master..xp_cmdshell==========================================Cursors are useful if you don't know sql.DTS can be used in a similar way.Beer is not cold and it isn't fizzy. |
 |
|
|
robvolk
Most Valuable Yak
15732 Posts |
Posted - 2002-09-25 : 12:04:33
|
You can do this using the xp_cmdshell procedure, it allows you to run command-line programs. Note that you CANNOT use it to run programs like MS Word or Excel, or any program that has a user interface or requires any user interaction.Books Online has more details on xp_cmdshell. Edited by - robvolk on 09/25/2002 12:04:59 |
 |
|
|
|
|
|