本文介绍了连接位于另一个程序中的数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨我想在另一个程序中连接到数据库
我使用此代码
connection.ConnectionString = @" Server = localhost; Integrated Security = SSPI" ;
但是要连接到另一个程序中的数据库,我必须放置什么而不是"localhost"?
在此先感谢:)
解决方案
hi
I want to connect to database in another program
I use this code
connection.ConnectionString = @"Server=localhost;Integrated Security=SSPI";
but what I have to put instead of "localhost" to connect to database that are located in another program ?
thanks in advance :)
解决方案
这篇关于连接位于另一个程序中的数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!