How to attach .mdf file to .SQLEXPRESS

后端 未结 5 1673
死守一世寂寞
死守一世寂寞 2021-01-05 16:41

Tried this in as connection string

connectionString=\"Server=.\\SQLEXPRESS;
    AttachDbFilename=E:\\Database\\dnn49.mdf;Database=dnn49; 
    Trusted_Connect         


        
5条回答
  •  孤城傲影
    2021-01-05 16:50

    One other suggestion is to turn off UAC (you can turn it off just temporary to verify if it is a permission problem).

提交回复
热议问题