Marcelo Sincic

MCT-MCITP-MCPD-MCDBA-MCTS-MCAD-MCSA-MCP
SUN Java Instructor
CLP Notes 6.5 / 7.0

Visitas 2010: 114907
Visitas 2009: 18719

Recent posts

Categories

Tags

Navigation

Pages

Archive

Blogroll

Habilitando e desabilitando LOG automatico do SQL (.trc)

Para os que não sabiam, o SQL Server 2005 e 2008 geram arquivos de log do Profiler automaticamente na pasta LOG dentro da pasta de instalação do SQL Engine.

Nesta pasta poderá encontrar diversos arquivos com a extensão .trc que são criados com a finalidade de dar ao administrador uma visão de como está o banco de dados e as ocorrencias principais.

Porem ele gera um certo overhead e podemos desabilitá-lo ou habilitá-lo conforme a necessidade. Como fazer isso?

Os comandos abaixo irão habilitar a visualização das opções avançadas e mostrar a lista.

sp_configure 'show advanced options', 1
go
reconfigure
sp_configure

Na lista resultando procure o valor do item default trace enabled que 0 é desabilitado e 1 é habilitado. Se quiser alterá-lo use o comando abaixo:

sp_configure 'default trace enabled', 0
go
reconfigure

Pronto, agora você pode tanto habiitar quanto desabilitar este trace automatico. Eu pessoalmente deixo habilitado em servidores de produção, já que me permite saber casos de problemas inesperados, porem em servidores de teste vale a pena desabilitar este recurso.

 

 

Posted: May 22 2009, 11:03 by msincic | Comments (11) RSS comment feed |
Filed under: SQL Server

Comments

payday loans United States said:

Hello webmaster I like your post �.

# August 09 2009, 20:35

payday loans United States said:

amazing stuff thanx Smile

# August 09 2009, 20:35

Elvis Brazil said:

Valeu!!!

# August 11 2009, 16:55

cash loans United States said:

Very, very cool site site! I am loving it!! Will come back again - taking you feeds also, Thanks.

# August 11 2009, 20:44

cash loans United States said:

I'm searching for sites related to web hosting and specifically comparison hosting linux plan web, your site came up.

# August 11 2009, 20:44

payday loans United States said:

Of course, what a great site and informative posts, I will add backlink - bookmark this site? Regards, Reader.

# August 24 2009, 10:44

immediate cash advance United States said:

Interesting article. Were did you got all the information from? Anyway thank you for this great post!

# March 27 2010, 12:30

cash advance 1000 United States said:

In searching for sites related to web hosting and specifically comparison hosting linux plan web, your site came up.You are a very smart person!

# March 27 2010, 14:34

bad credit cash advance United States said:

Of course, what a great site and informative posts, I will add backlink - bookmark this site? Regards, Reader.

# March 27 2010, 14:35

fast cash advance loan United States said:

This is my first time i visit here. I found so many interesting stuff in your blog especially its discussion. From the tons of comments on your articles, I guess I am not the only one having all the enjoyment here! keep up the good work.

# March 28 2010, 19:03

Youth Bedroom Furniture United States said:

Of course, what a great site and informative posts with furniture, I will bookmark this site.

# May 02 2010, 23:25

Add comment




  Country flag

biuquote
  • Comment
  • Preview
Loading