Solved

SQLBindParameter question..

Posted on 1998-10-27
1
248 Views
Last Modified: 2013-11-20
I found SQLBindParameter is very difficult to use, even I read all help files, I still could not be able to use it. Could anyone give me some helpful tips about using this API please.
0
Comment
Question by:stephenkong
1 Comment
 

Accepted Solution

by:
jinda earned 0 total points
ID: 1323905
Example:

void MyFunction( void* Value, long lSize )
{
SDWORD cb_value;
CString strStmt;
long lID = 101;

strStmt.Format( "insert into myTable"
            " ( ID, BINARYVALUE )"
            " values"
            " (%ld, ?)",
            lID );


cb_value = lSize;

nRc = SQLBindParameter( hStmt, 1, SQL_PARAM_INPUT,
            SQC_C_BINARY,
            SQL_BINARY,
            lSize, 0, Value, 0, &cb_value);

nRc = SQLExecDirect( hStmt, (unsigned char*)(LPCSTR)strStmt, SQL_NTS);

..
}


0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to know only "File created" with EventLog 3 34
fizzArray  challenge 1 81
java ^ examples 8 65
Capture logon name 13 70
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

785 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question