Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
programer
Posting Yak Master
221 Posts |
Posted - 2010-12-21 : 18:30:20
|
| I created a database with SQL Server 2008 R2When I want to show data in GridView writes:2. When I did I wrote the Path to That file and the web.config:<add name = "NORTHWNDConnectionString" connectionString = "Data Source =. \ SQLEXPRESS2; AttachDbFilename = | DataDirectory | \ ASPNETDB.MDF; Integrated Security = True; User Instance = True"Displayed this error:One OR CAN files do not match the primary file of the database. IF you are attempting Tues Attach a database, retry the operation With the Correct files. IF this is an Existing Database, the file corrupted May Be and Should Be restored from a backup.An attempt Tues Attach an auto-named database for file C: \ Potni_nalogi_2011 \ App_Data \ ASPNETDB.MDF failed. A Database With TheWhat's the problem? |
|
|
Sachin.Nand
2937 Posts |
Posted - 2010-12-22 : 01:31:46
|
| Check your connection string herewww.connectionstrings.comPBUH |
 |
|
|
|
|
|