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
 SQL Server 2000 Forums
 Transact-SQL (2000)
 Run an exe from Store proc

Author  Topic 

dodi
Starting Member

9 Posts

Posted - 2003-11-06 : 10:53:06
hi all

I need a store proc that can "Shell or run" or wht ever
an exe

Page47
Master Smack Fu Yak Hacker

2878 Posts

Posted - 2003-11-06 : 12:01:35
xp_cmdshell ... look it up in Books Online

Jay White
{0}
Go to Top of Page

robvolk
Most Valuable Yak

15732 Posts

Posted - 2003-11-06 : 13:14:31
Make sure you do NOT use xp_cmdshell to run things like Word, Outlook, or Internet Explorer. Do not run any program that doesn't automatically close itself. A program that has a user interface or requires user input to terminate will hang and potentially crash SQL Server.
Go to Top of Page

dodi
Starting Member

9 Posts

Posted - 2003-11-09 : 03:15:33
Thank's for the the help my mistake was i tried running the calc
on with the xp_cmdshell

Go to Top of Page

Merkin
Funky Drop Bear Fearing SQL Dude!

4970 Posts

Posted - 2003-11-09 : 04:02:00
Oh my god.
Why would you want to do that ?


Damian
Go to Top of Page

Stoad
Freaky Yak Linguist

1983 Posts

Posted - 2003-11-09 : 04:07:39
Oho!! calc.exe... I think it was miner.exe :)
Go to Top of Page

dodi
Starting Member

9 Posts

Posted - 2003-11-09 : 07:52:15
What i am tring to do is
I have a station DB that needs to update some centers DB's
and on the center i need to run some Quality check on the data
Now it's beeing fixed by a dll so my solution was to change the dll
to an exe but my mistake i tried to check how to do it and my check
was on the calc.exe
and not somthing with out interface

Go to Top of Page
   

- Advertisement -