Page 1 of 1

Linq DatabaseExists() and CreateDatabase() errors

Posted: Wed 12 May 2010 16:55
by DeepSeaDave
I get a "The method or operation is not implemented" error when calling the DataContext.DatabaseExists() method, and I get a "Error on executing DbCommand" error when I try to execute the DataContext.CreateDatabase() method. Are these methods implemented and working? If so, what should I be looking for to see why it won't work for me?

Thanks,

Posted: Thu 13 May 2010 12:15
by AndreyR
The DatabaseExists() method is not implemented yet.
To run the CreateDatabase() method you should have the database already created with the name specified in the connection string . The user you connect under should have rights to execute DDL scripts.

Posted: Thu 13 May 2010 14:12
by DeepSeaDave
So if I understand this correctly, all the CreateDatabase() method will do is create the tables in the already created database?

I would still have to use plain SQL to see if the database exists and then use SQL to create the database?

Posted: Thu 13 May 2010 15:48
by AndreyR
We are working on the DatabaseExists method.

Posted: Mon 05 Jul 2010 15:22
by AndreyR
We have implemented the DatabaseExists() method for MySQL. The new build will be available this week.