Click here to Skip to main content
15,893,588 members
Home / Discussions / Database
   

Database

 
GeneralASP.NET Pin
panchal198327-Apr-05 19:46
panchal198327-Apr-05 19:46 
GeneralRe: ASP.NET Pin
Colin Angus Mackay27-Apr-05 20:40
Colin Angus Mackay27-Apr-05 20:40 
GeneralUnauthorized access of our Data Access Layer Pin
Anonymous27-Apr-05 15:22
Anonymous27-Apr-05 15:22 
GeneralQuery string and regular select statement - NEED HELP! Pin
Anonymous27-Apr-05 9:41
Anonymous27-Apr-05 9:41 
GeneralRe: Query string and regular select statement - NEED HELP! Pin
Anonymous27-Apr-05 14:10
Anonymous27-Apr-05 14:10 
GeneralCryptoAcquire Failed error Pin
GouriGari RameshReddy27-Apr-05 5:43
GouriGari RameshReddy27-Apr-05 5:43 
GeneralProblem with oracle session Pin
yyf27-Apr-05 4:34
yyf27-Apr-05 4:34 
GeneralIStream object string length error Pin
mjharvey26-Apr-05 12:07
mjharvey26-Apr-05 12:07 
I am trying to update an ISequentialStream object in a RowSet. But am getting the following errors:

- Multiple-step OLE DB operation generated errors. Check each OLE DB status value, if available. No work was done.
- String data, length mismatch

The "String data, length mismatch" one is troubling me. And I think it has something to do with the way I am creating the stream. This is the methodology I am trying to implement:

IStream *pIStream;
CreateStreamOnHGlobal(NULL, true, &pIStream);
pIStream->SetSize(x);
pIStream->Write(databuf, databuf_len, &byteswritten);
ISequentialStream *pISeqStream;
pIStream->QueryInterface(IID_ISequentialStream, (void **)&pISeqStream);

I am struggling with the length. As to what it should be set to. I have done a simple test to try and write a 6 character string. The size of the stream created is 6 bytes and I have set the size of the length in the bindings for the rowset to be 6. Yet I am getting a string length error on Update ...does a null terminator for the string have to be allowed for somewhere.

Any help on what I may be doing wrong here would be appreciated. Thanks.
GeneralRe: IStream object string length error Pin
mjharvey27-Apr-05 16:44
mjharvey27-Apr-05 16:44 
GeneralView child records in datagrid Pin
Reinier Beeckman26-Apr-05 3:48
Reinier Beeckman26-Apr-05 3:48 
GeneralRe: View child records in datagrid Pin
NewSilence26-Apr-05 6:35
NewSilence26-Apr-05 6:35 
GeneralVS.NET and Stored Proceedures Pin
Jerry Hammond25-Apr-05 15:20
Jerry Hammond25-Apr-05 15:20 
GeneralRe: VS.NET and Stored Proceedures Pin
Illegal Operation25-Apr-05 21:31
Illegal Operation25-Apr-05 21:31 
GeneralRe: VS.NET and Stored Proceedures Pin
Jerry Hammond26-Apr-05 5:18
Jerry Hammond26-Apr-05 5:18 
GeneralOpen two tables in one form Pin
msnick25-Apr-05 14:53
msnick25-Apr-05 14:53 
GeneralSQL Server authentication problem Pin
JT Anderson25-Apr-05 12:29
JT Anderson25-Apr-05 12:29 
GeneralRe: SQL Server authentication problem Pin
Albert Pascual26-Apr-05 6:25
sitebuilderAlbert Pascual26-Apr-05 6:25 
GeneralFormat int in select statement Pin
theol25-Apr-05 10:16
theol25-Apr-05 10:16 
GeneralRe: Format int in select statement Pin
Michael Potter27-Apr-05 3:08
Michael Potter27-Apr-05 3:08 
Generalview table from access database Pin
rana1838425-Apr-05 6:42
rana1838425-Apr-05 6:42 
GeneralRe: view table from access database Pin
ZHEKE4-May-05 18:01
sussZHEKE4-May-05 18:01 
GeneralRe: Derive Parameters (ODP .NET in C#) Pin
Mike Dimmick25-Apr-05 1:44
Mike Dimmick25-Apr-05 1:44 
GeneralRe: Derive Parameters (ODP .NET in C#) Pin
Nizar Abdeljaoued25-Apr-05 3:34
Nizar Abdeljaoued25-Apr-05 3:34 
GeneralTo create a mysql based application i need.... Pin
Sasuko24-Apr-05 13:53
Sasuko24-Apr-05 13:53 
GeneralRe: To create a mysql based application i need.... Pin
sudheerravindran24-Apr-05 18:54
sudheerravindran24-Apr-05 18:54 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.