One web form. One sqlconnection, one datagrid.
sql connection string: Data Source=.\SQLEXPRESS;AttachDbFilename=“C:\Program Files\Microsoft SQL Server\MSSQL\Data
orthwnd.mdf”;Integrated Security=True;Connect Timeout=30;User Instance=True
Configuration works great. Tests fine.
Data grid has the sqlconnection as a datasourceid. When running I get the error:
An attempt to attach an auto-named database for file C:\Program Files\Microsoft SQL Server\MSSQL\Data
orthwnd.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share.
Potential solution of deleting folder in SQLExpress folder is no good. Only one folder there.
calm down…calm down…
:mad: