You are here: Re: SQL 2005, "build" scripts? « MsSQL Server « IT news, forums, messages
Re: SQL 2005, "build" scripts?

Posted by Andrea Montanari on 12/20/06 11:11

hi Eric,
Eric J. Holtman wrote:
> Am I missing something obvious in the 2005 Visual Studio
> portion of SQL Server?
>
> I have a database design, with a bunch of tables, views,
> stored procedures, etc, etc. I want to store each object
> in a separate file, so I can keep them in Source Safe.
>
> Is there a command that will "rebuild" the database,
> issuing the CREATE TABLE, VIEW and PROCEDURE statements
> in the "right" order, such that foreign keys, and procedures
> that call procedures get built in the right order?
>
> I know that for tables/views, I could put every in a
> CREATE SCHEMA, but then everything's in one file.
>
> I've done this the hard way before (isql to get sysdepend
> information, pipe through tsort, build the tables that way),
> but was hoping for a more integrated solution.
>

try having a look at my free amScript at
http://www.asql.biz/en/Download2005.aspx
regards
--
Andrea Montanari (Microsoft MVP - SQL Server)
http://www.asql.biz http://italy.mvps.org
DbaMgr2k ver 0.20.0 - DbaMgr ver 0.64.0 and further SQL Tools
--------- remove DMO to reply

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация