Sql 数据库备份
数据库备份 作业中的Sql语句:
DECLARE @strPath NVARCHAR(200)
set @strPath = convert(NVARCHAR(19),getdate(),120)
set @strPath = REPLACE(@strPath, ':' , '_')
set @strPath = REPLACE(@strPath, '-' , '_')
set @strPath = REPLACE(@strPath, ' ' , '_')
set @strPath = 'F:\数据库备份\' + myData_'+@strPath + '.bak'
BACKUP DATABASE [myData] TO DISK = @strPath WITH NOINIT , NOUNLOAD , NOSKIP , STATS = 10, NOFORMAT
作业删除
select * from msdb.dbo.sysmaintplan_subplans
select * from msdb.dbo.sysmaintplan_log
delete from msdb.dbo.sysmaintplan_subplans
delete from msdb.dbo.sysmaintplan_log
相关文档:
ORACLE中字段的数据类型
字符型 char 范围 最大2000个字节 定长
char(10) '张三' 后添空格6个把10个字节补满 '张三 &nb ......
首先创建测试表、添加数据。
create table #t(a int,b int,c int,d int,e int)
insert into #t values(1,2,3,4,5)
insert into #t values(1,2,3,4,6)
insert into #t values(1,2,3,4,7)
insert into #t values(1,2,3 ......
问题的提出:
现有表A,内容如下:
编码 仓库 数量
01 A 6
01 B 7
02 A & ......
1、在安装有SQL SERVER 2000的电脑上打开“事件探查器”,操作如图:
2、在“事件探查器”中新建一个跟踪:文件/新建/跟踪
3、输入连接服务器的秘密,注意是U8的数据服务器,可以根据实际修改IP地址。
4、更改过滤设置:可以在【文件/属性】打开这个对话框,但是要更改,首 ......
sql server数据类型char和nchar,varchar和nvarchar,text和ntext允许的字符长度
字符串
char
固定长度的非 Unicode 字符数据,最大长度为 8,000 个字符。
varchar
可变长度的非 Unicode 数据,最长为 8,000 个字符。
text
可变长度的非 Unicode 数据,最大长度为 2^31 - 1 (2,147,483,647) 个字符。
Unicode 字符串
......