无法Debug SQL: Unable to start T-SQL Debugging. Could not attach to SQL Server process on

今天用SSMS debug SQL脚本的时候,突然报错:

Unable to start T-SQL Debugging. Could not attach to SQL Server process on

----

想想最近电脑也没什么改动,除了昨天在电脑里创建了域,后来又删除了。想想应该是哪里的账户出现问题了。

但辗转反侧那么多网站搜索,都没有结果,他们建议的地方,我都没有问题,但就是报错。

最后才发现原因:

因为SQL Server的中Windows登陆方式登陆的账户有问题,不能登陆导致的。

因为明明我是SQL账户和Windows账户都支持登陆的,却发现无法用Windows账户登陆。比较奇怪,于是删掉Windows账户,重新添加,这次可以登陆。

同时问题也解决了。

时间: 2024-12-26 12:09:49

无法Debug SQL: Unable to start T-SQL Debugging. Could not attach to SQL Server process on的相关文章

InstallShield在MySQL和Oracle中执行SQL脚本的方法InstallShield在MySQL和Oracle中执行SQL脚本的方法

简述 InstallShield已经内建了对MySQL和Oracle的支持.但是这个功能是通过ODBC实现的,它对SQL脚本的格式要求非常严格,因此已经通过官方客户端测试的脚本在IS中执行时往往就会报错. 一般来说,数据库脚本只保证通过官方客户端测试即可,同时维护一份供IS执行的脚本费时费力.因此,考虑安装程序对两数据库的支持通过官方客户端实现. MySQL   function InstallMySQLComponent(szComponent) NUMBER nResult; STRING

SQL Server2008为表的某列设置默认值为SQL Server函数

  例如,设置SQL Server函数GETDATE()作为默认值: SQL Server2008为表的某列设置默认值为SQL Server函数

sql数据库还原,出现媒体簇的结构不对,SQL Server无法处理此媒体簇的解决方式之中的一个。

问题: sql数据库还原.出现媒体簇的结构不对,SQL Server无法处理此媒体簇. 异常例如以下图. 造成问题的解决办法: 我的电脑上安装了sql2005和sql2008,问题就在于我用sql2008的SQL Server Management Studio工具打开的是sql2005的实例.用SELECT @@VERSION语句就可以查看当前的实例版本号. 例如以下图. 所以终于的解决方式就是,仅仅要保证连接实例所在的版本大于等于要还原的数据库的版本.就可以还原成功.

pl/sql developer 快捷操作: 显示不可见字符 显示历史sql语句 拷贝整个sql窗口的语句至新的sql窗口

显示不可见字符:可以把空格.回车显示出来: 显示历史sql语句:ctrl+e,不仅仅包含这个数据库的sql语句,还有其他数据库的:必须在sql窗口才可以激活这个功能: 拷贝整个sql语句至新的sql窗口:可以进行快捷的备份.修改:

SQL点滴10—使用with语句来写一个稍微复杂sql语句,附加和子查询的性能对比

原文:SQL点滴10-使用with语句来写一个稍微复杂sql语句,附加和子查询的性能对比 今天偶尔看到sql中也有with关键字,好歹也写了几年的sql语句,居然第一次接触,无知啊.看了一位博主的文章,自己添加了一些内容,做了简单的总结,这个语句还是第一次见到,学习了.我从简单到复杂地写,希望高手们不要见笑.下面的sql语句设计到三个表,表的内容我用txt文件复制进去,这里不妨使用上一个随笔介绍的建立端到端的package的方法将这些表导入到数据库中,具体的就不说了. 从这里下载文件employ

在论坛中出现的比较难的sql问题:1(字符串分拆+行转列问题 SQL遍历截取字符串)

原文:在论坛中出现的比较难的sql问题:1(字符串分拆+行转列问题 SQL遍历截取字符串) 最近,在论坛中,遇到了不少比较难的sql问题,虽然自己都能解决,但发现过几天后,就记不起来了,也忘记解决的方法了. 所以,觉得有必要记录下来,这样以后再次碰到这类问题,也能从中获取解答的思路. 求SQL遍历截取字符串 http://bbs.csdn.net/topics/390648078 从数据库中读取某一张表(数据若干),然后将某一字段进行截取.比如:字段A    字段Ba/a/c      xa/b

Unable to make the session state request to the session state server处理

Server Error in '/' Application. Unable to make the session state request to the session state server. Please ensure that the ASP.NET State service is started and that the client and server ports are the same.  If the server is on a remote machine, p

Unable to make the session state request to the session state server处理方法

Server Error in '/' Application. Unable to make the session state request to the session state server. Please ensure that the ASP.NET State service is started and that the client and server ports are the same.  If the server is on a remote machine, p

转: 解决【Unable to make the session state request to the session state server】

错误描述: Unable to make the session state request to the session state server. Please ensure that the ASP.NET State service is started and that the client and server ports are the same.  If the server is on a remote machine, please ensure that it accept