How can create a DataBase in MS SQL Server with Uni Dac.
After Connect to Datebase i checked the connection error, then i disconnect and wan't connect to the master db. Than i become an Error: EOLEDBError Multiple Step OLE DB operation generated errors.
THX
Alf
Create Database with Uni Dac in MS SQL Server
To solve this problem you should connect to SQL Server without specifying the Database property of TUniConnection. Then create a database using the 'CREATE DATABASE' statement, like this:
After this you can set the Database property to the new database name and reconnect.
Code: Select all
UniConnection.ExecSQL('CREATE DATABASE "database_name"', []);