Drop Table

Support Forum for database administrators and web based access to important newsgroups related to databases
Register on Database Support Forum Edit your profileCalendarFind other Database Support forum membersFrequently Asked QuestionsSearch this forum -> 
For Database admins: Free Database-related Magazines Now Free shipping to Texas


Post New Thread










Thread
Author

Scripting automation....
Is there any stored procedure for scripting the database?
SQL 2K.
Thanks,
John







Report this thread to moderator Post Follow-up to this message
Old Post
Smith John
10-29-05 06:23 PM


Re: Scripting automation....
http://www.karaszi.com/SQLServer/ i...ript
.asp

--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www. solidqualitylearning
.com/
Blog: http:// solidqualitylearning
.com/blogs/tibor/


"Smith John" <Smith_Jr@hotmail.com> wrote in message news:OZXYRiK3FHA.548@TK2MSFTNGP10.phx.
gbl...
> Is there any stored procedure for scripting the database?
> SQL 2K.
> Thanks,
> John
>
>
>
>
>
>

Report this thread to moderator Post Follow-up to this message
Old Post
Tibor Karaszi
10-29-05 06:23 PM


Re: Scripting automation....
There is no sp; you can use DMO (Distributed Management Objects) in some
scripting language. You can execite ActiveX script task in a scheduled job.
Here is an example of using DMO in vbscript :

Dim oSS As SQLDMO.SQLServer
Dim oDb As SQLDMO.Database
Dim oT As SQLDMO.Transfer
Dim sS As String

Sub Script()
Set oSS = New SQLDMO.SQLServer
Set oT = New SQLDMO.Transfer
oSS.LoginSecure = True
oSS.Connect
Set oDb = oSS.Databases("pubs")
oT.CopyAllTables = True
oDb.ScriptTransfer oT,  SQLDMOXfrFile_Single
File, "C:\pubs.sql"
End Sub

--
Dejan Sarka, SQL Server MVP
Mentor
www. SolidQualityLearning
.com

"Smith John" <Smith_Jr@hotmail.com> wrote in message
news:OZXYRiK3FHA.548@TK2MSFTNGP10.phx.gbl...
> Is there any stored procedure for scripting the database?
> SQL 2K.
> Thanks,
> John
>
>
>
>
>
>



Report this thread to moderator Post Follow-up to this message
Old Post
Dejan Sarka
10-29-05 06:23 PM


Re: Scripting automation....
I was searching for this article of yours a minute ago, but somehow I
couldn't find it...

--
Dejan Sarka

"Tibor Karaszi" <tibor_please.no. email_karaszi@hotmai
l.nomail.com> wrote in
message news:uhNyQuK3FHA.472@TK2MSFTNGP15.phx.gbl...
> http://www.karaszi.com/SQLServer/ i...ript
.asp
>
> --
> Tibor Karaszi, SQL Server MVP
> http://www.karaszi.com/sqlserver/default.asp
> http://www. solidqualitylearning
.com/
> Blog: http:// solidqualitylearning
.com/blogs/tibor/
>
>
> "Smith John" <Smith_Jr@hotmail.com> wrote in message
> news:OZXYRiK3FHA.548@TK2MSFTNGP10.phx.gbl... 


Report this thread to moderator Post Follow-up to this message
Old Post
Dejan Sarka
10-29-05 06:23 PM


Sponsored Links





Last Thread Next Thread
Post New Thread

MS SQL Server archive

Show a Printable Version Email This Page to Someone! Receive updates to this thread
Microsoft SQL Server
Access database support
PostgreSQL Replication
SQL Server ODBC
FoxPro Support
PostgreSQL pgAdmin
SQL Server Clustering
MySQL ODBC
Web Applications with dBASE
SQL Server CE
MySQL++
Sybase Database Support
MS SQL Full Text Search
PostgreSQL Administration
SQL Anywhere support
DB2 UDB Database
Paradox Database Support
Filemaker Database
Berkley DB
SQL 2000/2000i database
ASE Database
Forum Jump:
All times are GMT. The time now is 03:58 PM.

 
Mobile devices forum | Database support forum archive




Copyrights DropTable.com Database Support Forum 2004 - 2006