January 26, 2009 at 8:44 am
Hi
Can someone give me a hint if it's, in any way, possible to call up a vbscript without using xp_cmdshell....and in that case how to do it
Regards
H
January 26, 2009 at 7:21 pm
If you have VB, you could convert the script to a CLR... I'm sure there's other ways, but I don't know what they are.
What I'd be more interested in finding out is what the VB Script does... chances are, there just might be a way to do the same thing without the VB Script.
--Jeff Moden
Change is inevitable... Change for the better is not.
January 26, 2009 at 9:05 pm
As Jeff said, chances are whatever you were going to do, you could do it in tSQL;
outside of that, you can use sp_OACreate to run vbscripts, or an executable, or call a dll...it depends on what you wanted to try and do.
Lowell
January 27, 2009 at 2:14 am
Thanks for the answers....
I think I might have found the solution for the vbscript part...but still one big thing remains..to be able to call up BCP utility command for bulk copy from within a stored procedure. I want to generate an xml based output file from some tables in my database (runtime) and for that part I have also used xp_cmdshell....any ideas how to replace that xp_cmdshell call for BCP at runtime ?
br
H
January 27, 2009 at 6:46 pm
You still haven't answered my question... what does the VB Script do? Also, which direction is the BCP in?
--Jeff Moden
Change is inevitable... Change for the better is not.
Viewing 5 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply