Click here to Skip to main content
15,900,258 members
Home / Discussions / Database
   

Database

 
GeneralSELECT with TOP question Pin
matthias s.18-Apr-05 1:14
matthias s.18-Apr-05 1:14 
GeneralRe: SELECT with TOP question Pin
WoutL18-Apr-05 1:32
WoutL18-Apr-05 1:32 
GeneralThank you, Colin and Wout! Pin
matthias s.18-Apr-05 1:46
matthias s.18-Apr-05 1:46 
GeneralRe: SELECT with TOP question Pin
Colin Angus Mackay18-Apr-05 1:33
Colin Angus Mackay18-Apr-05 1:33 
GeneralRe: SELECT with TOP question [addendum] Pin
Colin Angus Mackay18-Apr-05 1:35
Colin Angus Mackay18-Apr-05 1:35 
QuestionCreating an IStream object in OLE DB? Pin
mjharvey17-Apr-05 16:22
mjharvey17-Apr-05 16:22 
AnswerRe: Creating an IStream object in OLE DB? Pin
Mike Dimmick18-Apr-05 1:04
Mike Dimmick18-Apr-05 1:04 
GeneralRe: Creating an IStream object in OLE DB? Pin
mjharvey18-Apr-05 13:15
mjharvey18-Apr-05 13:15 
The data is in memory. This is the process I am using:

1. Execute "SELECT column FROM table" command and obtain the IRowset object.
2. Get IRowSetChange and IRowsetUpdate objects
3. Set bindings and CreateAccessor
4. Call IRowset->GetNextRows() and IRowset->GetData() to obtain row accessor.
5. Use CreateStreamOnHGlobal() to create Stream.
6. Call IRowsetChange->SetData, then IRowsetUpdate->Update

This process works ok if I bind as a simple DBTYPE_STR, but when I try to do the update using a DBTYPE_IUNKNOWN object of type IID_ISequentialStream, then update does not insert the stream object I created.

This may have something to do with it. In the bindings I specify, the only DBOBJECT flags and iid that work for the CreateAccessor call are these:
dbObject->dwFlags = STGM_READ;
dbObject->iid = IID_ISequentialStream;
GeneralRe: Creating an IStream object in OLE DB? Pin
mjharvey18-Apr-05 17:05
mjharvey18-Apr-05 17:05 
GeneralProblem with sql query in vb.net Pin
gundamhamtaro16-Apr-05 15:18
gundamhamtaro16-Apr-05 15:18 
GeneralRe: Problem with sql query in vb.net Pin
Colin Angus Mackay16-Apr-05 23:55
Colin Angus Mackay16-Apr-05 23:55 
GeneralRe: Problem with sql query in vb.net Pin
gundamhamtaro17-Apr-05 1:56
gundamhamtaro17-Apr-05 1:56 
GeneralRe: Problem with sql query in vb.net Pin
Colin Angus Mackay17-Apr-05 2:04
Colin Angus Mackay17-Apr-05 2:04 
GeneralRe: Problem with sql query in vb.net Pin
gundamhamtaro18-Apr-05 0:05
gundamhamtaro18-Apr-05 0:05 
GeneralRe: Problem with sql query in vb.net Pin
Colin Angus Mackay18-Apr-05 1:26
Colin Angus Mackay18-Apr-05 1:26 
GeneralRe: Problem with sql query in vb.net Pin
gundamhamtaro18-Apr-05 20:22
gundamhamtaro18-Apr-05 20:22 
GeneralRe: Problem with sql query in vb.net Pin
Colin Angus Mackay18-Apr-05 22:45
Colin Angus Mackay18-Apr-05 22:45 
GeneralFiltering on a variable in SQL Pin
Stuck!16-Apr-05 1:37
sussStuck!16-Apr-05 1:37 
GeneralRe: Filtering on a variable in SQL Pin
Colin Angus Mackay16-Apr-05 6:20
Colin Angus Mackay16-Apr-05 6:20 
GeneralRe: Filtering on a variable in SQL Pin
Stuck !16-Apr-05 22:09
sussStuck !16-Apr-05 22:09 
GeneralRe: Filtering on a variable in SQL Pin
Colin Angus Mackay16-Apr-05 23:44
Colin Angus Mackay16-Apr-05 23:44 
GeneralRe: Filtering on a variable in SQL Pin
Anonymous17-Apr-05 4:43
Anonymous17-Apr-05 4:43 
GeneralRe: Filtering on a variable in SQL [another wee hint] Pin
Colin Angus Mackay16-Apr-05 6:23
Colin Angus Mackay16-Apr-05 6:23 
QuestionExecute SQL file in Enterprise Manager? Pin
c121hains15-Apr-05 13:10
c121hains15-Apr-05 13:10 
AnswerRe: Execute SQL file in Enterprise Manager? Pin
djkno315-Apr-05 13:29
djkno315-Apr-05 13:29 

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.