SQL Server帮助 [英] Sql Server Help
本文介绍了SQL Server帮助的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
朋友,
我做了一些数据库insql服务器.请告诉我有关如何在目标计算机上将产品与数据库一起部署的过程.我是数据库新手.所以请指导我入门.
问候
Hi Friends,
I have made some database insql server. Please tell me the procedure how I can deploy my product with the database on the target computer. I am new with databases. So please guide me at beginner level.
Regards
推荐答案
查看是否此链接可以帮助您.
See if this link helps you.
嗨
如您所说,您已经在sql server中创建了数据库,并且您想使用它...因此在项目中使用sqlconnection,您想使用该数据库...为此
包括
使用system.data.sqlclient; //namespace
然后以
的方式连接到数据库
sqlconnection con = new sqlconnection("constr");
连接字符串是连接到特定数据库的字符串,您可以从中获取该字符串
工具->连接到数据库->数据源(SQL Server)
输入服务器名称和数据库名称
然后单击高级并从那里复制连接字符串.
我认为这会帮助你........
谢谢
adi
hi
as u said u have created database in sql server and u want to use it...so use sqlconnection in the project u want to use this database...for this
include
using system.data.sqlclient; //namespace
and then make connection to the database as
sqlconnection con=new sqlconnection("constr");
connection string is the string to connect to the particular database this string u can get from
tools-> connect to database-> datasource (sql server)
enter server name and database name
then click on advance and copy the connection string from there.
i think this will help u........
thanks
adi
这篇关于SQL Server帮助的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文