2006年7月4日

sql server 备份

摘要: --完全备份backup database news to disk='c:\news bak' with name='news backup all',description='Full Backup Of news'--差异备份backup database aspxpoliceroom to disk='c:\aspxpoliceroom.bak' with differential ,no... 阅读全文

posted @ 2006-07-04 18:22 Sanle 阅读(312) 评论(0) 推荐(0) 编辑

SYBASE灾难备份方案

摘要: SYBASE灾难备份方案 本方案主要从计算机系统的可用性出发,给出了高可用性问题的一般描述及群机方式的特色,进而提出了灾难备份的特殊考虑及SYBASE的灾难备份方案。 一、系统高可用性(High Availability)... 2 1、高可用性方案... 2 2、高可用性方案存在的问题... 3 二、SYBASE建议的灾难备份方案... 5 1、SYBASE建议的灾难备份... 阅读全文

posted @ 2006-07-04 18:21 Sanle 阅读(661) 评论(0) 推荐(0) 编辑

sybase 配置参数

摘要: sp_configure 'max online engines',4go--配置启动cpu个数sp_configure 'number of engines at startup',4 go--配置最大内存数sp_configure 'max memory' ,2097151go--分配最大存储过程缓存sp_configure 'procedure cache',102400go--配置高速缓存... 阅读全文

posted @ 2006-07-04 18:20 Sanle 阅读(486) 评论(0) 推荐(0) 编辑

关于tempdb的优化

摘要: 关于tempdb的优化 关于tempdb的优化 缺省情况下,tempdb数据库是放置在master设备上,容量为2M,而临时数据库是活动最为平凡的数据库常常被用来排序、创建临时表、重格式化等操作,所以tempdb的优化应该受到特别的关注。 第一步:将临时数据库与高速缓冲进行绑定。 由于临时表的创建、使用,临时数据库会频繁地使... 阅读全文

posted @ 2006-07-04 18:20 Sanle 阅读(280) 评论(0) 推荐(0) 编辑

sybase q a

摘要: 如何解决数据库被标记为"suspect"的问题之一( 一般解决方案)? A.现象:Error 926 Severity Level 14 Error Message Text Database 'xx' cannot be opened - it has been marked SUSPECT by recover Explanation (1) 当你使用Transact_SQL命令操作... 阅读全文

posted @ 2006-07-04 18:18 Sanle 阅读(777) 评论(0) 推荐(0) 编辑

sybase sa

摘要: YBASE数据库管理系统中数据库损坏后,重新建立数据库的时间比较长,这将给应用(特别是对时间要求特别严格的应用,如金融、证券等)造成很大的损失。而如果在应用中遗忘超级用户sa口令,更会给系统管理带来极大的不便,甚至很多操作都无法进行。本文介绍一种简便的修复SYBASE数据库及恢复sa口令的方法。以下假定server能正常启动,server名为SYBASE,数据库名为demodb。 一、修复SYBA... 阅读全文

posted @ 2006-07-04 18:17 Sanle 阅读(236) 评论(0) 推荐(0) 编辑

sybase 自动备份

摘要: Imports System.IOModule Module1 Sub Main() Dim str_Path As String Dim str_FileName As String Dim str_Name As String Dim i As Integer, weeknum As Integer Dim f_f... 阅读全文

posted @ 2006-07-04 18:16 Sanle 阅读(399) 评论(0) 推荐(0) 编辑

森林渔业

摘要: create table tt(ch varchar(20)) insert tt select '1001001' union all select '1001' union all select '2001001' union all select '2001' union all select '300120013001' union al... 阅读全文

posted @ 2006-07-04 18:15 Sanle 阅读(200) 评论(0) 推荐(0) 编辑

得到EXCEL批注.txt

摘要: Dim I As Integer If CurSheet.Comments.Count "" Then CurSheet.Comments.Item(I).Parent.Select() CurRange = CurExcel.ActiveCell CheckComment(TempCo... 阅读全文

posted @ 2006-07-04 18:15 Sanle 阅读(295) 评论(0) 推荐(0) 编辑

超强bat

摘要: @echo offclsrem Copyright (C) 2003-05 Ansgar Wiechers & Torsten Mannrem Contact: admin@ntsvcfg.deremrem This program is free software; you can redistribute it and/or modify it underrem the terms of th... 阅读全文

posted @ 2006-07-04 18:13 Sanle 阅读(262) 评论(1) 推荐(0) 编辑

sybase configure 配置信息

摘要: EXEC sp_configure 'abstract plan cache',0goEXEC sp_configure 'abstract plan dump',0goEXEC sp_configure 'abstract plan load',0goEXEC sp_configure 'abstract plan replace',0goEXEC sp_configure 'additiona... 阅读全文

posted @ 2006-07-04 18:12 Sanle 阅读(2016) 评论(0) 推荐(0) 编辑

sybase isql

摘要: isql -Usa -P123456 -Stest -Jcp936 -ic:\script\bsjdw_database.txt >>c:\script\bsjdw_log.logisql -Usa -P123456 -Stest -Jcp936 -ic:\script\bsjdw_table.txt >>c:\script\bsjdw_log.logisql -Usa -P123456 -Ste... 阅读全文

posted @ 2006-07-04 18:11 Sanle 阅读(392) 评论(0) 推荐(0) 编辑

sybase create database

摘要: USE mastergoCREATE DATABASE bsjdw ON bsjdw=20000 LOG ON bsjdwlog=5000goUSE mastergo--EXEC sp_dboption 'bsjdw','abort tran on log full',true--go--EXEC sp_dboption 'bsjdw','allow nulls by default'... 阅读全文

posted @ 2006-07-04 18:10 Sanle 阅读(1200) 评论(0) 推荐(0) 编辑

批处理

摘要: 程序代码 if exist 3.bat (goto :check) else goto :no3 :checkif exist share.bat (goto :run) else goto :noshare :no3rem 写文件到3.batecho title 测试>3.batecho echo off>>3.batecho cls>>3.batecho echo.>>3.batecho e... 阅读全文

posted @ 2006-07-04 18:09 Sanle 阅读(414) 评论(0) 推荐(0) 编辑

简单批处理内部命令简介

摘要: 批处理文件是无格式的文本文件,它包含一条或多条命令。它的文件扩展名为 .bat 或 .cmd。在命令提示下键入批处理文件的名称,或者双击该批处理文件,系统就会调用Cmd.exe按照该文件中各个命令出现的顺序来逐个运行它们。使用批处理文件(也被称为批处理程序或脚本),可以简化日常或重复性任务。当然我们的这个版本的主要内容是介绍批处理在入侵中一些实际运用,例如我们后面要提到的用批处理文件来给系统打补丁... 阅读全文

posted @ 2006-07-04 18:08 Sanle 阅读(1929) 评论(0) 推荐(0) 编辑

导航