Click here to Skip to main content
15,908,013 members
Home / Discussions / Database
   

Database

 
GeneralRe: Retreival Of Data Pin
benito198127-Oct-04 14:28
benito198127-Oct-04 14:28 
GeneralRe: Retreival Of Data Pin
Christian Graus27-Oct-04 14:55
protectorChristian Graus27-Oct-04 14:55 
GeneralSQL Server metadata again Pin
Anonymous26-Oct-04 22:41
Anonymous26-Oct-04 22:41 
GeneralRe: SQL Server metadata again Pin
Michael Potter27-Oct-04 11:35
Michael Potter27-Oct-04 11:35 
GeneralTrashed MSDE Instance Pin
Blake V. Miller26-Oct-04 19:19
Blake V. Miller26-Oct-04 19:19 
QuestionHow to use IDBConnection Pin
Alomgir Miah26-Oct-04 10:21
Alomgir Miah26-Oct-04 10:21 
GeneralWant to use OleDbCommandBuilder with IDbDataAdapter Pin
Alomgir Miah26-Oct-04 10:06
Alomgir Miah26-Oct-04 10:06 
GeneralRe: Want to use OleDbCommandBuilder with IDbDataAdapter Pin
Colin Angus Mackay26-Oct-04 22:45
Colin Angus Mackay26-Oct-04 22:45 
Alomgir Miah wrote:
I have an instance of IDbDataAdapter

This is being pedantic, but you don't have an instance of IDbDataAdapter. That is an interface and you cannot instantiate interfaces or abstract classes, you can only instantiate concrete types like an OleDbDataAdapter. You have an IDbDataAdapter reference to a concrete type, i.e. something that inherits from IDbDataAdapter.


Alomgir Miah wrote:
The restriction is that I cannot create instances of OleDbDataAdaper

To create OleDbDataAdapter objects you need to place a
    using System.Data.OleDb;
line at the top of the file. The documentation for the OleDbDataAdapter class[^] says this.

Quite probably you already have an OleDbDataAdapter that your are referencing through the IDbDataAdapter interface. If this is the case all you need to do is cast it to an OleDbDataAdapter in order to use it. You do that like this:
(OleDbDataAdapter)myIDbDataAdapterReference


Finally, and this is because it is a pet hate of mine, don't use command builders. They give false hope, and they hide from you what is actually going on. For more information, read this excellent article: Weaning Developers from the Command Builder[^]

Does this help?


Do you want to know more?


Vogon Building and Loan advise that your planet is at risk if you do not keep up repayments on any mortgage secured upon it. Please remember that the force of gravity can go up as well as down.
General"Network " access w/ out a network Pin
...---...26-Oct-04 6:43
...---...26-Oct-04 6:43 
GeneralRe: "Network " access w/ out a network Pin
Alomgir Miah26-Oct-04 10:15
Alomgir Miah26-Oct-04 10:15 
GeneralAdding data to Ole Db database, how do i... Pin
fortyonejb26-Oct-04 5:09
fortyonejb26-Oct-04 5:09 
GeneralRe: Adding data to Ole Db database, how do i... Pin
Anonymous27-Oct-04 17:50
Anonymous27-Oct-04 17:50 
QuestionHow to call overloaded stored procedure? Pin
grinder25-Oct-04 22:28
grinder25-Oct-04 22:28 
GeneralVerbose MSDE Setup Log File Pin
Blake V. Miller25-Oct-04 19:58
Blake V. Miller25-Oct-04 19:58 
GeneralCopy tables between 2 SQL Servers Pin
tgprakash25-Oct-04 2:48
tgprakash25-Oct-04 2:48 
GeneralRe: Copy tables between 2 SQL Servers Pin
Alomgir Miah26-Oct-04 10:38
Alomgir Miah26-Oct-04 10:38 
GeneralConnection String Pin
Marwa Bahaa25-Oct-04 1:06
Marwa Bahaa25-Oct-04 1:06 
GeneralRe: Connection String Pin
Michael Potter25-Oct-04 4:57
Michael Potter25-Oct-04 4:57 
GeneralRe: Connection String Pin
BlackDice28-Oct-04 10:43
BlackDice28-Oct-04 10:43 
GeneralRe: Connection String Pin
cnet20083-Nov-04 15:41
cnet20083-Nov-04 15:41 
GeneralRe: Connection String Pin
cnet20083-Nov-04 15:41
cnet20083-Nov-04 15:41 
GeneralAddNew Problem with CLOB field Pin
weblizp24-Oct-04 19:06
weblizp24-Oct-04 19:06 
GeneralRe: AddNew Problem with CLOB field Pin
weblizp24-Oct-04 21:50
weblizp24-Oct-04 21:50 
GeneralHavving problem with a FILL command Pin
rudemusik24-Oct-04 18:01
rudemusik24-Oct-04 18:01 
Generalupdating doesn't work Pin
ezak24-Oct-04 8:51
ezak24-Oct-04 8:51 

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.