So I create a quick VBScript to do this for me:
dim oCnn, oCmd
set oCnn = createobject("ADODB.Connection")
set oCmd = CreateObject("ADOdb.Command")
oCnn.Open "Provider='sqloledb';Data Source='myServer'; Integrated Security='SSPI';Initial Catalog='TestDB';"
oCmd.ActiveConnection = oCnn
oCmd.CommandText = "sp_who"
oCmd.CommandType = 4 'adCmdStoredProc
oCmd.execute
cscript RPC.vbs
and in SQL Profiler, I can see the RPC:Completed event



Subscribe to this blog
Briefcase
Print
No comments.