The transaction log for database ‘mydatabase’ is full

31 de agosto de 2011 Deixe seu comentario »

Estava com esse problema qunado rodava umam query no sql server 2008, tentei fazer um monte de coisa, como desanexar o banco e apagar o log, limpar o transaction log e dar um shrink nele, mas mesmo assim não funcionou.

The transaction log for database ‘mydatabase’ is full. To find out why space in the log cannot be reused, see the log_reuse_wait_desc column in sys.databases

O que realmente funcinou foi o seguinte, aumentei o tamanho do log do banco para 100MB, executei a query que fazia o erro acontecer, que dessa vez funcionou, após dei o shrink no log do banco para não ficar gigantesco, e então reduzi o tamanho do espaço para log do banco.

The entry ‘connectionString’ has already been added.

16 de agosto de 2011 Deixe seu comentario »

Tu tem uma aplicação em asp.net que tenta fazer conexão com o banco de dados, mas quando acessa ela ocorre o erro

The entry ‘connectionString’ has already been added.

Faz o seguinte, no teu web.config, antes do elemento <add/> da configuração da conexão, insere um <clear/>, ficando algo como

<clear/>
<add name=”connectionString”…

Após recicla a pool de aplicativo que teu site utiliza e faz um novo teste.

Configurar cronjob por linha de comando no Windows

1 de agosto de 2011 Deixe seu comentario »

Comando para configurar crontabs por linha de comando no windows

C:\>schtasks /?

Pronúncia em inglês

31 de julho de 2011 Deixe seu comentario »

Baahhh, achei um site bem legal, tu informa uma palavra ou frase em inglês, então tu escolhe um falador pra te falar a frase, só que tu tem como escolher faladores de lugares diferentes, como UK, USA e Austrália, então tu fica sabendo como se fala uma palavra em diferentes lugares, de acordo com o sotaque da região que tu escolher.

http://www.oddcast.com/home/demos/tts/tts_example.php

Unable to make the session state request to the session state server

27 de julho de 2011 Deixe seu comentario »

Esse erro estava ocorrendo quando tinha recém instalado o asp.net em um windows 2003.

Unable to make the session state request to the session state server.
Please ensure that the ASP.NET State service is started and that the client and server ports are the same.
If the server is on a remote machine, please ensure that it accepts remote requests by checking the value of HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\aspnet_state\Parameters\AllowRemoteConnection.
If the server is on the local machine, and if the before mentioned registry value does not exist or is set to 0, then the state server connection string must use either ‘localhost’ or ’127.0.0.1′ as the server name.

A solução que achei foi a seguinte: ativar o “ASP.NET State Service”, nos serviços do servidor, em ferramentas administrativas, no painel de controle. Configura ele para iniciar automaticamente, e inicia o serviço, reinicia o IIS e faz um novo teste, depois disso deve funcionar.

Olá mundo em asp.net

22 de julho de 2011 Deixe seu comentario »
1
2
3
4
<%@ Page Language="VB" %>
<html>
<%= "Hello World!" %>
</html>

Conjugador de verbos em inglês

5 de julho de 2011 Deixe seu comentario »

http://www.verbix.com/languages/english.shtml

powered by #ficaadica

Como mudar o nome do computador via script?

23 de junho de 2011 1 Comentario »

Então, esse script funciona pra windows XP e windows 2003, crie um arquivo de texto com a extensão .vbs que tenha o seguinte conteúdo

strNewName = “NOVO_NOME_AQUI

strComputer = “.”
Set objWMIService = GetObject(“winmgmts:” & “{impersonationLevel=impersonate}!\\” & strComputer & “\root\cimv2″)
Set colComputers = objWMIService.ExecQuery (“Select * from Win32_ComputerSystem”)
For Each objComputer in colComputers
ObjComputer.Rename(strNewName)
Next

Em NOVO_NOME_AQUI, altere para o nome que você deseja que teu computador tenha, e é isso

Ooops! I can’t find the page you’re looking for

9 de junho de 2011 Deixe seu comentario »

Esse erro deu na instalação do BlogEngine, no momento de postar um post, ocorre o erro

“Ooops! I can’t find the page you’re looking for

This one’s down to me! Please accept my apologies for this – I’ll see to it that the developer responsible for this broken link is given 20 lashes (but only after he or she has fixed this problem).

You can also try to search for the page you were looking for:”

Pra arrumar isso, no web.config da aplicação, procura a linha onde tem a tag “httpRuntime”, dentro dela, adicionar o seguinte

requestValidationMode=”2.0″

Vai ficar como isso

<httpRuntime enableVersionHeader=”false” useFullyQualifiedRedirectUrl=”true” maxRequestLength=”16384″ executionTimeout=”3600″ requestLengthDiskThreshold=”16384″ requestValidationMode=”2.0″/>

Salva o web.config e faz um novo teste.

Upload múltiplo em asp sem componente

18 de maio de 2011 Deixe seu comentario »

E funciona :D

Download

Retirado daqui