CSDN专家博客精华版

为人民服务!
  首页  :: 新随笔  :: 管理
上一页 1 ··· 232 233 234 235 236 237 238 239 240 ··· 520 下一页

2007年12月17日

摘要: /*--原帖地址:http://community.csdn.net/Expert/topic/3851/3851741.xml?temp=.4726831--*/--测试数据create table tb(id varchar(50) primary key,detail text)insert tb select 'aaa','11111'union all select 'bbb','4... 阅读全文

posted @ 2007-12-17 10:40 csdnexpert 阅读(111) 评论(0) 推荐(0)

摘要: /*--原帖地址:http://community.csdn.net/Expert/topic/3818/3818559.xml?temp=.9593317--*//*--处理要求在sql数据库里有一个名为Pos200502的Database,每个月会有一个类似于这样名称(Pos200502 Pos200503)的database我该如何利用sql server的自动作业+一段存储过程,实现以... 阅读全文

posted @ 2007-12-17 10:40 csdnexpert 阅读(87) 评论(0) 推荐(0)

摘要: --方法2. 脚本复制use mastergoif exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[sp_ProcCopyDb]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)drop procedure [dbo].[sp_ProcCopyDb]GO/*--数据库... 阅读全文

posted @ 2007-12-17 10:40 csdnexpert 阅读(107) 评论(0) 推荐(0)

摘要: --创建一个每月最后一个工作日执行的作业,调用上述存储过程实现自动创建数据库use mastergo--设置 SQL Agent 服务为自动启动exec msdb..sp_set_sqlagent_properties @auto_start=1go--创建作业exec msdb..sp_add_job @job_name=N'自动建库处理'--创建作业步骤declare @sql varc... 阅读全文

posted @ 2007-12-17 10:40 csdnexpert 阅读(101) 评论(0) 推荐(0)

摘要: /*--原帖地址:http://community.csdn.net/Expert/topic/3826/3826130.xml?temp=.4175836--*/--示例数据--建企业名称表CREATE TABLE qiye (qiyemingcheng char(16),xingzhi char(4),shunxu int)insert into qiye select '企业甲','国有... 阅读全文

posted @ 2007-12-17 10:40 csdnexpert 阅读(116) 评论(0) 推荐(0)

摘要: 根据排序定义表排序数据 测试数据:create table tb1(id int,col1 varchar(10),col2 int)insert tb1 select 1,'aa',111union all select 2,'aa',111union all select 3,'aa',111union all select 4,'bb',222union all select 5... 阅读全文

posted @ 2007-12-17 10:40 csdnexpert 阅读(127) 评论(0) 推荐(0)

摘要: 为Ultraedit添加SQL Server语法着色 添加方法,将有颜色标注部分的文字复制到Ultraedit安装文件夹的wordfile.txt文档末尾,可以修改文字中的红色部分(20)为你想添加的语言编号 /L20"SQL Server 2000" Nocase Block Comment On = /* Block Comment Off = */ Line Comment = -- S... 阅读全文

posted @ 2007-12-17 10:40 csdnexpert 阅读(240) 评论(0) 推荐(0)

摘要: 分拆短信中的数据/*--问题描述根据自定义信息前缀表(每个信息前缀可以看作是一个信息分隔符)进行字符串分拆处理的函数,在分拆处理函数中,首先定义了一个信息前缘表@splits,表中包含了AC、BC、CC、DC四个信息前缀(实际使用时,可以在函数中添加其他信息前缘,也可以定义一个正式表来保存信息前缀数据,这样就可以实现用户自定义信息前缀数据的处理)。它的分拆处理过程是这样的: (1) 在短... 阅读全文

posted @ 2007-12-17 10:40 csdnexpert 阅读(82) 评论(0) 推荐(0)

摘要: 作业中使用外部数据源时发生的错误 问题描述: 我建立了一个存储过程,是从别一台机器的ACCESS表里面取数据到本地的SQLSERVR数据库上,从五个表取数据合成一个表,表大约有六百多个字段,我在查询分析器执行存储过程一切都正常,用时2秒到二多秒,但是我把执行这句存储过程的语句做成作业,每分钟执行一次,每次执行就报作业失败。错误:作业失败。 调度 7 (gggg) 唤醒调用了该作业。最后运... 阅读全文

posted @ 2007-12-17 10:40 csdnexpert 阅读(100) 评论(0) 推荐(0)

摘要: 在Text字段尾部追加数据 问题描述: 表 tt 含字段 name1 text 类型 name2 varchar类型 (值可能为 null),现要将 name2的值添加到 name1里边。--示例数据create table tb(name1 text,name2 varchar(20)) insert tb select 'aa','dd' union all select 'bb',... 阅读全文

posted @ 2007-12-17 10:40 csdnexpert 阅读(123) 评论(0) 推荐(0)

上一页 1 ··· 232 233 234 235 236 237 238 239 240 ··· 520 下一页