GRUPOS DE DISCUSSÃO PROFISSIONAL
WINDEV
,
WEBDEV
e
WINDEV Mobile
Inicio
|
Mensagens recentes
|
Conecte-se...
|
Disconnect
|
Português
Inicio
→
WINDEV 2024
→
[WD8] Robust Database Connection
[WD8] Robust Database Connection
Iniciado por Raimund Schuldhaus, mar., 30 2004 6:15 PM - Sem resposta
Conecte-se…
Raimund Schuldhaus
#1
Publicado em março, 30 2004 - 6:15 PM
Hi all,
I did make a test app to test the robustness of the database connection in WinDev 8. I did use the code below. A timer run the procedure below every 5 seconds. The analyze behind this app has a OLEDB connection to MS SQL Server. With a second app I stopped the SQL Server every 15 minutes for 5 minutes and start it then again. The test app did run two days WITHOUT any problem.
PROCEDURE MyTimer()
bOK is boolean
bConnected is boolean = True
nAttempt++
WHEN EXCEPTION IN
bOK = HReadFirst(MsgIn, InID)
IF bOK
Static2..Value = MsgIn.Msg
ELSE
Static2..Value = ""
END
Static1..Value = "Connection #" + nAttempt
Static1..Color = iLightBlue
IF bOK THEN
HDelete(MsgIn)
END
DO
bConnected = False
END
IF NOT bConnected THEN
Static1..Value = "No Connection #" + nAttempt
Static1..Color = iLightRed
Static2..Value = ""
objMain:CloseConn()
bOK = objMain:OpenConn()
END
Denunciar
0
0
→ Voltar para WINDEV 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (versões anteriores)
Français
English
Español
Portuguesa
Fermer cette fenêtre
Tipo de Pesquisa
Apenas tópicos
Todas as mensagens
Período de pesquisa
Qualquer momento
Última hora
Últimas 24 horas
Semana passada
Mês passado
Ano passado
Cancelar
Pré-visualização da sua mensagem
Adicionar imagem
Importar uma imagem de uma URL
Enviar uma imagem a partir do seu disco
Deixe um ficheiro ou clique em "Procurar ..."
ou
Cancelar
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Texto