SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 How to Execute External Application
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

rikleo2001
Posting Yak Master

New Zealand
181 Posts

Posted - 04/18/2007 :  22:00:49  Show Profile  Send rikleo2001 a Yahoo! Message  Reply with Quote
Hi Guys,

I have an EXE file which I want to execute it from Stored proceudre along with some input parameters.
How do I acheive this?
I tried this but didn't work
ECLARE @DBName SYSNAME
DECLARE @cmd Nvarchar(1000)
DECLARE @Path VARCHAR(100)
declare @result int

set @Path = 'D:\GeoGauge\'
SELECT @cmd = 'myexe.exe ' + @Path + 'abc.txt' + ' ' + @Path + 'xyz.dat'
EXEC @result = master.dbo.xp_cmdshell @cmd

Any ideas?


SKR

rikleo2001
Posting Yak Master

New Zealand
181 Posts

Posted - 04/18/2007 :  22:29:33  Show Profile  Send rikleo2001 a Yahoo! Message  Reply with Quote
Sorry to bother you guys. I got it working now. Just some network issues.

SKR
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.06 seconds. Powered By: Snitz Forums 2000