473,396 Members | 2,111 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,396 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 2911
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
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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,...

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.