473,385 Members | 1,942 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Looking for CSharp equivalent of SQLBindCol

I'm trying to get some XML data stored as binary data in a MS SQL server
database's table using C#

I have code which used to extract this data in C++
Pasting the functions used in C++ to get the same data...
sr = SQLExecDirect(hstmt1, (SQLCHAR *)szSQLQuery, SQL_NTS);
sr = SQLBindCol(hstmt1, (UWORD)1, SQL_C_BINARY, prgbReq, *pcbReq, (long
*)pcbReq);
sr = SQLBindCol(hstmt1, (UWORD)2, SQL_C_BINARY, prgbRsp, *pcbRsp, (long
*)pcbRsp);

thnx a lot for your help. Appreciate it.

_Faheem
Nov 17 '05 #1
1 2010
FYI:
Got this figured out. The Encoding, Decoder name classes are helpful to get
details.

_Faheem
"Faheem Khan" <fa****@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
I'm trying to get some XML data stored as binary data in a MS SQL server
database's table using C#

I have code which used to extract this data in C++
Pasting the functions used in C++ to get the same data...
sr = SQLExecDirect(hstmt1, (SQLCHAR *)szSQLQuery, SQL_NTS);
sr = SQLBindCol(hstmt1, (UWORD)1, SQL_C_BINARY, prgbReq, *pcbReq, (long
*)pcbReq);
sr = SQLBindCol(hstmt1, (UWORD)2, SQL_C_BINARY, prgbRsp, *pcbRsp, (long
*)pcbRsp);

thnx a lot for your help. Appreciate it.

_Faheem

Nov 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Jon Maz | last post by:
Hi All, Am getting frustrated trying to port the following (pretty simple) function to CSharp. The problem is that I'm lousy at Regular Expressions.... //from...
2
by: Paul Wistrand | last post by:
Hi, does anyone know if there are any opensource implemenations of an Currency class for the .NET framework?
2
by: L | last post by:
Hi there, Something like this in C++ String sTmp; for (int i = 5; i <=15; i++) { sTmp.format("%2s", i) }
22
by: Michael Gorbach | last post by:
I was asked this summer to write a monte carlo code to simulation magnetic nanoparticles. For the nonphysicists, basicly it is a simulation where most of the time is taken up by looping through...
2
by: Chris Ashley | last post by:
How can I implement a byte in CSharp that works the same as the char in VC++ 6? EG: With the range -128 to 127? The standard byte has the range 0 to 255, and the CSharp char is too long (16 bits).
1
by: Maxim | last post by:
Hi all, What is the equivalent construction in managed C++ to CSharp's IS and AS keywords? Thanks.
4
by: Control Freq | last post by:
Hi, Still new to csharp. I am coming from a C++ background. In C++ I would create a few top level variables in the application class. These are effectively global variables which can be accessed...
12
by: amogan | last post by:
**If interested & qualified, please reply with your resume directly to amogan@google.com** Referrals are always welcome!! Network System Test Engineer - Mountain View This position is...
1
by: lathamoulali | last post by:
The Equivalent of ISREFERENCE in CSHARP
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.