Задайте вопросЗадайте вопрос
 

ОтвеченоWhy are two databases created when I build?

  • 30 июня 2009 г. 16:19NashVegas Медали пользователяМедали пользователяМедали пользователяМедали пользователяМедали пользователя
     

    I'm new to VS DB Edition.  I've toyed around with it for a couple days now, and I'm confused about something.  I may be going about the process all wrong, so please bear with me.

    I create a DB project, and I pull down a schema from an existing DB.  Next, I create a DB with the same name on my local instance, point my project at that DB, but when I build the project, it creates an additional DB - this one has a GUID attached to the end of it.

    Can someone tell my why I'm getting two DBS?  Seems like I should only need one...


    Clint

Ответы

  • 30 июня 2009 г. 17:01JoyceWang_MSFTMSFTМедали пользователяМедали пользователяМедали пользователяМедали пользователяМедали пользователя
     Отвечено
    Is it VS 2008 SP1 without GDR?

    If you don't have the GDR installed, it is normal to see the DB with GUID name. That is the design database we were using for design-time validation. We created the design DB when you create a database project. It is not supposed to be change by the users.

    You do not need to (manually) create the DB on your target server, in your case, your local instance. The first time you deploy the database project, DB Pro creates the database for you. All following deployments will target to the same database, and only deploy the "diffs" to the server, if you don't change the target database name. 

    Let us know if you have any further question on this. 

    Thanks,
    Joyce 
    • Предложено в качестве ответаJoyceWang_MSFTMSFT30 июня 2009 г. 17:43
    • Помечено в качестве ответаNashVegas 1 июля 2009 г. 14:34
    •  

Все ответы