473,403 Members | 2,222 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,403 software developers and data experts.

OdbcDataReader

Hi All,

Just looking for a confirmation on something (in VS 2003).

Can an OdbcDataReader be populated only by a ExecuteReader on an OdbcCommand?

Thanks,
pagates
Nov 17 '05 #1
2 2912
Hi,

An OdbcDataReader is indeed returned by OdbcCommand.ExecuteReader

It does not have any public constructor, so yes, the class cannot be created
using "new"
What is the problem with that?

cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"pagates" <pa*****@discussions.microsoft.com> wrote in message
news:C8**********************************@microsof t.com...
Hi All,

Just looking for a confirmation on something (in VS 2003).

Can an OdbcDataReader be populated only by a ExecuteReader on an
OdbcCommand?

Thanks,
pagates

Nov 17 '05 #2
Hi Ignacio,

No real "problem." I am using a project that gets data either through Odbc,
or through another mechanism (a property allows the user to choose which
method, per a requirement in our software). There is a wrapper around the
various communication mechanisms, and I wanted to make it as generic as
possible.

Since I can do what I need with a DataTable, there is no need to pursue this
further. I was just curious at this point.

Thanks,
Paul

"Ignacio Machin ( .NET/ C# MVP )" wrote:
Hi,

An OdbcDataReader is indeed returned by OdbcCommand.ExecuteReader

It does not have any public constructor, so yes, the class cannot be created
using "new"
What is the problem with that?

cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"pagates" <pa*****@discussions.microsoft.com> wrote in message
news:C8**********************************@microsof t.com...
Hi All,

Just looking for a confirmation on something (in VS 2003).

Can an OdbcDataReader be populated only by a ExecuteReader on an
OdbcCommand?

Thanks,
pagates


Nov 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Steve Smith | last post by:
I am coding a C# .Net2003 program and am reading a CSV file using the Microsoft Text Driver. I am able to access the columns of data using oRdr.GetValue(nn).ToString() however I cannot figure...
1
by: cyshao | last post by:
OdbcDataReader How to get UInt32 ? My DB item defined as int(10) , a value is 108371984. It's larger then Int32.MaxValue, but OdbcDataReader seems don't provide GetUInt32(); I tried to use...
6
by: Steven Blair | last post by:
Hi, I am writing an application using a 3 tier model (Client, Business Layer and DB) The DB layer creates a OdbcDataReader object back up to the Client where the data is read and displayed on...
0
by: Joaquim Pinto | last post by:
Hello All, I'm developing an application that is using odbcconnection, odbccommand and odbcdatareader to access different tables in two different databases, one Access and the other MySql. The...
2
by: Ricardo Luceac | last post by:
HI all.. I have a huge table that I want to display in a datagrid, the problem is that if I make a dataset, the entire table must go to the dataset to the data begin to display, and it takes...
1
by: Craig Lucas | last post by:
I havent seen anyway to transfer the data over to sql server in a graceful way. I have to generate sql statements dynamically or loop through each record and call a stored procedure. Is there a...
1
by: Dennis Kuntzemann | last post by:
Hallo, ich habe eine bestehende Datenbank-Applikation zu unterhalten, welche jedoch Probleme bereitet. Die DB-Anfrage dauert eine Ewigkeit, und sehr oft schlaegt die Abfrage auch fehl. ...
1
by: myname | last post by:
Hello, I'm using VB.Net 2003. OdbcDataRead.getString(i as integer) allows me to retrieve fields by index. Is there any way to get fields by field name ? Thanks !
5
by: khalid Ahmed | last post by:
I'm attempting to execute a SQL SELECT query but it doesn't seem to be returning any records. I've confirmed that the connection is actually opening and when I tried to execute the same query on...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.