无法在计算机上打开SQLBrowser服务 [英] Cannot open SQLBrowser service on computer

查看:88
本文介绍了无法在计算机上打开SQLBrowser服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有带有SQLServer 2005数据库的.net桌面应用程序.

我通过VisualStodio ide通过C#代码通过应用程序将数据库连接到数据库,

使我必须刷新SQLBrowser服务并在禁用的情况下启动它

它可以在Windows 32位的Windows 32位上正常工作,但在Windows 64位的它却给我那个错误

i have .net disktop application with SQLServer 2005 Database .

i make attach to the DataBase via the application by c# code via VisualStodio ide ,

to make that i have to refresh SQLBrowser service and start it if it''s disable

it works correctly on windows 32bit BUT on windows 64bit it gives me that error

{"Cannot open SQLBrowser service on computer ''.''."}


{"Access is denied"}




我如何通过我的C#代码在Windows 64位上访问任何服务??????????




how can i access any service on windows 64bit via my C#code??????????

推荐答案

我假设我是开放的,启动浏览器服务.您的应用程序需要提升的权限才能启动服务.尝试以管理员身份运行它,看看是否可以通过这种方式启动该服务.我不建议一直以管理员身份运行整个应用程序,但用于管理服务的部分可能需要提高权限.
I''m assuming by open you mean start the browser service. Your application needs elevated permission to start the service. Try running it as administrator and see if you can start the service that way. I wouldn''t recommend running the entire app as administrator all the time but the portion for managing services probably needs that elevation.


这篇关于无法在计算机上打开SQLBrowser服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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