Visual Studio 2010/2013中内置数据库的位置 [英] where do the built in database present in the visual studio 2010/2013

查看:128
本文介绍了Visual Studio 2010/2013中内置数据库的位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,我在内置数据库工作并访问asp.net中的注册页面。所以我可以知道在哪里可以找到数据库,以便我可以看到谁是所有注册和登录的用户。

hello everyone, i was working in built in database and accessing the register page in asp.net . so can i know where do i find the database so that i can see who are all the users registered and logged in .

推荐答案

它必须在你的App_Data文件夹中应用。它可能是隐藏文件,因此首先使用解决方案资源管理器中的显示所有文件按钮,然后查看App_Data文件夹。



还有一件事....如果你刚刚创建了ASP.NET应用程序,默认情况下数据库就不存在了。数据库将仅在第一次任何用户注册时创建。



即使没有获得数据库,也请查看Web.Config ....为自己我可以看到:



add name =DefaultConnectionprovidername =System.Data.SqlClientconnectionstring =Data Source =(LocalDb)\ v11.0;初始目录= aspnet-WebApplication1-20140223194834;集成安全性= SSPI; AttachDBFilename = | DataDirectory | \aspnet-WebApplication1-20140223194834.mdf



重要的值是: AttachDBFilename = | DataDirectory | \ aspnet-WebApplication1-20140223194834.mdf.....看看你的。
It must be inside App_Data folder in your application. It may be as hidden file so first use "Show All Files" button in Solution explorer and then look inside App_Data folder.

One more thing....if you just created the ASP.NET application, by default database is not there. The Database will be created only when first time any user would register himself.

Even if not getting DB, then look into Web.Config....for myself I can see like:

add name="DefaultConnection" providername="System.Data.SqlClient" connectionstring="Data Source=(LocalDb)\v11.0;Initial Catalog=aspnet-WebApplication1-20140223194834;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|\aspnet-WebApplication1-20140223194834.mdf"

The important value is: AttachDBFilename=|DataDirectory|\aspnet-WebApplication1-20140223194834.mdf".....Look into yours.


你好,



VS 2013内置SQL Express。此链接 [ ^ ]应该可以帮助您开始使用它,并且还会回答可以找到文件的位置。



如果你只是想找到mdf文件,那么默认位置是:

C:\ Users \< yourusername> ; \Documents \< thenameyouhadchosen> .mdf



希望这会有所帮助。



[请接受/投票给你的答案或解决方案以鼓励参与]
Hi,

VS 2013 comes in-built with SQL Express. This link[^] should help you get started with it and will also answer where the file can be found.

If you just want to locate the mdf file then the default location is:
C:\Users\<yourusername>\Documents\<thenameyouhadchosen>.mdf

Hope this helps.

[Please accept/up-vote answers or solutions that work for you to encourage participation]


这篇关于Visual Studio 2010/2013中内置数据库的位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆