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
 General SQL Server Forums
 New to SQL Server Programming
 Calling notepad.exe from a stored procedure

Author  Topic 

winsh
Starting Member

1 Post

Posted - 2010-02-24 : 04:40:24
Hello,

I busy working on a stored procedure but i havent successfully been able to get it right to open a notepad.exe file after the storedproc has been executed.

Can anyone please help?

Thanks,
Winsh

GilaMonster
Master Smack Fu Yak Hacker

4507 Posts

Posted - 2010-02-24 : 05:12:52
Why would you want to do that? What use is opening notepad on the SQL Server machine?

What are you trying to achieve here?

--
Gail Shaw
SQL Server MVP
Go to Top of Page

Sachin.Nand

2937 Posts

Posted - 2010-02-24 : 05:26:58
I think it shold be done at front end with something like this for VB.NET after the SP has been executed

Imports System
Imports System.Diagnostics
Dim program As New Process()
program.StartInfo.FileName = "Notepad.exe"
program.StartInfo.Arguments = " "
program.Start()



PBUH
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2010-02-24 : 10:14:35
quote:
Originally posted by winsh

Hello,

I busy working on a stored procedure but i havent successfully been able to get it right to open a notepad.exe file after the storedproc has been executed.

Can anyone please help?

Thanks,
Winsh


why do you need to do this?
if your intention is just exeporting data to text file use bcp

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page
   

- Advertisement -