Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Problem with SQL 2005 ActiveX job


Problem with SQL 2005 ActiveX job

Author
Message
James Goodwill
James Goodwill
Forum Newbie
Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)

Group: General Forum Members
Points: 1 Visits: 104
Hi,

This is my first ever post, so you can guess I’m desperate!

I have a job that executes an ActiveX piece of VBScript. The VBScript opens a SQL Connection to the instance running the job, and gathers data about drive/LUN capacity and inserts the result in a table. All works fine on 20 or so instances I have. They are a mixture of SQL Server 2005 and 2008.

I have one particular SQL Server 2005 instance where the job starts but does nothing - it starts and just sits there. It doesn't fail - nothing.

This is the bit of the code that makes the connection:


Const DB_CONNECT_STRING = "Provider=SQLOLEDB;Data Source=MyInstance;Initial Catalog=MyDB;Integrated Security=SSPI"
Set myConn = CreateObject("ADODB.Connection")
Set myCommand = CreateObject("ADODB.Command")
myConn.Open DB_CONNECT_STRING
Set myCommand.ActiveConnection = myConn



I have tried putting the VBScript in a file on the C: drive, and called cscript from an Operating System CmdExec job - and it works. So, SQL Server Agent permissions are not the issue here. The SQL Server Agent account is in the Administrators Group.

However, I'd like to keep the code within the ActiveX job - self contained.

I suspect the problem lies within the ActiveX RTE in SQL Server 2005.

Any help would be gratefully appreciated.


Thanks, James.
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search