Re: A way to transfer a query string for SQL Server to one for another database?
From: Peter Rilling (peter_at_nospam.rilling.net)
Date: 02/22/05
- Next message: Pete Davis: "Re: A way to transfer a query string for SQL Server to one for another database?"
- Previous message: Scott Allen: "Re: How do I cast something as a user control?"
- In reply to: Quentin Huo: "A way to transfer a query string for SQL Server to one for another database?"
- Next in thread: Pete Davis: "Re: A way to transfer a query string for SQL Server to one for another database?"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 22 Feb 2005 13:30:59 -0800
SQL is a standards language and therefore you should be able to use the same
query on any relational database, assuming you are not using any MS
proprietary extensions. All you have to do is to use the SqlCommand object
on a different IConnection object.
For instance, "select * from myTable" should work for all database.
"Quentin Huo" <q.huo@manyworlds.com> wrote in message
news:u9#$wSSGFHA.628@TK2MSFTNGP15.phx.gbl...
> Hi:
>
> If I have a query string for retrieving data from SQL Server database, is
> there a way to transfer it to a query string for retrieving data from
Oracle
> or any other database like mySQL...? I mean by a program. I am working on
> C#.
>
> Thanks
>
> Q.
>
>
- Next message: Pete Davis: "Re: A way to transfer a query string for SQL Server to one for another database?"
- Previous message: Scott Allen: "Re: How do I cast something as a user control?"
- In reply to: Quentin Huo: "A way to transfer a query string for SQL Server to one for another database?"
- Next in thread: Pete Davis: "Re: A way to transfer a query string for SQL Server to one for another database?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|