sql server连接 - reg [英] sql server connection - reg

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

问题描述

亲爱的,



i有一个在visual studio 2012中创建的CLR项目,该项目连接到sql server 2008并在我的位置工作正常但是当试图执行同样在其他PC上它不会工作,



i尝试使用各种连接字符串。我发现唯一的干扰是我的服务器是x86,后来是x64位。



请帮帮我。



提前感谢



lava

DEAR ALL,

i have an CLR project created in visual studio 2012 which connects to the sql server 2008 and works fine in my place but when try to execute the same in other PC it wont work,

i tried with all sort of connection strings. the only defference i found was my server is x86 and later was x64 bit.

help me please.

thanks in advance

lava

推荐答案

问题在于连接字符串... ie = datasorce:company \\server而不是datasource:company\server。
the problem was with the connection string ... i.e =datasorce :company\\server instead datasource : company\server.


你需要为服务器架构制作你的exe:x86。



在你的日志中进行一些记录 - 因为我猜我不能正常运行; - )
you need to make your exe for the server architecture: x86.

make some logging in your - coz i guess i wont run properly ;-)


感谢您的回复,



但是东西是连接字符串中的数据源名称,如果硬核到服务器名称工作正常但它没有取IP地址是localhost为什么这样...?





熔岩
thanks for the reply,

but the thing is in connection string for the data source name if hardcore it to the server name working fine but it is not taking the IP address are localhost why so...?


lava


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

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