vbscript in sql server

  • Can I schedule my VB application in sql server.If it's possible how can i do that.If not how can schedule my vb script to run at scheduled times.

  • Your best bet would be to execute your VB Application or VBScript via xp_cmdshell.

    You could then use SQL Agent to schedule the executions of the xp_cmdshell script

  • thank you very much

  • when i try to use xp_cmdshell,i am getting an error that could not find the stored procedure 'xp_cmdshell'.

    What should be the reason,how could i come across this one,

    Thanks

  • Make sure you're executing the proc. under the mater DB context

    I recommend fully qualified names

    Ex. Exec Master..xp_cmdshell 'c:\test.vbs'

    MW


    MW

  • Sometime that XProc is manually renamed or dropped by DBAs due to security issues. You may want to confirm that the proc still exists on the server.

    -Dan


    -Dan

Viewing 6 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic. Login to reply