连接到不同框中的sql server的连接字符串是什么 [英] what would be the connection string to connect to a sql server in a different box

查看:49
本文介绍了连接到不同框中的sql server的连接字符串是什么的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在vb.net应用程序中使用SQL Server 2005,以连接到我计算机中的数据库,我正在使用以下连接字符串

数据源= ADITIDT552 \ SQLEXPRESS;初始目录=跟踪器;用户ID = sa;密码= matrix2010
和这工作正常,但当我在另一个框中连接到SQLserver时,则我收到未找到SQL Server错误.请让我知道我需要使用什么连接字符串.请帮忙.在此先感谢您

Hi I am using SQL Server 2005 in my vb.net application, to connect to the DB in my machine i am using the following connection string

Data Source=ADITIDT552\SQLEXPRESS;Initial Catalog=tracker;User ID=sa;Password=matrix2010
and this works fine, but when i am connecting to a SQLserver in another box, then i am receiving SQL Server Not found error. Please let me know what connection string i need to use. Please help. Thanks in advance

推荐答案

您是否可以尝试使用相同的服务器名称,用户ID和密码在Management Studio中访问SQL Server.我猜这些属性之一是错误的.
Can you try accessing the SQL server in Management Studio using the same server name, user Id and password. I guess one of these attribute is wrong.


这篇关于连接到不同框中的sql server的连接字符串是什么的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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