Erorre....................
An attempt to attach an auto-named database for file D:\Final\MokatebatEdari\MokatebatEdari\bin\Debug\\ DbSardar.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share.
این هم کد open کردن بانک :
static string databaseAddress = @"Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirector y|\DbSardar.mdf;Integrated Security=True;User Instance=True";
دو فابل بانک اطلاعاتی ایجاد شده از sql رو تو شاخه bin/debug قرار دادم و و همچنین از Sql express 2005 استفاده میکنم .
مشکل چیه ؟
در ضمن اولین بار هست که C# رو با بانک sql کار میکنم .