存储过程Debug

昨晚我又发现了一个奇怪的问题,就是在两个装有不同版本SQL Server 2000的机子上分别试验,结果发现在装有服务器版的机子上可以Debug,在装有标准版的机子上却在Debug之前会弹出对话框,对话框内容如下:

SP debugging may not work properly if you log on as 'Local System account' while SQL Server is configured to run as a service.
You can open Event Viwer to see details.

救命,到底是什么意思?难道能不能用Debug还跟版本有关系?

---------------------------------------------------------------------
SP debugging may not work properly if you log on as 'Local System account' while SQL Server is configured to run as a service.
You can open Event Viwer to see details.

当SQL Server被配置为作为一项服务随系统启动后,如果你是以'Local System account'本地系统帐号登陆的话,可能造成存储过程调试器不能正常工作!你可以打开win2000事件查看器查看详细信息!

上面是翻译,可能解释不太清楚!不过我分析可能是权限不够,要么你不是w2k的Administrator要么不是SQL的sa,调试器功能肯定只是为权限高级的管理员准备的,一般用户要调试当然会出问题!
---------------------------------------------------------------

补充一下我的系统为xp个人版本,sql2000也是个人版本,所以调试器不能正常工作跟版本没有关系!
---------------------------------------------------------------

意思是说你的sql server service不能用系统账号启动,应该以其他的账号启动。比如有权限的一个自建的账号abc
---------------------------------------------------------------
TO tjan(安安):以下是我在WIN2000的事件查看器中找到的错误信息

事件类型: 错误
事件来源: SQLDebugging98
事件种类: 无
事件 ID: 11
日期: 2002-12-19
事件: 12:52:56
用户: N/A
计算机: SENLAB-05
描述:
SQL Server when started as service must not log on as System Account. Reset to logon as user account using Control Panel.

什么意思我看不懂!请大家帮帮忙给个线索

---------------------------------------------------------------

to huihuishou(挥挥手)

老弟,该好好学学E文了!搞电脑不懂这个就白搞了:)

SQL Server when started as service must not log on as System Account. Reset to logon as user account using Control Panel.

当SQL Server作为一项服务被启动时,禁止用系统帐号登录.在控制面板中重新设置你的登录为其他用户帐号!

意思和安安的一样!
---------------------------------------------------------------
huihuishou
也不要这么复杂,就是在服务管理器里,该服务里有一个选项,local system accout 或一个指定的帐号,你选择指定帐号,并指定一个有系统权限的帐号.

-----------------------------------------------------------------
谢谢各位!我的问题解决了,确实如上述错误信息所说,在控制面板中修改一下启动服务的帐号就可以了。

Published At
Categories with 数据库类
Tagged with
comments powered by Disqus