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. Advertisements

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:
    6,071
    Wayne Wengert
    Feb 6, 2006
  2. Achim Domma

    adodbapi / string encoding problem

    Achim Domma, Sep 25, 2003, in forum: Python
    Replies:
    10
    Views:
    1,061
    Alex Martelli
    Sep 26, 2003
  3. Sangbae

    [adodbapi] cannot create table

    Sangbae, Oct 6, 2003, in forum: Python
    Replies:
    3
    Views:
    763
    Bob Gailer
    Oct 7, 2003
  4. Raaijmakers, Vincent \(GE Infrastructure\)

    adodbapi, exception/error handling question

    Raaijmakers, Vincent \(GE Infrastructure\), Jan 20, 2004, in forum: Python
    Replies:
    0
    Views:
    578
    Raaijmakers, Vincent \(GE Infrastructure\)
    Jan 20, 2004
  5. shapper

    Parameter and Guid

    shapper, Feb 22, 2008, in forum: ASP .Net
    Replies:
    8
    Views:
    3,439
    shapper
    Feb 23, 2008
  6. Mister B
    Replies:
    8
    Views:
    919
    Nick Keighley
    Aug 26, 2010
  7. Replies:
    0
    Views:
    244
  8. Allan Ebdrup
    Replies:
    2
    Views:
    648
    Allan Ebdrup
    Oct 6, 2006
Loading...