Solved

"Type name is invalid" error when executing stored proceedure.

Posted on 2002-04-17
3
492 Views
Last Modified: 2012-06-27
   
When executing the following code.  I get an error "Type name is invalid" #-214?????? on the last line. The command object is executing a stored proceedure on a SQL server 2000 database.  The odd thing is that this code works flawlessly on the development machine but errors on test machines.

    dim LastUpdateStamp as long
    Dim UpdateCheckCmd As New ADODB.Command
    Dim UpdateTbl As New ADODB.Recordset
   
    UpdateCheckCmd.CommandText = "LookForUpdate"
    UpdateCheckCmd.CommandType = adCmdStoredProc
    UpdateCheckCmd.ActiveConnection = NetDB
    UpdateCheckCmd.Parameters.Refresh
    UpdateCheckCmd(1) = LastUpdateStamp
   
    Set UpdateTbl = UpdateCheckCmd.Execute

Are the test machines missing resources? Any ideas would be appreciated

thanks
0
Comment
Question by:millbor5
  • 2
3 Comments
 
LVL 44

Accepted Solution

by:
bruintje earned 100 total points
ID: 6949017
Hi millbor5,

Do you have the same mdac version installed on production and development?

:O)Bruintje
0
 

Author Comment

by:millbor5
ID: 6949089
thanks friend
0
 
LVL 44

Expert Comment

by:bruintje
ID: 6949101
glad it helped, and thanks for the grade :)
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

919 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now