Search Results - CodeGuru Forums
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: OneEyeMan

Search: Search took 0.14 seconds.

  1. Replies
    12
    Views
    1,071

    Re: SQLBindCol() for the char column

    Hi,


    Like I said - the binding is not based on the database field type but on the storage data type.

    Thank you.
  2. Replies
    12
    Views
    1,071

    Re: SQLBindCol() for the char column

    Hi,
    So are you saying that the binding should be based on the target variable type and not the field type?
    I thought that the DB type should give the binding rule...

    Thank you.
  3. Replies
    12
    Views
    1,071

    Re: SQLBindCol() for the char column

    Hi,


    This is the first link that comes up.

    In there SQL_C_CHAR is mapped to unsigned char * and SQL_C_BIT is mapped to unsigned char.

    So I thought that since the type of the field is...
  4. Replies
    12
    Views
    1,071

    Re: SQLBindCol() for the char column

    Hi,


    Yes, that did it.
    So what is the difference? I thought that since it is char(1) in the DB I should bind it to SQL_C_BIT, which is "unsigned char".

    I mean how do you differentiate between...
  5. Replies
    12
    Views
    1,071

    Re: SQLBindCol() for the char column

    Hi, VictorN,
    Yes, I'm sure.

    Here is the the table structure:



    CREATE TABLE "foo"(abt_tnam varchar(129) NOT NULL,
    abt_tid integer,
    ...
  6. Replies
    12
    Views
    1,071

    SQLBindCol() for the char column

    Hi, ALL,
    I have a problem.

    I'm trying to connect to MS SQL Server and perform a query. The table I am trying to access has a "char(1)" column.

    This is the code I'm using:



    SQLWCHAR...
Results 1 to 6 of 6


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This a Codeguru.com survey!


On-Demand Webinars (sponsored)