asp.net2010中的sql server数据库连接 [英] sql server database connection in asp.net2010

查看:57
本文介绍了asp.net2010中的sql server数据库连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用sql server数据库进行数据库连接。我在visual basic ASP.NET2010中进行此连接,右键单击数据库连接后,CREATE NEW SQL SERVER DATABASE窗口打开,这里我想给出服务器名称。



i将服务器名称指定为.\SQLEXPRESS,将我的数据库名称指定为minedb。但它不会接受。



那么什么是sql server名称...请帮帮我

i want to do database connection using sql server database. i am doing this connectivity in visual basic ASP.NET2010, after right click on the database connection CREATE NEW SQL SERVER DATABASE window is open, here i want to give server name.

i given the server name as .\SQLEXPRESS and my database name as minedb. but it wont accept.

so what is the sql server name... please help me

推荐答案

检查可用并在Windows服务中运行的实例名称(安装sql server时由实例名称给出)



对于Ex:服务器名称(计算机名称)或IP)\实例名称,端口



注意:如果是默认端口(1433),则无需提及
Check the instance name which is available and running in windows services (instance name is given by you while installation of sql server)

For Ex: server name(computer name or IP)\instance name,port

Note: If it is default port (1433), no need to mention






只需使用。或数据库下拉列表中的所有数据库中的localhost。
Hi,

Just use . or localhost in the database dropdown all the databases will come.


您好,



数据源=。



数据来源=系统名称(例如:SUBBARAO-PC)



尝试一次
Hi,

Data Source=.

Data Source=System Name(eg: SUBBARAO-PC)

Try this once


这篇关于asp.net2010中的sql server数据库连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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