哪位高人能告诉我如何查看数据库的日志(不用第三方软件),还有日志可不可以定制?

谜斯特段 2003-09-15 12:47:36
同上
...全文
20 11 打赏 收藏 转发到动态 举报
写回复
用AI写文章
11 条回复
切换为时间正序
请发表友善的回复…
发表回复
谜斯特段 2003-09-17
  • 打赏
  • 举报
回复
缘来如此,见笑了,帮助里怎么没有dbcc log的说明呢?
leimin 2003-09-16
  • 打赏
  • 举报
回复
you can:
DBCC LOG(PUBS,1 )
DBCC LOG(PUBS,0 )
DBCC LOG(PUBS,2 )
DBCC LOG(PUBS,3 )
谜斯特段 2003-09-16
  • 打赏
  • 举报
回复
dbcc 命令我用帮助查了半天,也没发现可以查看日志的方法,dbcc log('pubs',0|1|2|3|4)是做什么用的?我运行时提示“第 1 行: '|' 附近有语法错误。”
enhydraboy 2003-09-16
  • 打赏
  • 举报
回复
DBCC log

This command is used to view the transactional log for the specified
database.

Syntax:

DBCC log ( {dbid|dbname}, [, type={-1|0|1|2|3|4}] )


PARAMETERS:
Dbid or dbname - Enter either the dbid or the name of the database
in question.

type - is the type of output:

0 - minimum information (operation, context, transaction id)

1 - more information (plus flags, tags, row length, description)

2 - very detailed information (plus object name, index name,
page id, slot id)

3 - full information about each operation

4 - full information about each operation plus hexadecimal dump
of the current transaction log's row.

-1 - full information about each operation plus hexadecimal dump
of the current transaction log's row, plus Checkpoint Begin,
DB Version, Max XDESID

by default type = 0

To view the transaction log for the master database, you can run the
following command:

DBCC log (master)

谜斯特段 2003-09-16
  • 打赏
  • 举报
回复
我说的定制是指,比如让日志只记录删除或更新.
伍子V5 2003-09-15
  • 打赏
  • 举报
回复
SQL SERVER里不是有一个日志么,可惜看不出什么来
我只知道有个Log Explorer挺不错的,呵呵
日志定制指什么,针对某些表么还是针对某些事件
应该是可以的
wstorm 2003-09-15
  • 打赏
  • 举报
回复
用dbcc 命令 帮助中有
leimin 2003-09-15
  • 打赏
  • 举报
回复
还有日志可不可以定制?
可以限定大小。
leimin 2003-09-15
  • 打赏
  • 举报
回复
dbcc log('pubs',0|1|2|3|4)
谜斯特段 2003-09-15
  • 打赏
  • 举报
回复
有没有人可以help me?
谜斯特段 2003-09-15
  • 打赏
  • 举报
回复
只针对事件就行,如果可以怎么做啊?

27,579

社区成员

发帖
与我相关
我的任务
社区描述
MS-SQL Server 应用实例
社区管理员
  • 应用实例社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧