Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
51002: [Microsoft][ODBC SQL Server Driver]Invalid Descriptor Index
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Rick  
View profile  
 More options Jan 26, 12:52 pm
Newsgroups: microsoft.public.vb.database.odbc
From: Rick <R...@discussions.microsoft.com>
Date: Mon, 26 Jan 2009 09:52:09 -0800
Local: Mon, Jan 26 2009 12:52 pm
Subject: 51002: [Microsoft][ODBC SQL Server Driver]Invalid Descriptor Index
I was working on a large, legacy VB6 program when some code that hasn't been
touched for years began failing consistently on one and only one (client)
computer.  All mods in the last few years have been done using ADO and we
lack any real expertise in rdo.  No such problem on any other developers'
machines.

 I think some dll file or something has become corrupted. but I have loaded
all oustanding SQL Server 2008 hot fixes and have uninstalled and
re-installed VB6 - but no change.  I find it hard to believe that rdo
communicates with the server when setting up a stored procedure parameter,
but the error message indicates that it's a ODBC/sql server driver issue.  
Maybe it validates parameter info as it is set?

- error message: "51002: [Microsoft][ODBC SQL Server Driver]Invalid
Descriptor Index"
- program lang: VB6 (SP6)
- client OS: XP
- technology: rdo
- database: SQL Server 2005 on server; using SQL Server 2008 client tools
- code:

    Set m_q = New rdoQuery
    Set m_q.ActiveConnection = DB.Connection
    m_q.QueryTimeout = 0
    m_q.SQL = "execute member_find ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?"
    m_qFindResults.SetParam 0, rdParamInput, True

    [ more statements defining other parameters ]

Sub SetParam(ID As Variant, Class As RDO.DirectionConstants, Optional Value
As Variant)
    m_q(ID).Direction = Class  <--------- error raised on this line
    If Not IsMissing(Value) Then
        m_q(ID) = Value
    End If
End Sub

Note: parameter constant rdParamInput resolves to 0

[also plan to post in VB6 group]


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
sugu  
View profile  
 More options Feb 4, 6:52 am
Newsgroups: microsoft.public.vb.database.odbc
From: sugu <sukumar.4...@gmail.com>
Date: Wed, 4 Feb 2009 03:52:48 -0800 (PST)
Local: Wed, Feb 4 2009 6:52 am
Subject: Re: 51002: [Microsoft][ODBC SQL Server Driver]Invalid Descriptor Index
On Jan 26, 10:52 pm, Rick <R...@discussions.microsoft.com> wrote:

dear sir i have one problem i using vb06 result go to excel odbc query
file. How am i open thil file from vb06

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google