Quantcast
Channel: SQLServerCentral » Programming » Powershell » Latest topics
Viewing all articles
Browse latest Browse all 467

Vbscript SQL and fOREFRONT TMG Help !!

$
0
0
Hello, I’m having problems when debugging the database as it grows and grows TMG and the idea is to use a script to delete old records. I’m ussing remote SQL logging. I make this two script but seems not to work I have an ODBC connection. Could you please help me?——————————————————————————————-Const adOpenStatic = 3Const adLockOptimistic = 3Const adUseClient = 3Set objConnection = CreateObject(“ADODB.Connection”)objConnection.ConnectionTimeout=1200objConnection.Open “DSN=BaseTMGF;UID=xxx;PWD=xxxxxxxxx”objConnection.EXECUTE “delete FROM dptmgf.dbo.FirewallLog WHERE logtime <= getdate()-60 "objConnection.Close——————————————————————————————-Const adOpenStatic = 3Const adLockOptimistic = 3Const adUseClient = 3Set objConnection = CreateObject("ADODB.Connection")Set objRecordset = CreateObject("ADODB.Recordset")objConnection.ConnectionTimeout=1200objConnection.Open "DSN=BaseTMGW;UID=xxx;PWD=xxxxxxxx"objConnection.EXECUTE "delete FROM dptmgw.dbo.WebProxyLog WHERE logtime <= getdate()-60 "objConnection.Close

Viewing all articles
Browse latest Browse all 467

Latest Images

Trending Articles



Latest Images