Wednesday, January 07, 2009
Deployment Forum HomeDeployment Forum ArticlesDeployment Forum Download LibraryDeployment Forum Member BlogsDeployment Forum Community Forums
Member Login
StandardLiveID


Register
Forgot Password ?



Guests can view and read messages in the community forums, but you must register and log in to Deployment Forum before you can post messages. Click Register at the top of this page. Before posting messages, please read the forum guidelines at the bottom of this page.

Subject: userexit.vbs broken when migrating from BDD2007
Prev Next
You are not authorized to post a reply.

AuthorMessages
NeilBUser is Offline

Posts:8

Send Message
02/04/2008 12:18 PM  
Just spent a few days working out why a userexit.vbs script that works with BDD2007 failed on MD so I thought I'd better share it.

 Error showed up as a Type Mismatch error in userexit.vbs

The basic problem is that ZTIUtility.vbs no longer creates a global dictionary called dicSQLConnections. The userexit.vbs was calling an SQL stored procedure using a connection that used to be kept in dicSQLConnections.

Original code was:

set rs = createobject("adodb.recordset")
Set conn = dicSQLConnections("MCRSMS01")
rs.Open "Exec spSS_RoleSelect",conn

Fixed code:

        Dim oSQL
        Set oSQL = new Database                'object defined in ZTIUtility
        oSQL.SectionName = sDetail             'populate object
 

set rs = createobject("adodb.recordset")
Set conn = oSQL.Connect
rs.Open "Exec spSS_RoleSelect",conn

Hope this helps someone else!
Jerry HoneycuttUser is Offline
Deployment Forum MVP

Posts:68

Send Message
02/13/2008 12:55 AM  
Thanks!
You are not authorized to post a reply.
Forums > Deployment Solutions > Zero Touch > userexit.vbs broken when migrating from BDD2007



ActiveForums 3.7
Forum Policies
Minimize

These forums are a user-supported community for IT professionals to exchange deployment tips, solutions, and techniques. For the benefit of all Deployment Forum members, please observe the following guidelines when posting to these forums:

  • We reserve the right to remove any message. Our moderators will remove all messages that are not respectful or productive. Profanity, racism, prejudice, and flaming are not tolerated.
  • Do not advertise products or services. Our moderators will remove all advertisements or service announcements. Product and service recommendations from active Deployment Forum members are encouraged, however.
  • Make sure your question isn't already answered. Before posting questions, search the forums. After ensuring that your questions are unique, post them to the most appropriate forum. This will help reduce noise in the forums.
  • Help make the most of each thread. Do not post unrelated messages to a thread. Also, if you've resolved a question outside of these forums, please share the solution with other members by posting it back to the thread.
  • Do not share confidential information. Confidential information includes product keys and addresses. Our moderators will edit any message containing confidential information, so double-check messages and their attachments before posting them.
  • Post messages using only the English language. For the benefit of all Deployment Forum members, please post your messages using the English language.

We hope that you enjoy using this community. Please submit your comments and feedback on the Comments and Feedback page or post them to the Comments, Feedback forum.



Privacy Statement  |  Terms Of Use
© 2007 Jerry Honeycutt