Click here to Skip to main content
15,911,715 members
Home / Discussions / Database
   

Database

 
GeneralRe: NotesSQL using.NET, OdbcException Pin
sinus-c18-Jun-03 1:52
susssinus-c18-Jun-03 1:52 
GeneralSql/osql help Pin
DxSolo17-Jun-03 8:15
DxSolo17-Jun-03 8:15 
GeneralRe: Sql/osql help Pin
basementman17-Jun-03 14:24
basementman17-Jun-03 14:24 
GeneralRe: Sql/osql help Pin
DxSolo18-Jun-03 3:15
DxSolo18-Jun-03 3:15 
GeneralRe: Sql/osql help Pin
basementman18-Jun-03 4:12
basementman18-Jun-03 4:12 
GeneralRe: Sql/osql help Pin
DxSolo18-Jun-03 5:06
DxSolo18-Jun-03 5:06 
GeneralRe: Sql/osql help Pin
Arjan Einbu18-Jun-03 23:20
Arjan Einbu18-Jun-03 23:20 
GeneralSeveral queries in single ODBC command Pin
jpeg17-Jun-03 4:46
jpeg17-Jun-03 4:46 
With ODBC, I can't write :
'CREATE TABLE table1(field1,field2);CREATE TABLE table2(field1,field2);'
because ODBC doesn't accept the ';'. So I have to execute the first statement and then the second.

Therefore, I'd want to know if there is a possibility to execute a multi-statement line command with ODBC : Is there another separator ?

In fact, I write program that can communicate with several database servers.
I've got a file with all queries I need:
[MySQL]
QUERY1:SELECT * FROM table1
QUERY2:INSERT INTO table1( ....)
.....

[MSSQL]
QUERY1: .....
QUERY2: .....
.....

[ORACLE]
QUERY1: .....
QUERY2: .....
.....

The problem is that I can create a table with 'auto-increment' field with only one SQL statement on MySQL and SqlServer but on Oracle, it needs 3 statements to do it ... and I want to have only one line of SQL code.

If you've got a solution to my problem, please help me !


jpeg
GeneralRe: Several queries in single ODBC command Pin
basementman17-Jun-03 5:42
basementman17-Jun-03 5:42 
GeneralADO 2.5 Interop - Connection.Open Method Pin
Member 44025716-Jun-03 7:57
Member 44025716-Jun-03 7:57 
QuestionXML and Dataset ?? Pin
codycaillet16-Jun-03 7:56
codycaillet16-Jun-03 7:56 
Generalerror adding variable using INSERT INTO Pin
Ahmed Galal13-Jun-03 13:51
Ahmed Galal13-Jun-03 13:51 
GeneralRe: error adding variable using INSERT INTO Pin
Nino_113-Jun-03 17:52
Nino_113-Jun-03 17:52 
GeneralRe: error adding variable using INSERT INTO Pin
Ahmed Galal13-Jun-03 18:02
Ahmed Galal13-Jun-03 18:02 
GeneralRe: error adding variable using INSERT INTO Pin
Arjan Einbu14-Jun-03 15:17
Arjan Einbu14-Jun-03 15:17 
GeneralRe: error adding variable using INSERT INTO Pin
Ahmed Galal14-Jun-03 19:25
Ahmed Galal14-Jun-03 19:25 
Generalunable to detect primary key Pin
Itanium13-Jun-03 6:02
Itanium13-Jun-03 6:02 
GeneralRetrieving sql-queries from a database Pin
Anders Sandberg13-Jun-03 4:26
Anders Sandberg13-Jun-03 4:26 
GeneralRe: Retrieving sql-queries from a database Pin
basementman13-Jun-03 5:12
basementman13-Jun-03 5:12 
GeneralQuery a dataset Pin
Mike Osbahr12-Jun-03 10:48
Mike Osbahr12-Jun-03 10:48 
GeneralRe: Query a dataset Pin
Rocky Moore16-Jun-03 0:58
Rocky Moore16-Jun-03 0:58 
GeneralSql Server registeration error Pin
shalender10-Jun-03 19:21
shalender10-Jun-03 19:21 
GeneralHelp with SQL Server permissions Pin
Tony Truong10-Jun-03 7:37
Tony Truong10-Jun-03 7:37 
GeneralRe: Help with SQL Server permissions Pin
Nino_110-Jun-03 17:38
Nino_110-Jun-03 17:38 
GeneralRe: Help with SQL Server permissions Pin
Tony Truong11-Jun-03 8:40
Tony Truong11-Jun-03 8:40 

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.