Windows Service应用程序-数据库连接 [英] Windows Service application-Database connectivity

查看:79
本文介绍了Windows Service应用程序-数据库连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经创建了Windows服务应用程序,但是我想将此应用程序与sql server连接以更新sql中的数据.
我必须在哪里给出代码以及如何给出代码?
请帮助谢谢

I have created a windows service application, but i want to connect this application with sql server for updating data in sql.
where i have to give the code and how?
Please Help Thank you

推荐答案

请参阅参考资料

//仅用于连接目的

http://www.Connectionstrings.com


see reference

//only connection purpose

http://www.Connectionstrings.com

or
Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=Test;Data Source=.


这篇关于Windows Service应用程序-数据库连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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