P
Paolo
Hope someone can help with this problem...
Using SQL Server Express 2008 and SQL Server Management Studio Express 2008
running on a desktop PC.
When I try to add a database via Management Studio there is no problem, the
database appears in the Explorer.
In Visual C# Express, when I try to 'Add Connection' as follows
Data source - MS SQL Server Database File
Database File Name - browse to appropriate folder and select
Log in using WIndows Authentification
and use the same database I receive the message "The FOR ATTACH option
requires that at least the primary file be specified. An attempt to attach an
auto named database at <filepath\databasename> failed. A database with the
same name exists or specified file cannot be opened or is located on UNC
store".
Looking for a solution if possible.
Thanks
Using SQL Server Express 2008 and SQL Server Management Studio Express 2008
running on a desktop PC.
When I try to add a database via Management Studio there is no problem, the
database appears in the Explorer.
In Visual C# Express, when I try to 'Add Connection' as follows
Data source - MS SQL Server Database File
Database File Name - browse to appropriate folder and select
Log in using WIndows Authentification
and use the same database I receive the message "The FOR ATTACH option
requires that at least the primary file be specified. An attempt to attach an
auto named database at <filepath\databasename> failed. A database with the
same name exists or specified file cannot be opened or is located on UNC
store".
Looking for a solution if possible.
Thanks