Results 1 to 2 of 2

Thread: About SQLOLEDB... Helppppp

  1. #1

    Thread Starter
    Fanatic Member Wen Lie's Avatar
    Join Date
    Jul 1999
    Location
    Singapore
    Posts
    524

    Unhappy

    Dear All,

    I'm trying to use DSN-less Connection, and I use SQLOLEDB.

    My Open Connection Syntax :

    myConn.Open "Provider=SQLOLEDB; Data Source=server name; Initial Catalog=database name; User ID=username; Password=password"

    Well, my statement run well. But, when I try to use it on recordset, and when I want to update my record, an error occured (The Operation requested by the application is not supported by the provider)

    My Record Syntax :


    myRec.Open "select * from pwdexport where ...", myconn, adOpenDynamic, adLockOptimistic, adCmdText

    myDate=Date()
    myRec!last_on=myDate
    myRec!Used='Y"

    myRec.Update

    myRec.Close


    When my code run at myrec!last_on=myDate, the error occured.

    Could anybody help me please ASAP ???

    Thx a lot for any kinda help.
    Regards,

    Wen Lie
    Regards,
    [-w-]

  2. #2
    Hyperactive Member
    Join Date
    Nov 1999
    Location
    Leavenworth KS USA
    Posts
    482
    By chance, Annyong Hashimnikka?

    I do not think CursorType=adOpenDynamic and LockType=adLockOptimistic is supported, so ADO has degraded you to a supported non-updateable CursorType-LockType. That or ADO is confused about it's record location...

    Let me know if this works:
    Code:
    myRec.CursorLocation = adUseClient    
    myRec.Open "select * from pwdexport where ...", myconn, adOpenKeyset, adLockOptimistic, adCmdText




    [Edited by Mongo on 07-13-2000 at 12:43 AM]

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