[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework.odbcnet

executing multiple queries

zimzion

9/6/2002 12:49:00 PM

i had connected MySQL using ODBC.NET.
Everything is ok except not executing a query which generates multiple
tables.
For example,

CREATE TABLE Accounts_Users(UserID int NOT NULL AUTO_INCREMENT PRIMARY KEY);
CREATE TABLE Accounts_Users2(UserID int NOT NULL AUTO_INCREMENT PRIMARY
KEY);

When i executed above query, it showed a SQL Syntax error.
Of course, A query that creates one table is executed well.
Is it impossible to execute a query which generates multiple tables?



1 Answer

(Hussein Abuthuraya(MSFT))

9/7/2002 3:08:00 AM

0

Only SQL Server allows executing multiple queries in one command. Access and Oracle don't support that and it looks like also MySQL don't support that.


Thanks,
Hussein Abuthuraya
Microsoft Developer Support

This posting is provided "AS IS" with no warranties, and confers no rights.

Are you secure? For information about the Microsoft Strategic Technology Protection Program and to order your FREE Security Tool Kit, please visit
http://www.microsoft.co....