I am trying to make a website using local server in visual studio 2010. I posted before about the errors that I got during debugging.
Now I just want to make sure that I am doing the correct thing to create a local SQL server. I created a .mdf database in the App_code, configured the web.config and created a table for the .mdf database. Is that just what I need to do to create a local server?
thanks
如果您在计算机上安装了SQL Server,并且数据库在App_Data目录中,则只需在连接字符串中进行连接即可:
Server=.\SQLExpress;AttachDbFilename=|DataDirectory|mydbfile.mdf; Database=dbname;Trusted_Connection=Yes;
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.