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

generating database schema thru command line
In informix there is a tool called dbschema which can generate a sql file
to create a database fully. I am aware that in the Enterprise Manager one
can do it easily. However i need the same functionality via command line
so that we can plug the command in the build tool.

TIA

Report this thread to moderator Post Follow-up to this message
Old Post
rkusenet
04-27-05 04:23 PM


RE: generating database schema thru command line
EM does it using sql-dmo, take a look a this api.

http://msdn.microsoft.com/library/d...r />
_11rm.asp


AMB

"rkusenet" wrote:

> In informix there is a tool called dbschema which can generate a sql file
> to create a database fully. I am aware that in the Enterprise Manager one
> can do it easily. However i need the same functionality via command line
> so that we can plug the command in the build tool.
>
> TIA
>

Report this thread to moderator Post Follow-up to this message
Old Post
Alejandro Mesa
04-27-05 04:23 PM


RE: generating database schema thru command line
You can also invoke the functionality of the EM wizards using SQL-NS API.
Look for SQL-NS constant  SQLNS_CmdID_GENERATE
_SCRIPTS and SQL-NS method
ExecuteCommandByID.

http://msdn.microsoft.com/library/d...8z5
.asp


AMB


"Alejandro Mesa" wrote:

> EM does it using sql-dmo, take a look a this api.
>
> http://msdn.microsoft.com/library/d.../>
_g_11rm.asp
>
>
> AMB
>
> "rkusenet" wrote:
> 

Report this thread to moderator Post Follow-up to this message
Old Post
Alejandro Mesa
04-27-05 04:23 PM


Re: generating database schema thru command line
I've listed some options here:
http://www.karaszi.com/SQLServer/ i...ript
.asp

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


"rkusenet" <usenet.rk@gmail.com> wrote in message  news:3d9nmvF6rhk35U1
@individual.net...[co
lor=darkred]
> In informix there is a tool called dbschema which can generate a sql file 
to create a database
> fully. I am aware that in the Enterprise Manager one can do it easily. How
ever i need the same
> functionality via command line
> so that we can plug the command in the build tool.
>
> TIA[/color]



Report this thread to moderator Post Follow-up to this message
Old Post
Tibor Karaszi
04-27-05 04:23 PM


RE: generating database schema thru command line
Tibor,

Does SCPTXFR.EXE come with SQL Server 2000 also?


AMB

"rkusenet" wrote:

> In informix there is a tool called dbschema which can generate a sql file
> to create a database fully. I am aware that in the Enterprise Manager one
> can do it easily. However i need the same functionality via command line
> so that we can plug the command in the build tool.
>
> TIA
>

Report this thread to moderator Post Follow-up to this message
Old Post
Alejandro Mesa
04-28-05 01:23 AM


RE: generating database schema thru command line
you talked about doing a build, I'm wondering if this is part of your daily
or at least scheduled build process?

You may want to save yourself all the time and effort of re-inventing the
wheel...

http://www.dbghost.com

Build, compare, deploy.

"rkusenet" wrote:

> In informix there is a tool called dbschema which can generate a sql file
> to create a database fully. I am aware that in the Enterprise Manager one
> can do it easily. However i need the same functionality via command line
> so that we can plug the command in the build tool.
>
> TIA
>

Report this thread to moderator Post Follow-up to this message
Old Post
mark baekdal
04-28-05 12:23 PM


Re: generating database schema thru command line
> Does SCPTXFR.EXE come with SQL Server 2000 also?

Seems so. In the upgrade directory :-).
C:\Program Files\Microsoft SQL  Server\MSSQL\Upgrade

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


"Alejandro Mesa" < AlejandroMesa@discus
sions.microsoft.com> wrote in message
news:649EF740-EF67-4618-A363- B765823989DC@microso
ft.com...
> Tibor,
>
> Does SCPTXFR.EXE come with SQL Server 2000 also?
>
>
> AMB
>
> "rkusenet" wrote:
> 



Report this thread to moderator Post Follow-up to this message
Old Post
Tibor Karaszi
04-28-05 12:23 PM


Re: generating database schema thru command line
Thanks!!!

"Tibor Karaszi" wrote:
 
>
> Seems so. In the upgrade directory :-).
> C:\Program Files\Microsoft SQL  Server\MSSQL\Upgrade

> --
> Tibor Karaszi, SQL Server MVP
> http://www.karaszi.com/sqlserver/default.asp
> http://www. solidqualitylearning
.com/
>
>
> "Alejandro Mesa" < AlejandroMesa@discus
sions.microsoft.com> wrote in messag
e
> news:649EF740-EF67-4618-A363- B765823989DC@microso
ft.com... 
>
>
>

Report this thread to moderator Post Follow-up to this message
Old Post
Alejandro Mesa
04-28-05 12: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 08:37 PM.

 
Mobile devices forum | Database support forum archive




Copyrights DropTable.com Database Support Forum 2004 - 2006