Click here to Skip to main content
15,903,385 members
Home / Discussions / Database
   

Database

 
QuestionHow do i display Values Horizonatally In Crystal Reports Pin
Veerkumar Patil30-Mar-09 4:31
Veerkumar Patil30-Mar-09 4:31 
AnswerRe: How do i display Values Horizonatally In Crystal Reports Pin
anup keshari30-Mar-09 4:58
anup keshari30-Mar-09 4:58 
QuestionAbout Database Certifcation Pin
Isaac Gordon30-Mar-09 2:03
Isaac Gordon30-Mar-09 2:03 
AnswerRe: About Database Certifcation Pin
Eddy Vluggen30-Mar-09 3:14
professionalEddy Vluggen30-Mar-09 3:14 
QuestionDeploying SQL Server Pin
kbalias30-Mar-09 1:16
kbalias30-Mar-09 1:16 
AnswerRe: Deploying SQL Server Pin
Vimalsoft(Pty) Ltd30-Mar-09 4:00
professionalVimalsoft(Pty) Ltd30-Mar-09 4:00 
AnswerRe: Deploying SQL Server Pin
Mycroft Holmes30-Mar-09 21:56
professionalMycroft Holmes30-Mar-09 21:56 
QuestionHow to run exe file using xp_cmdshell Pin
Krushna Sahu30-Mar-09 0:08
Krushna Sahu30-Mar-09 0:08 
Hello everyone,

I've a exe file in C:\. I need to run it from stored proc using xp_cmdshell. Please note that I'm using SQL Server 2000.

My stored proc is :

Create proc callExe
As
EXEC master.dbo.xp_cmdshell 'C:\PrintToPDFConsole.exe'

After executing this, the output is :

NULL
Unhandled Exception: System.ComponentModel.Win32Exception: No application is associated with the specified file for this operation
at PrintToPDF.Program.Main(String[] args)
NULL

and the exe file did not run.

Please help in this.

Also, I've tried with common exe file like 'notepad.exe' like:

ALTER proc callExe
As
EXEC master.dbo.xp_cmdshell 'notepad.exe'

When I executed this, the execution is going on and not showing any output. The execution time is more that 10 mins and going on...
Then I forcefully closed the isqlw.exe from Task Manager.

Is that mean exe file can't be executed in sql server 2000 using xp_cmdshell ?

--Krushna Chandra Sahu
prfkrushna@gmail.com

AnswerRe: How to run exe file using xp_cmdshell Pin
knagnayak30-Mar-09 0:15
knagnayak30-Mar-09 0:15 
GeneralRe: How to run exe file using xp_cmdshell Pin
Krushna Sahu30-Mar-09 2:55
Krushna Sahu30-Mar-09 2:55 
QuestionSQL Server Memory Usage Problem Pin
VikashGohil29-Mar-09 22:16
VikashGohil29-Mar-09 22:16 
AnswerRe: SQL Server Memory Usage Problem Pin
Lambin6-Apr-09 18:24
Lambin6-Apr-09 18:24 
QuestionService Account - Account Name Pin
sawerr29-Mar-09 6:57
sawerr29-Mar-09 6:57 
Questionsql noob question on COUNT Pin
Eytukan29-Mar-09 4:12
Eytukan29-Mar-09 4:12 
AnswerRe: sql noob question on COUNT Pin
ed575629-Mar-09 4:24
ed575629-Mar-09 4:24 
GeneralRe: sql noob question on COUNT Pin
Eytukan29-Mar-09 4:29
Eytukan29-Mar-09 4:29 
GeneralRe: sql noob question on COUNT Pin
ed575629-Mar-09 6:54
ed575629-Mar-09 6:54 
GeneralRe: sql noob question on COUNT Pin
Eytukan29-Mar-09 7:00
Eytukan29-Mar-09 7:00 
GeneralRe: sql noob question on COUNT Pin
ed575629-Mar-09 16:45
ed575629-Mar-09 16:45 
GeneralRe: sql noob question on COUNT Pin
Eytukan29-Mar-09 19:18
Eytukan29-Mar-09 19:18 
GeneralRe: sql noob question on COUNT Pin
Eytukan29-Mar-09 6:16
Eytukan29-Mar-09 6:16 
GeneralRe: sql noob question on COUNT Pin
Eytukan29-Mar-09 6:48
Eytukan29-Mar-09 6:48 
AnswerRe: sql noob question on COUNT Pin
Jörgen Andersson29-Mar-09 8:48
professionalJörgen Andersson29-Mar-09 8:48 
GeneralRe: sql noob question on COUNT Pin
Eytukan29-Mar-09 19:18
Eytukan29-Mar-09 19:18 
AnswerRe: sql noob question on COUNT Pin
anup keshari30-Mar-09 5:04
anup keshari30-Mar-09 5:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.