我在VS里面新建了数据库,是放在APP_DATA文件夹里的。我在SQL server management studio里面 Attach Database。
但是找不到刚刚建好的数据库。这是为什么啊?
我连接数据库服务器是用.\SqlExpress ,身份验证是windows的。

解决方案 »

  1.   

    TITLE: Microsoft SQL Server Management Studio
    ------------------------------Attach database failed for Server 'JESSY-VAIO\SqlExpress'.  (Microsoft.SqlServer.Smo)For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=10.50.1750.9+((dac_inplace_upgrade).101209-1051+)&EvtSrc=Microsoft.SqlServer.Management.Smo.ExceptionTemplates.FailedOperationExceptionText&EvtID=Attach+database+Server&LinkId=20476------------------------------
    ADDITIONAL INFORMATION:An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo)------------------------------Unable to open the physical file "C:\Security Tutorial\App_Data\SecurityTutorials.mdf". Operating system error 5: "5(拒绝访问。)". (Microsoft SQL Server, Error: 5120)For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=10.00.2531&EvtSrc=MSSQLServer&EvtID=5120&LinkId=20476------------------------------
    BUTTONS:OK
    ------------------------------