确定SQL Server的服务器和数据库名称 [英] Determining the Server and Database Name for a SQL Server

查看:144
本文介绍了确定SQL Server的服务器和数据库名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我正在通过阅读本文?
如果是,如何?

解决方案

如果这是用于Sql server,则不应将文件复制到本地文件夹-它应该是SQL Server所在的位置实例可以获取它-它可能与您的本地网站不在同一台计算机上(甚至无法访问您的本地网站计算机).您应该在该网站将要使用的实例上的SQL Server中创建数据库.

Alternativley,更简单的方法是使用访问数据库并遵循本教程:"通过您的"

Hi,
I''m working out on creating membership schema in VS by reading this
link,
In first step, it propose to create an database file in VS by adding a database file to App_data folder, and next I should open the MS SQL 2005 Express to determining that file.
I have MS SQL server 2008 R2, and when I want to add the database than I create in App_data,
I can''t find it...
because The SQL server message : cannot access the specific path or file on the server. verfy that you have the necessary security privileges and the path or file exists.
How I can add that database?
can I create a database in MS SQL server and use it for this article?
if yes, How?

解决方案

If this is for Sql server, then you shouldn''t copy the file to you local folder - it should be where the SQL server instance can get hold of it - which may not be on the same machine as your local web site (or even have any access to you local web site machine). You should create the database in SQL server on the instance the web site will be using.

Alternativley, the easier way to do all this is to use an access database and follow this tutorial: Introduction to Membership[^] which take you through the process very quickly.


这篇关于确定SQL Server的服务器和数据库名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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