e股脑电脑教程网
  • 首 页
  • 操作系统
  • 应用软件
  • 下载工具
  • 影音视频
  • 办公软件
  • 媒体制作
  • 网站建设
  • 平面设计
  • 数据库
  • 程序开发
  • 视频教程
编辑推荐: | 文章搜索:
您现在的位置: e股脑 >> 数据库 >> Sybase教程 >> Dealing with identity gaps (Freebob) >> 教程正文
 
教程搜索
 
 
相关教程
  • Sybase数据库简介
  • 为什么有时候数据库事务日志满了,不能
  • 在LINUX下安装 Sybase ASE 11.0.3.3
  • Dealing with identity gaps (Freebo
  • 关于sybase数据库的锁
  • SYBASE内存和缓冲区管理(rekcah0)
  • sybase 临时数据库tempdb (Arnold)
  • SYBASE dbccdb的安装配置攻略
  • 从数据库应用系统查找解决阻塞问题
  • Sybase数据库的碎片整理( arnold )
  • SYBASE数据库用户管理基本概念 (howto
  • sybase 珍藏系列之三(from shanhan)
  • sybase 珍藏系列之四(from shanhan)
  • SYBASE补丁安装指南
  • 解决 Error 605 错误的方案
  • Sybase TraceFlag 定义
 
 

图文教程


  • Windows抢了谁的饭碗 非主流操作系统To

  • 地球还是火星 平常心看“非主流”

  • 综合运用Office 2007批量制作奖状

  • 没有系统盘如何才能修复受损系统?

  • 巧妙运用Excel中边界的附加功能!
 
 
赞 助 商
 
 
Dealing with identity gaps (Freebob)
  • 来源:e股脑
  • 点击次数:
  • 更新时间:2007-8-9
e table first (like in 11.0), although the

* ASE documentation still says you can't drop a partitioned

* table...

*/

if object_id("invoices_keytable") != NULL

begin

-- commented out: this statement is not needed

-- alter table invoices_keytable unpartition

--

drop table invoices_keytable

end

/*

* now recreate the keytable. This can't be done in

* the same procedure as where the table is dropped, so


* this is done in a separate procedure

*/

exec sp_create_invoices_keytable

/*

* switch identity_insert on for this table

*/

set identity_insert invoices_keytable on

insert invoices_keytable (dummy_key)

values (@set_new_idval)

set identity_insert invoices_keytable off

/*

* ready ...

*/

return (0)

end

go

grant execute on sp_fix_idgap_invoices to public

go

/*

* end of file

*/

这种资料不可多得哦! 故保存下来,大家看看,很有益的!!(jazy)


上一页  1 2 3 4 5 6 7 
  • 上一篇教程: 关于sybase数据库的锁
  • 下一篇教程: 在LINUX下安装 Sybase ASE 11.0.3.3
  •  

    关于本站 | 广告联系 | 版权声明 | 使用帮助

    Copyright © 2004-2008 www.egunao.com All rights reserved.