"Jacco Schalkwijk" <NOSPAMjaccos@eurostop.co.uk> wrote in message
news:ubTWrB4pDHA.1324@TK2MSFTNGP09.phx.gbl...
> In the Books Online index:
> objects-SQL-DMO, Database
> methods-SQL-DMO, Transfer
> objects-SQL-DMO, Transfer
> objects-SQL-DMO, Transfer2
>
> I couldn't find any examples in C++, but here is one in VB:
>
http://sqldev.net/download/sqldmo/80/vb6/TransferEvent.cls.txt >
> --
> Jacco Schalkwijk
> SQL Server MVP
>
>
> "Lars Grøtteland" <lars@nospam> wrote in message
> news:uRAwq23pDHA.688@TK2MSFTNGP10.phx.gbl...
> > What's the syntax - or where can I find it in SQL-DMO bol
> >
> >
> > --
> >
> >
> > - Lars
> >
> >
> > "Jacco Schalkwijk" <NOSPAMjaccos@eurostop.co.uk> wrote in message
> > news:uvJ$E22pDHA.1656@tk2msftngp13.phx.gbl...
> > > If you want to do it from inside you application, use SQL-DMO. You can
> > copy
> > > the complete database without using a script with the
Database.Transfer
> > > method, or you can generate a script with the Database.Script method.
> Both
> > > method have a rather long list of parameters, which is a bit too much
to
> > > mention here, but whihc you can find in Books Online. The parameters
> > > basically allow you all the options you have when copying a database
or
> > > generating a script from Enterprise Manager.
> > >
> > > --
> > > Jacco Schalkwijk
> > > SQL Server MVP
> > >
> > >
> > > "Lars Grøtteland" <lars@nospam> wrote in message
> > > news:%23fvQzD2pDHA.648@TK2MSFTNGP11.phx.gbl...
> > > > Yes I know I can do this in QA, but how to do it in my application?
> > > >
> > > > Was thinking of making a SP, inside the model database. I think I've
> > read
> > > of
> > > > this database once - that if I create one SP inside this, this
should
> > be
> > > > copied to the new database that's been created. Is this a solution?
> > > >
> > > > --
> > > >
> > > >
> > > > - Lars
> > > >
> > > >
> > > > "oj" <nospam_ojngo@home.com> wrote in message
> > > > news:uysZi11pDHA.1728@TK2MSFTNGP09.phx.gbl...
> > > > > Yes. Create a script and deploy it.
> > > > >
> > > > > --
> > > > > -oj
> > > > > RAC v2.2 & QALite!
> > > > >
http://www.rac4sql.net > > > > >
> > > > >
> > > > >
> > > > > "Lars Grøtteland" <lars@nospam> wrote in message
> > > > > news:%23BMkny1pDHA.2064@TK2MSFTNGP11.phx.gbl...
> > > > > > Hello!
> > > > > >
> > > > > > Was wondering how I can create a copy of one database? FYI I'm
not
> > > > > > interrested in the data, just the fields and triggers, and so
on.
> > > > > >
> > > > > > Which way is the easiest? Do I create a script and run it from
> > there?
> > > Is
> > > > > it
> > > > > > smart to have it inside a SP?
> > > > > >
> > > > > > Any idea would be greatly appreciated.
> > > > > >
> > > > > > I'm programming SQL 2k and VC7.0
> > > > > >
> > > > > > --
> > > > > >
> > > > > >
> > > > > > - Lars
> > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>