Click here to Skip to main content
15,896,912 members
Home / Discussions / Database
   

Database

 
GeneralHowto:? obtain all unique values in a column from a .net datatable Pin
pg82906-Aug-03 10:50
pg82906-Aug-03 10:50 
GeneralRe: Howto:? obtain all unique values in a column from a .net datatable Pin
Rocky Moore6-Aug-03 23:27
Rocky Moore6-Aug-03 23:27 
QuestionHow to obtain a list of all tables in a DATASOURCE Pin
Terry O'Nolley6-Aug-03 8:49
Terry O'Nolley6-Aug-03 8:49 
GeneralEncoding user input Pin
Adam Durity6-Aug-03 4:32
Adam Durity6-Aug-03 4:32 
GeneralRe: Encoding user input Pin
Alexander Kojevnikov6-Aug-03 5:42
Alexander Kojevnikov6-Aug-03 5:42 
GeneralRe: Encoding user input Pin
Rocky Moore6-Aug-03 22:58
Rocky Moore6-Aug-03 22:58 
GeneralAnother Rounding issue Pin
Anonymous5-Aug-03 2:40
Anonymous5-Aug-03 2:40 
GeneralATL and ADO Problem Pin
Popeye Doyle Murray5-Aug-03 2:40
Popeye Doyle Murray5-Aug-03 2:40 
I am writing an ATL component to do some data access using ATO. I want to pass a _RecordsetPtr pointer or a _ConnectionPtr to a ATL function. I use code like this:

<br />
<br />
STDMETHODIMP CMyAtlObject::ReadData(LPDISPATCH pAdoRecordset, BOOL *pbSuccess)<br />
{<br />
      _RecordsetPtr pRecordsetPtr;<br />
<br />
  if (FAILED(pAdoRecordset->QueryInterface(IID_IDispatch, (void**) &pRecordsetPtr)))<br />
	{<br />
		return S_FALSE;<br />
	}<br />
<br />
<br />
       // do somethign here with the recordset<br />
<br />
<br />
	return S_OK;<br />
}<br />
<br />


But this doesn't work. The recordset pointer gets closed during the function call. If I pass an _ConnectionPtr as LPDISPATCH, the pointer becomes invalid.

So how can I pass valid ADO _RecordsetPtr's and _ConnectionPtr's to an ATL Object?
QuestionUsing ADO to transfer data? Pin
soup5-Aug-03 0:55
soup5-Aug-03 0:55 
QuestionConnecting to .DBF file???? Pin
Marix5-Aug-03 0:33
Marix5-Aug-03 0:33 
AnswerRe: Connecting to .DBF file???? Pin
charoldson11-Aug-03 8:31
charoldson11-Aug-03 8:31 
General.NET SQL Float rounding problem.. Pin
Member 964-Aug-03 15:32
Member 964-Aug-03 15:32 
GeneralRe: .NET SQL Float rounding problem.. Pin
Rein Hillmann6-Aug-03 22:00
Rein Hillmann6-Aug-03 22:00 
GeneralRe: .NET SQL Float rounding problem.. Pin
Mike Dimmick11-Aug-03 5:04
Mike Dimmick11-Aug-03 5:04 
GeneralLookup Data Selection With a DataGrid Pin
shoubin4-Aug-03 14:26
shoubin4-Aug-03 14:26 
GeneralLoading a DataSet with Data from Multiple Tables Pin
Milancie4-Aug-03 11:06
Milancie4-Aug-03 11:06 
GeneralRe: Loading a DataSet with Data from Multiple Tables Pin
Alexandru Savescu6-Aug-03 22:37
Alexandru Savescu6-Aug-03 22:37 
GeneralREPOST: How to create &quot;inheritance&quot; relationship in Ms Access? (Better problem definition) Pin
ChiYung4-Aug-03 8:52
ChiYung4-Aug-03 8:52 
GeneralCursor Error Pin
Anonymous4-Aug-03 7:22
Anonymous4-Aug-03 7:22 
QuestionClose the connection? Pin
Anonymous4-Aug-03 2:58
Anonymous4-Aug-03 2:58 
AnswerRe: Close the connection? Pin
Rob Graham4-Aug-03 4:02
Rob Graham4-Aug-03 4:02 
GeneralRe: Close the connection? Pin
Anonymous4-Aug-03 5:10
Anonymous4-Aug-03 5:10 
AnswerRe: Close the connection? Pin
Rocky Moore4-Aug-03 4:02
Rocky Moore4-Aug-03 4:02 
GeneralDynamic where Clause Pin
dabuskol4-Aug-03 0:46
dabuskol4-Aug-03 0:46 
GeneralRe: Dynamic where Clause Pin
Rocky Moore4-Aug-03 4:35
Rocky Moore4-Aug-03 4:35 

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.