Microsoft Developer Network > 포럼 홈 > Microsoft SQL Server Modeling > Reinstall a fairly simple MX onto the repository fails
질문하기질문하기
 

답변됨Reinstall a fairly simple MX onto the repository fails

  • 2009년 6월 19일 금요일 오후 3:54lcorneliussen 사용자 메달사용자 메달사용자 메달사용자 메달사용자 메달
     
    I have a pretty simple Model. Compiling and installing it is no problem. But the reinstallation with "-force" fails. Any Ideas?

    C:\Workbench\wbs\trunk\Models\bin\Debug>mx install Wbs.mx -database:Repository -
    tf:"Applications\Wbs" -f
    Microsoft (R) Codename "M" Command-line Utility version 3.0.1803.10
    Copyright (c) Microsoft Corporation. All rights reserved.
    
    Installing Image: Wbs;Version=1.0;Locale=neutral...Succeeded
    
    C:\Workbench\wbs\trunk\Models\bin\Debug>mx install Wbs.mx -database:Repository -
    tf:"Applications\Wbs" -f
    Microsoft (R) Codename "M" Command-line Utility version 3.0.1803.10
    Copyright (c) Microsoft Corporation. All rights reserved.
    
    Failed
    
    Cannot insert the value NULL into column 'schema_id', table '@Schemas'; column d
    oes not allow nulls. INSERT fails.
    The statement has been terminated.
    • 편집됨lcorneliussen 2009년 6월 19일 금요일 오후 3:59better title
    •  

답변

모든 응답

  • 2009년 6월 19일 금요일 오후 5:18KompirMSFT사용자 메달사용자 메달사용자 메달사용자 메달사용자 메달
     
    Hi,

    Unfortunately you are hitting a bug in our internal implementation of force install. The fix should be available by PDC.

    Can you give me the scenario you're trying to accomplish, and the M you have? Perhaps I can find a workaround for you.

    /K
  • 2009년 6월 19일 금요일 오후 6:07KompirMSFT사용자 메달사용자 메달사용자 메달사용자 메달사용자 메달
     
    Sure. I'm Kompirrr at Skype. Let me go online.

    /K
  • 2009년 6월 19일 금요일 오후 6:24JasonRothMSFT사용자 메달사용자 메달사용자 메달사용자 메달사용자 메달
     

    Although this is not a real answer, you can get around this problem by dropping the schema for your model and all associated database objects. Of course, please make sure you don't have any data in the model that you want to keep first as this deletes everything in the schema and then drops the schema. There is a spDropSchemaObjects stored procedure that you can use: http://msdn.microsoft.com/en-us/library/dd129549(VS.85).aspx. If your M module was named "Wbs" then you could drop everything in the Repository related to this model by calling:

    spDropSchemaObjects @schemaName='Wbs'

    Hope this helps work around the problem while you figure out why "-force" is failing.

    Jason Roth

  • 2009년 6월 19일 금요일 오후 10:29KompirMSFT사용자 메달사용자 메달사용자 메달사용자 메달사용자 메달
     제안된 답변
    We synced up offline, and found another bug in force install that prevents this scenario from being realized.

    Lars, let us know if you need more help on this one.

    /K
    • 답변으로 제안됨KompirMSFT2009년 6월 19일 금요일 오후 10:29
    •  
  • 2009년 6월 29일 월요일 오전 8:55lcorneliussen 사용자 메달사용자 메달사용자 메달사용자 메달사용자 메달
     답변됨
    I filed a bug for this issue. The error happens when force-installing modules without any extents.

    https://connect.microsoft.com/oslo/feedback/ViewFeedback.aspx?FeedbackID=471075
    • 답변으로 표시됨lcorneliussen 2009년 6월 29일 월요일 오전 8:55
    •