Re: Wut does SQL do in this case?
- From: "Paul Ibison" <Paul.Ibison@xxxxxxxxxxxxx>
- Date: Tue, 15 Nov 2005 15:32:54 -0000
I use this to script out my system, change the servernames and job owners if
they haven't been set to 'sa' then it is ready to go. I don't usually script
out the jobs as I don't usually change the standard replication jobs (these
aren't the agent jobs).
I also use an activeX task in DTS to schedule scripting out the system each
evening, just in case (script below).
Cheers,
Paul Ibison SQL Server MVP, www.replicationanswers.com
(recommended sql server 2000 replication book:
http://www.nwsu.com/0974973602p.html)
'**********************************************************************
' Visual Basic ActiveX Script
'************************************************************************
Function Main()
Dim objDMO
Dim objReplication
Dim fso
Dim tf
Set objDMO = CreateObject("SQLDMO.SQLServer")
Set fso = CreateObject("Scripting.FileSystemObject")
objDMO.LoginSecure = True
objDMO.Connect "crazyfrog"
Set objReplication = objDMO.Replication
Set fso = CreateObject("Scripting.FileSystemObject")
Set tf = fso.CreateTextFile("c:\testfile.txt", True)
tf.Write objReplication.Script(1048576)
tf.Close
Main = DTSTaskExecResult_Success
End Function
.
- References:
- Re: Wut does SQL do in this case?
- From: Paul Ibison
- Re: Wut does SQL do in this case?
- From: Paul Ibison
- Re: Wut does SQL do in this case?
- From: Paul Ibison
- Re: Wut does SQL do in this case?
- From: Paul Ibison
- Re: Wut does SQL do in this case?
- Prev by Date: Re: Error while Replication
- Next by Date: Re: Wut does SQL do in this case?
- Previous by thread: Re: Wut does SQL do in this case?
- Next by thread: Re: Wut does SQL do in this case?
- Index(es):
Relevant Pages
|