sql server 2008这个错误怎么解决?
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sql server 2008这个错误怎么解决?相关的知识,希望对你有一定的参考价值。
参考技术A 一.233错误1.
打开“microsoft
sql
server
2008--配置工具--sql
server
配置管理器”
2.
"sql
server
2008
网络配置"--"mssqlserver的协议"--启用"tcp/ip"和"named
pipes".在启动tcp/ip协议后,还要把其属性中的tcp端口号改为1433(动态端口)或修改为自己想要的端口号.
3.
重启"sql
server"
昨天在安装完microsoft
sql
server
2008
后,发现从microsoft
sql
server
management
studio
连接到服务器时,如果在服务器名称处填写的不是机器名,而是ip地址时,连接总是提示失败,出现如下图所示的提示:
解决方法:打开‘程序’-‘所有程序’-‘microsoft
sql
server
2008’-‘配置工具’-‘sql
server
配置管理器’,在弹出的窗体中,找到‘sql
server
2008
网络配置’,把‘mssqlserver的协议’下的“named
pipes”和“tcp/ip”启动,然后重新启动microsoft
sql
server
2008就可以了
其它错误代码参考 参考技术B 问题一:已成功与服务器建立连接,但是在登录过程中发生错误。
(provider:
共享内存提供程序,
error:
0
-
管道的另一端上无任何进程。
用windows身份登录management
studio,
点击站点属性,将安全选项
更改为:windows
和sql混合身份登录,解决。
问题二:
SQL2005企业管理器登录时选用windows身份验证一切顺利,然而使用sql
server身份验证即sa用户名登录时,却出现以下错误提示“provider:
共享内存提供程序,
error:
0
-
管道的另一端上无任何进程”。
于是按以下步骤修改设置:
既然windows身份验证能够通过,就以该身份先登录进管理器,然后在服务器属性中有一项服务器身份验证,设为sql
server和windows身份验证模式。下一步,在安全--登录中设置sa用户的属性,在状态一栏中有“登录”一项,默认是禁用,改为启用。修改完成后,重启企业管理器以sa用户名进行登录,问题依旧。想了半天,原来在设置完“sql
server和windows身份验证模式”后,要求重启服务。当时设置完成后只是重新开启了企业管理器,其服务并没重新启动。
因此找到“SQL
Server
外围应用配置器”,运行后,选择“服务和连接外围应用配置器”,先停止SQLEXPRESS一下,再启动一次。至此问题应该解决了。
这是复制的,这种问题上网搜搜有好多的。
http://www.cnblogs.com/Kings1665/archive/2009/08/16/1547534.html
???Sql Server???SQL SERVER ????????????
?????????int with ?????? serve span ?????? inner -- blog
??????:???Sql Server???SQL SERVER ??????????????????SQL SERVER 2005?????????????????????????????????????????????SQL SERVER 2005???????????????CTE?????????????????????CTE?????????????????????
??????CTE??????????????????Common Table Expression ???SQL SERVER 2005????????????????????????????????????
#??????????????????
1???sql
1 Create table GroupInfo([Id] int,[GroupName] nvarchar(50),[ParentGroupId] int) 2 3 Insert GroupInfo 4 5 select 0,??????????????????,null union all 6 7 select 1,??????????????????,0 union all 8 select 2,??????????????????,1 union all 9 select 3,??????????????????,1 union all 10 select 4,????????????????????????,2 union all 11 select 5,????????????????????????,2 union all 12 select 6,????????????????????????,3 union all 13 select 7,????????????????????????,3 union all 14 15 select 8, ???????????????,0 union all 16 select 9, ?????????????????????,8 union all 17 select 10,????????????????????????,8 union all 18 select 11,???????????????????????????,9 union all 19 select 12,???????????????????????????,9 union all 20 select 13,??????????????????????????????,10 union all 21 select 14,??????????????????????????????,10
2????????????
#????????????Demo
1???????????????????????????????????????????????????,???????????????????????????
1 --???????????????????????????????????????????????? 2 with 3 CTE 4 as 5 ( 6 select * from GroupInfo where Id=1 7 union all 8 select G.* from CTE inner join GroupInfo as G 9 on CTE.Id=G.ParentGroupId 10 ) 11 select * from CTE order by Id
1 --???????????????????????????????????????????????? 2 with 3 CTE 4 as 5 ( 6 select * from GroupInfo where Id=14 7 union all 8 select G.* from CTE inner join GroupInfo as G 9 on CTE.ParentGroupId=G.Id 10 ) 11 select * from CTE order by Id
2?????????????????????
1 --?????????????????? 2 with 3 CTE 4 as 5 ( 6 select Id,GroupName,ParentGroupId,GroupPath=CAST( GroupName as nvarchar(max)) from GroupInfo where Id=1 7 union all 8 select G.*,CAST(CTE.GroupPath+???//???+G.GroupName as nvarchar(max)) as GroupPath from CTE 9 inner join GroupInfo as G 10 on CTE.Id=G.ParentGroupId 11 ) 12 select * from CTE
3?????????????????????????????????????????????????????????
1 --??????id????????????????????????????????????sort??????????????????sort?????????????????????????????????????????????????????? 2 WITH 3 CTE 4 AS 5 ( 6 SELECT * ,CAST(RIGHT(???000??? + CAST([Id] AS VARCHAR), 3) AS VARCHAR(MAX)) AS sort FROM GroupInfo 7 WHERE ParentGroupId = 0 8 UNION ALL 9 SELECT GroupInfo.* ,CAST(sort + RIGHT(???000??? + CAST(GroupInfo.[Id] AS VARCHAR),3) AS VARCHAR(MAX)) AS sort 10 FROM CTE 11 INNER JOIN GroupInfo ON CTE.Id = GroupInfo.ParentGroupId 12 ) 13 SELECT * FROM CTE ORDER BY sort
4?????????????????????????????????????????????????????????
1 --?????????????????? 2 WITH CTE AS ( 3 SELECT *,1 AS [Level] FROM GroupInfo WHERE ParentGroupId=0 4 UNION ALL 5 SELECT G.*,CTE.Level+1 FROM GroupInfo as G 6 JOIN CTE ON CTE.Id =G.ParentGroupId 7 ) 8 SELECT * FROM CTE
以上是关于sql server 2008这个错误怎么解决?的主要内容,如果未能解决你的问题,请参考以下文章
SQL 2008 mssqlserver 服务开启失败,日志提示如下错误,请问这个怎么办?