Unix Technical Forum

Oracle ODBC driver BIGINT conversion

This is a discussion on Oracle ODBC driver BIGINT conversion within the MS SQL ODBC forums, part of the Microsoft SQL Server category; --> Hi, I want to bing a placeholder for stored procedure using following: SQLBindParameter(m_hstmt, ++m_nParamCount, SQL_PARAM_INPUT, SQL_INTEGER, SQL_DECIMAL, 0, 0,(SQLPOINTER)piValue, ...


Go Back   Unix Technical Forum > Database Server Software > Microsoft SQL Server > MS SQL ODBC

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-27-2008, 08:15 PM
Peter
 
Posts: n/a
Default Oracle ODBC driver BIGINT conversion

Hi,
I want to bing a placeholder for stored procedure using following:
SQLBindParameter(m_hstmt, ++m_nParamCount, SQL_PARAM_INPUT,

SQL_INTEGER,

SQL_DECIMAL,

0, 0,(SQLPOINTER)piValue, 0, NULL));



but it works only for signed long .



How can I use SQLBindParameter for a BIGINT type in C++?



TIA


Peter


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-27-2008, 08:17 PM
Brannon Jones
 
Posts: n/a
Default Re: Oracle ODBC driver BIGINT conversion

You want to use the SQL_C_SBIGINT and SQL_BIGINT types.

"Peter" <peter@jaalam.com> wrote in message
news:ez7kc6WVDHA.1928@TK2MSFTNGP12.phx.gbl...
> Hi,
> I want to bing a placeholder for stored procedure using following:
> SQLBindParameter(m_hstmt, ++m_nParamCount, SQL_PARAM_INPUT,
>
> SQL_INTEGER,
>
> SQL_DECIMAL,
>
> 0, 0,(SQLPOINTER)piValue, 0, NULL));
>
>
>
> but it works only for signed long .
>
>
>
> How can I use SQLBindParameter for a BIGINT type in C++?
>
>
>
> TIA
>
>
> Peter
>
>



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 05:28 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com