Click here to Skip to main content
15,922,007 members
Home / Discussions / Database
   

Database

 
QuestionReturning Multiple Tables from Stored Procedure Pin
Craig G Fraser11-May-06 1:24
Craig G Fraser11-May-06 1:24 
AnswerRe: Returning Multiple Tables from Stored Procedure Pin
chinnasrihari11-May-06 3:36
chinnasrihari11-May-06 3:36 
AnswerRe: Returning Multiple Tables from Stored Procedure Pin
Michael Potter11-May-06 3:38
Michael Potter11-May-06 3:38 
AnswerRe: Returning Multiple Tables from Stored Procedure Pin
Paul Brower11-May-06 4:07
Paul Brower11-May-06 4:07 
QuestionSwitch from Access to MS SQL Server Pin
armax7511-May-06 0:49
professionalarmax7511-May-06 0:49 
AnswerRe: Switch from Access to MS SQL Server Pin
Colin Angus Mackay11-May-06 1:19
Colin Angus Mackay11-May-06 1:19 
GeneralRe: Switch from Access to MS SQL Server Pin
armax7511-May-06 10:54
professionalarmax7511-May-06 10:54 
GeneralRe: Switch from Access to MS SQL Server Pin
Colin Angus Mackay11-May-06 11:05
Colin Angus Mackay11-May-06 11:05 
armax75 wrote:
built by dataset wizard


Well, there's your problem right there! Don't rely on wizards, learn how it actually works so you can leverage the technology to do what you want rather than a narrow set of possibilities provided by a dumbed down wizard.


armax75 wrote:
what I want to do is to find a way to switch to SQL server at runtime using the same dataset


You can do that with the solution I proposed - if you do away with a reliance on wizard generated code.


armax75 wrote:
Changing the connection string the dataset's query don't function


Of course not. There are many forms of the SQL langauge, each database implements its own varient.


armax75 wrote:
I've used standard sql


Really? I wasn't aware that Access or SQL server used "Standard SQL". You might like to take a look at an open source project called NHibernate that uses its own SQL variant and translates that into the specific dialect used by the database system to which it is connecting.

armax75 wrote:
There's a way to use an xml file that can change the query in dataset (according to the rigth database)set designer at compile time.


Datasets are database agnostic. They don't know anything about the database - that is the job of the Data Adapter.

You can use an XML file to contain the various dialects of SQL you might like to use, but the solution would be more useful at run time. If you are looking for a compile time switch why not look into #define[^], #if[^] and #endif[^]. But I'm confused, you said earlier you wanted to switch at run time. Which is it?


"On two occasions, I have been asked [by members of Parliament], 'Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?' I am not able to rightly apprehend the kind of confusion of ideas that could provoke such a question."
--Charles Babbage (1791-1871)

My: Website | Blog
AnswerRe: Switch from Access to MS SQL Server Pin
Frank Kerrigan12-May-06 5:21
Frank Kerrigan12-May-06 5:21 
QuestionUsing INSERT to copy a table Pin
Ista10-May-06 7:44
Ista10-May-06 7:44 
AnswerRe: Using INSERT to copy a table Pin
Eric Dahlvang10-May-06 8:05
Eric Dahlvang10-May-06 8:05 
AnswerRe: Using INSERT to copy a table Pin
Chemisus10-May-06 18:26
Chemisus10-May-06 18:26 
QuestionDetaching Database on SQL server 2000 Pin
For_IT10-May-06 5:40
For_IT10-May-06 5:40 
AnswerRe: Detaching Database on SQL server 2000 Pin
Colin Angus Mackay10-May-06 7:19
Colin Angus Mackay10-May-06 7:19 
GeneralRe: Detaching Database on SQL server 2000 Pin
For_IT10-May-06 10:19
For_IT10-May-06 10:19 
AnswerRe: Detaching Database on SQL server 2000 Pin
Eric Dahlvang10-May-06 8:10
Eric Dahlvang10-May-06 8:10 
QuestionSimple change in the connection string problem... VB.net 2005 Pin
nirishere10-May-06 5:02
nirishere10-May-06 5:02 
QuestionQuery Problem? Pin
pubududilena10-May-06 1:38
pubududilena10-May-06 1:38 
AnswerRe: Query Problem? Pin
Michael Potter10-May-06 3:34
Michael Potter10-May-06 3:34 
AnswerRe: Query Problem? Pin
chinnasrihari11-May-06 3:49
chinnasrihari11-May-06 3:49 
QuestionSQL server 2000 Some friend help me Pin
AnhTin9-May-06 19:02
AnhTin9-May-06 19:02 
AnswerRe: SQL server 2000 Some friend help me Pin
Colin Angus Mackay9-May-06 21:38
Colin Angus Mackay9-May-06 21:38 
QuestionCan anyone answer my Query? Pin
Deepasubramanian9-May-06 17:29
Deepasubramanian9-May-06 17:29 
AnswerRe: Can anyone answer my Query? Pin
Chinchu Raj S9-May-06 21:40
Chinchu Raj S9-May-06 21:40 
AnswerRe: Can anyone answer my Query? Pin
Colin Angus Mackay9-May-06 22:02
Colin Angus Mackay9-May-06 22:02 

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.