Click here to Skip to main content
15,921,454 members
Home / Discussions / Database
   

Database

 
GeneralProblem with simple SQL query :D Pin
gamerPotatoe15-Feb-04 21:10
gamerPotatoe15-Feb-04 21:10 
GeneralRe: Problem with simple SQL query :D Pin
Mazdak15-Feb-04 21:29
Mazdak15-Feb-04 21:29 
GeneralConcatenating variables in SQL query Pin
solostar***15-Feb-04 16:19
solostar***15-Feb-04 16:19 
GeneralRe: Concatenating variables in SQL query Pin
Mike Dimmick16-Feb-04 2:32
Mike Dimmick16-Feb-04 2:32 
GeneralRe: Concatenating variables in SQL query Pin
Bill Dean16-Feb-04 2:34
Bill Dean16-Feb-04 2:34 
GeneralFree C# training Pin
Anonymous15-Feb-04 15:14
Anonymous15-Feb-04 15:14 
GeneralRe: Free C# training Pin
John Kuhn16-Feb-04 11:49
John Kuhn16-Feb-04 11:49 
GeneralProblem in using Stream object's write method Pin
Member 48497613-Feb-04 21:15
Member 48497613-Feb-04 21:15 
I want to write some long encryted text during my code in .doc file. I have used Stream Object and use write() method of stream object which take object of type variant as input. MY code throws exception 0x800A0BB9 when it execute write() method. Below is my code. I have spend around 1.5 days in this. Pls help me how to solve this.
If i read text from some other using Read() method of Stream object and use output of Read() method (i.e. output of Read() is Variant object) then it work find and write() is not throwing exception.


CString outileName = "myenc.doc";
ADODB::_StreamPtr outputStream = NULL;
hr = outputStream.CreateInstance(__uuidof(ADODB::Stream));
outputStream->Charset = "ascii" ;//"iso-8859-1";
outputStream->Type = ADODB::adTypeBinary;
outputStream->Open(vtEmpty, ADODB::adModeUnknown, ADODB::adOpenStreamUnspecified,bstrEmpty, bstrEmpty);

outputStream->Position = 0;

VARIANT myVt;
VariantInit(&myVt);
myVt.vt = VT_BSTR;
myVt.bstrVal = SysAllocString(L"testing");

outputStream->SaveToFile(outileName.AllocSysString(), ADODB::adSaveCreateOverWrite);

outputStream->Write(&myVt);

GeneralODBC and TCP/IP Pin
Kwai Cheng Kane13-Feb-04 10:25
Kwai Cheng Kane13-Feb-04 10:25 
QuestionListing tables and views? Pin
Bill Dean13-Feb-04 8:08
Bill Dean13-Feb-04 8:08 
AnswerRe: Listing tables and views? Pin
-Dr_X-13-Feb-04 14:27
-Dr_X-13-Feb-04 14:27 
GeneralRe: Listing tables and views? Pin
Bill Dean13-Feb-04 15:08
Bill Dean13-Feb-04 15:08 
GeneralRe: Listing tables and views? Pin
-Dr_X-13-Feb-04 15:36
-Dr_X-13-Feb-04 15:36 
GeneralRe: Listing tables and views? Pin
Bill Dean13-Feb-04 15:43
Bill Dean13-Feb-04 15:43 
Generalcompare time part of datetime field Pin
asd175313-Feb-04 7:15
asd175313-Feb-04 7:15 
Generalprecentage of loading data in Dataset Pin
Saeed Tabrizi13-Feb-04 5:43
Saeed Tabrizi13-Feb-04 5:43 
General"Select top" command Pin
dlhson212-Feb-04 19:21
dlhson212-Feb-04 19:21 
GeneralRe: "Select top" command Pin
Motyka12-Feb-04 20:52
Motyka12-Feb-04 20:52 
GeneralRe: "Select top" command Pin
basementman13-Feb-04 5:58
basementman13-Feb-04 5:58 
GeneralRe: "Select top" command Pin
Bruce Duncan13-Feb-04 6:49
Bruce Duncan13-Feb-04 6:49 
GeneralRe: "Select top" command Pin
dlhson213-Feb-04 17:01
dlhson213-Feb-04 17:01 
GeneralRe: "Select top" command Pin
Hesham Amin13-Feb-04 23:03
Hesham Amin13-Feb-04 23:03 
QuestionCan I execute a DTS package from T-SQL? Pin
Thesisus12-Feb-04 5:24
Thesisus12-Feb-04 5:24 
AnswerRe: Can I execute a DTS package from T-SQL? Pin
Jeff Martin12-Feb-04 10:50
Jeff Martin12-Feb-04 10:50 
Generalgrant permission to access the Msysobjects Pin
Daminda12-Feb-04 2:53
Daminda12-Feb-04 2:53 

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.