passing GUID parameter to adodbapi

Discussion in 'Python' started by Max Ischenko, Jul 22, 2004.

  1. Max Ischenko

    Max Ischenko Guest

    I'm using adodbapi DBAPI module to access SQL server and trying to pass
    a GUID parameter with an SQL statement. But it doesn't work: I got
    "incorrect cast expression" from the ADO. If I paste GUID directly into
    sql string (in quotes) it works fine.

    I've tried to patch adodbapi to correctly handle this kind of parameters
    but no luck. Could someone give any specific help on adodbapi or at
    least some general reference to how to pass GUID to the ADO properly.

    tia.
     
    Max Ischenko, Jul 22, 2004
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Wayne Wengert

    Problem Using GUID as SQLDataSource Parameter

    Wayne Wengert, Feb 5, 2006, in forum: ASP .Net
    Replies:
    3
    Views:
    5,810
    Wayne Wengert
    Feb 6, 2006
  2. Achim Domma

    adodbapi / string encoding problem

    Achim Domma, Sep 25, 2003, in forum: Python
    Replies:
    10
    Views:
    791
    Alex Martelli
    Sep 26, 2003
  3. shapper

    Parameter and Guid

    shapper, Feb 22, 2008, in forum: ASP .Net
    Replies:
    8
    Views:
    3,032
    shapper
    Feb 23, 2008
  4. Replies:
    0
    Views:
    164
  5. Allan Ebdrup
    Replies:
    2
    Views:
    496
    Allan Ebdrup
    Oct 6, 2006
Loading...

Share This Page