将C#连接到远程SQL Server [英] connect c# to remote sql server

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

问题描述

你好
我有一个C#程序,想将其连接到远程sql服务器(另一台计算机上的sql服务器)
并且我需要有关C#程序内的连接字符串的帮助
DataSource =?
InitialCatalog =这是我的数据库
UserID =用户名
密码=密码

Hello
I have a c# program and want to connect it to remote sql server (sql server on another machine)
and i need help with the connection string inside the c# program
DataSource=?
InitialCatalog = this the my database
UserID = username
Password = password

推荐答案

你好,

DataSource是您的远程服务器名称或实例.

看看那里:

http://www.connectionstrings.com/sql-server-2008 [
hello,

DataSource is your remote server name or instance.

have a look there:

http://www.connectionstrings.com/sql-server-2008[^]

Valery.


这可能会有所帮助,

从下面的链接中回答4,
how-to-connect-to-remote- sql-server-database-using-visual-c [通过C#访问SQL Server的入门指南 [
It might be helpful,

Answer 4 from the below link,
how-to-connect-to-remote-sql-server-database-using-visual-c[^]

Beginners guide to accessing SQL Server through C#[^]

:)


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

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