Click here to Skip to main content
15,890,579 members
Home / Discussions / C#
   

C#

 
GeneralSDLDMO and a Detached Pin
Paul Watson11-Dec-02 9:36
sitebuilderPaul Watson11-Dec-02 9:36 
GeneralRe: SDLDMO and a Detached Pin
Nick Parker11-Dec-02 9:55
protectorNick Parker11-Dec-02 9:55 
GeneralRe: SDLDMO and a Detached Pin
Paul Watson11-Dec-02 10:08
sitebuilderPaul Watson11-Dec-02 10:08 
GeneralRe: SDLDMO and a Detached Pin
Nick Parker11-Dec-02 16:20
protectorNick Parker11-Dec-02 16:20 
GeneralRe: SDLDMO and a Detached Pin
Paul Watson11-Dec-02 20:17
sitebuilderPaul Watson11-Dec-02 20:17 
GeneralRe: SDLDMO and a Detached Pin
Stephane Rodriguez.11-Dec-02 9:56
Stephane Rodriguez.11-Dec-02 9:56 
GeneralRe: SDLDMO and a Detached Pin
Paul Watson11-Dec-02 10:04
sitebuilderPaul Watson11-Dec-02 10:04 
GeneralRe: SDLDMO and a Detached Pin
Stephane Rodriguez.11-Dec-02 10:27
Stephane Rodriguez.11-Dec-02 10:27 
Paul Watson wrote:
The connection and all other database bits are using SQLDMO and AFAIK it does not go through ADO.NET in anyway, right?

Right.

That's why I have said that's up to you to use a ADO.NET dataset as a container for the query result. This requires a few lines of code from you, to fill the dataset with a COPY of the pointed query result. Indeed, there is no direct support for this using sqldmo.

I am talking about a dataset since it's a natural way of storing data with .NET, even though you could just have arrays of strings if you liked.

Of course, the usefulness of sqldmo is questionable, since ADO.NET provides the .NET SQLServer data provider, which does the same job than sqldmo.




Paul Watson wrote:
What I did there was before the return I created a new Columns var, passed the Columns array from the still connected connection, then disconnected and returned the new Columns var.

accessing query results requires a connection anyway. Creating new columns just adds references to objects whose target content vanishes as soon as the disconnection happens. Hence the GPF.
GeneralRe: SDLDMO and a Detached Pin
Paul Watson11-Dec-02 20:13
sitebuilderPaul Watson11-Dec-02 20:13 
GeneralRe: SDLDMO and a Detached Pin
Richard Deeming12-Dec-02 0:58
mveRichard Deeming12-Dec-02 0:58 
GeneralRe: SDLDMO and a Detached Pin
Paul Watson12-Dec-02 1:13
sitebuilderPaul Watson12-Dec-02 1:13 
GeneralRe: SDLDMO and a Detached Pin
Richard Deeming12-Dec-02 7:24
mveRichard Deeming12-Dec-02 7:24 
QuestionHow to replace standard .NET runtime error box Pin
Vasek11-Dec-02 6:56
Vasek11-Dec-02 6:56 
AnswerRe: How to replace standard .NET runtime error box Pin
LongRange.Shooter11-Dec-02 9:07
LongRange.Shooter11-Dec-02 9:07 
GeneralRe: How to replace standard .NET runtime error box Pin
Vasek11-Dec-02 21:41
Vasek11-Dec-02 21:41 
GeneralRe: How to replace standard .NET runtime error box Pin
grv57513-Dec-02 2:42
grv57513-Dec-02 2:42 
GeneralNotifyIcon / Remove from Taskbar Pin
Adrian Hall11-Dec-02 5:44
Adrian Hall11-Dec-02 5:44 
GeneralRe: NotifyIcon / Remove from Taskbar Pin
Alexander Kojevnikov11-Dec-02 7:11
Alexander Kojevnikov11-Dec-02 7:11 
General.NET and COM Interoperability Pin
Amir Harel11-Dec-02 4:48
Amir Harel11-Dec-02 4:48 
GeneralRe: .NET and COM Interoperability Pin
Stephane Rodriguez.11-Dec-02 19:07
Stephane Rodriguez.11-Dec-02 19:07 
GeneralProcess.EnableRaisingEvents Problem Pin
yccheok10-Dec-02 16:46
yccheok10-Dec-02 16:46 
GeneralRe: Process.EnableRaisingEvents Problem Pin
Kannan Kalyanaraman10-Dec-02 22:31
Kannan Kalyanaraman10-Dec-02 22:31 
GeneralRe: Process.EnableRaisingEvents Problem Pin
yccheok11-Dec-02 15:48
yccheok11-Dec-02 15:48 
GeneralRe: Process.EnableRaisingEvents Problem Pin
Richard Deeming11-Dec-02 4:43
mveRichard Deeming11-Dec-02 4:43 
GeneralWhy An Instance Of A Class Cannot Be Created Pin
yccheok10-Dec-02 16:45
yccheok10-Dec-02 16:45 

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.