【sql2000数据库】Named Pipes Provider error 40
摘要:问题描述:An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not...
阅读全文
posted @
2010-11-23 20:40
追梦人RUBY
阅读(501)
推荐(0) 编辑
解决SQL Server管理器无法连接远程数据库的问题
摘要:许多初学者在使用SQL Server时都会遇到使用SQL Server Management Studio无法连接远程数据库实例的问题,大致的错误描述如下: An error has occurred while establishing a connection to the server.(provider: Named Pipes Provider, error: 40 – Co...
阅读全文
posted @
2010-11-23 20:25
追梦人RUBY
阅读(289)
推荐(0) 编辑
sql server中datetime字段只取年月日如2006-04-21,默认值如何设置?getdate()得到的是包含时分秒的时间。
摘要:select CONVERT(varchar, getdate(), 120 ) 2004-09-12 11:06:08 select CONVERT(varchar(10), datatime1, 120 )2004-09-12 select CONVERT(varchar(4), datatime1, 120 )+'年'+substring(CONVERT(varchar(10), datat...
阅读全文
posted @
2010-11-18 09:44
追梦人RUBY
阅读(265)
推荐(0) 编辑