上一页 1 ··· 4 5 6 7 8 9 10 下一页
  2008年7月21日
摘要: use Master go if object_id('SP_SQL') is not null drop proc SP_SQL go /******************************************************************************** 阅读全文
posted @ 2008-07-21 18:34 中國風 阅读(215) 评论(0) 推荐(0) 编辑
摘要: --阻塞 /*********************************************************************************************************************** 阻塞:其中一个事务阻塞,其它事务等待对方释放它们 阅读全文
posted @ 2008-07-21 01:21 中國風 阅读(148) 评论(0) 推荐(0) 编辑
  2008年7月4日
摘要: 1、提示加載服務("安装程序配置服务器失败")出錯時,通常是由於注冊表信息或安裝文件夾SQL文件沒有完全刪除造成的 A、刪除注冊表(XP系統為例) Windows Registry Editor Version 5.00 [-HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft 阅读全文
posted @ 2008-07-04 13:33 中國風 阅读(211) 评论(0) 推荐(0) 编辑
  2008年6月19日
摘要: 在网上回复问题时,生成测试数据是必不可少的 1.在master系统库生成存储过程方法 2.调用方法 空格时要用~符号填充 2.1、临时表 e.g. 2.2、表变量 e.g. 3.3、表 有特殊格式不支持可能不支持,大家有兴趣可方法上调整不能处理的格式 阅读全文
posted @ 2008-06-19 11:13 中國風 阅读(190) 评论(0) 推荐(0) 编辑
  2008年5月21日
摘要: --自动生成数据库的清空脚本(SQL05環境) --use Test--指定數據庫 --go if object_id('F_Clear','TF') is not null drop function F_Clear GO /********************************************************************************... 阅读全文
posted @ 2008-05-21 22:57 中國風 阅读(183) 评论(0) 推荐(0) 编辑
  2008年5月16日
摘要: use testgoif object_id('Tempdb..#T') is not null drop table #Tcreate table #T(ID int,Name nvarchar(100),parentID int)insert #T select 1,'A',0inse... 阅读全文
posted @ 2008-05-16 13:46 中國風 阅读(112) 评论(0) 推荐(0) 编辑
  2008年1月15日
摘要: --2005化解32层递归限制,2000可用循环替代或用(游标while加break递归自己用一个变量传参)if object_id('Tree','U') is not null drop table [Tree]go CREATE TABLE [dbo].[Tree]( [ID]... 阅读全文
posted @ 2008-01-15 19:40 中國風 阅读(141) 评论(0) 推荐(0) 编辑
  2007年12月3日
摘要: use Roy --數據庫go--2005實現數據庫表字段屬性統計(2000里的系統表sysproperties描述表不存在,2005里用sys.extended_properties視圖替代)select [表名]=c.Name, [表说明]=isnull(f.[value]... 阅读全文
posted @ 2007-12-03 18:48 中國風 阅读(136) 评论(0) 推荐(0) 编辑
  2007年11月29日
摘要: use testgo--生成測試臨時表#if not object_id('Tempdb..#')is null drop table #select top 35 [Name]=cast( [Name] as nvarchar(50)) into # from s... 阅读全文
posted @ 2007-11-29 09:14 中國風 阅读(176) 评论(0) 推荐(0) 编辑
  2007年11月13日
摘要: 十进制转换为十八进制create function F_int18(@num int)returns nvarchar(50)asbeginif @num=0 return '0'declare @s nvarchar(50)set @s=''while @num>0 select @s=subst 阅读全文
posted @ 2007-11-13 13:55 中國風 阅读(604) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 下一页