Results 1 to 3 of 3

Thread: VB, ADO & SQL Server

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 2000
    Posts
    2

    Question

    I am using the following query:

    SELECT a.Field1, a.Field2,
    b.prvd_id AS primary_prvd_id,
    c.prvd_id AS secondary_prvd_id

    FROM Table_1 a
    LEFT OUTER JOIN Table_2 c ON a.secondary_prvd_id = c.prvd_id
    LEFT OUTER JOIN Table_2 b ON a.primary_prvd_id = b.prvd_id

    WHERE a.key1 = @var1
    AND a.key2 = @var2

    In instance one I use adUseServer for cursor location, data is returned from Table_1 regardless of the existance of data in Table_2. In instance two, I use adUseClient as the cursor location, data is only returned if data exists for both the primary and secondary id's.

    I need to use the Client-side cursor.

    I have used both dynamic SQL and a stored procedure and receive the same results

    Cursor Type = OpenStatic (I've tried each)
    Lock Type = LockReadOnly


    Does any have an idea why this might be occurring and how I might resolve it?

    Version Info:
    VB6 SP3, ADO 2.1 (MDAC 2.1.1) & SQL Server 7.0


  2. #2
    Frenzied Member monte96's Avatar
    Join Date
    Sep 2000
    Location
    Somewhere in AZ
    Posts
    1,379
    Just at a glance, upgrade to ADO 2.5
    oOOo--oOOo
    __/\/\onte96
    oOOo--oOOo
    Senior Programmer/Analyst
    MCP
    [email protected]
    [email protected]


    Your results may vary.. some restrictions may apply.. pricing and participation may vary.. not available in all states.. professional driver closed course..quantities limited..

  3. #3

    Thread Starter
    New Member
    Join Date
    Oct 2000
    Posts
    2
    Unfortunately, upgrading to ADO 2.5 is not an option right now. Maybe with the next release but I need to get this query working for this release. If anyone has had this issue please let me know what you did to resolve it. Thanks


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width