Thanks for your reply. I've added an ObjectScopeProvider helper class to the Management assembly, and at the start of my testI call AdjustForDynamicLoad(string
, which I've copied from the help topic "How to: Dynamically Manage a Connection to a Data
". Now the following exception occurs when it executes db.GetSchemaHandler().CreateDatabase():
|Telerik.OpenAccess.RT.sql.SQLException: An attempt to attach an auto-named database for file C:\...\TestDb.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share.
But the database file doesn't exist, and in other tests I successfully use a SQL script to create a database with the same path.