与sqlserver的连接 [英] connection to sqlserver

查看:96
本文介绍了与sqlserver的连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用程序在客户端安装时给我一个服务器相关的错误...
以下是我的连接字符串
用户ID = sa;密码= sa;数据库=方式;数据源= MachineName \ SQLEXPRESS2005"
我可以使用什么脚本代替"MachineName"

谢谢

my application give me a server related error when i install it at the client side...
below is my connection string
"user id = sa;password = sa; database = how; data source = MachineName\SQLEXPRESS2005"
what script can i use in place of the "MachineName"

thanks

推荐答案

即使安装后在客户端,您也将获得该字符串,并且您可以为其方便地进行编辑并获得正确的字符串名称
you will get the string even at the client after installation and in that you can edit for your convinent and get the correct string name


很可能会使用服务器的IP地址.
Most likely, you will be using the IP address of the server.


这篇关于与sqlserver的连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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