2

サーバー エクスプローラーで次のクエリを使用してテーブルを作成しました。

CREATE TABLE monitoring
(
[Id] INT NOT NULL PRIMARY KEY IDENTITY, 
[brandname_id] INT NULL, 
[module_id] INT NULL, 
[frequency_id] INT NULL, 
[succ_count] INT NULL, 
[failCalib_count] INT NULL, 
[failWriteFlash_count] INT NULL, 
[failEraseDevice_count] INT NULL, 
[failWriteAVR_count] INT NULL, 
[programmingLocation] INT NULL, 
[dateonly] DATE NULL
)

次に、データベース、このテーブルを削除し、同じデータベース名とテーブルクエリで両方を再作成しようとしました。テーブル デザイナーで [更新] ボタンをクリックすると、次のメッセージが表示されます。

Update cannot proceed due to validation errors.  
Please correct the following errors and try again.

SQL71508 :: The model already has an element that has the same name dbo.monitoring.
SQL71508 :: The model already has an element that has the same name dbo.monitoring.Id.
SQL71508 :: The model already has an element that has the same name dbo.monitoring.brandname_id.
SQL71508 :: The model already has an element that has the same name dbo.monitoring.module_id.
SQL71508 :: The model already has an element that has the same name dbo.monitoring.frequency_id.
SQL71508 :: The model already has an element that has the same name dbo.monitoring.succ_count.
SQL71508 :: The model already has an element that has the same name dbo.monitoring.failCalib_count.
SQL71508 :: The model already has an element that has the same name dbo.monitoring.failWriteFlash_count.
SQL71508 :: The model already has an element that has the same name dbo.monitoring.failEraseDevice_count.
SQL71508 :: The model already has an element that has the same name dbo.monitoring.failWriteAVR_count.
SQL71508 :: The model already has an element that has the same name dbo.monitoring.programmingLocation.
SQL71508 :: The model already has an element that has the same name dbo.monitoring.dateonly.
SQL71501 :: Default Constraint: [dbo].[CONSTRAINT_NAME] has an unresolved reference to object [dbo].[monitoring].
SQL71501 :: Default Constraint: [dbo].[CONSTRAINT_NAME] has an unresolved reference to Column [dbo].[monitoring].[dateonly].
SQL71501 :: Primary Key: unnamed constraint on [dbo].[monitoring] has an unresolved reference to object [dbo].[monitoring].
SQL71501 :: SqlIndexedColumnSpecification: <unnamed> has an unresolved reference to Column [dbo].[monitoring].[Id].
SQL71508 :: The model already has an element that has the same name dbo.monitoring.
SQL71508 :: The model already has an element that has the same name dbo.monitoring.Id.
SQL71501 :: Primary Key: unnamed constraint on [dbo].[monitoring] has an unresolved reference to object [dbo].[monitoring].
SQL71501 :: SqlIndexedColumnSpecification: <unnamed> has an unresolved reference to Column [dbo].[monitoring].[Id].
SQL71508 :: The model already has an element that has the same name dbo.monitoring.brandname_id.
SQL71508 :: The model already has an element that has the same name dbo.monitoring.module_id.
SQL71508 :: The model already has an element that has the same name dbo.monitoring.frequency_id.
SQL71508 :: The model already has an element that has the same name dbo.monitoring.succ_count.
SQL71508 :: The model already has an element that has the same name dbo.monitoring.failCalib_count.
SQL71508 :: The model already has an element that has the same name dbo.monitoring.failWriteFlash_count.
SQL71508 :: The model already has an element that has the same name dbo.monitoring.failEraseDevice_count.
SQL71508 :: The model already has an element that has the same name dbo.monitoring.failWriteAVR_count.
SQL71508 :: The model already has an element that has the same name dbo.monitoring.programmingLocation.
SQL71508 :: The model already has an element that has the same name dbo.monitoring.dateonly.

一部の一時ファイルがクリアされていないと思われるため、テーブルがまだ存在すると考えられます。誰かが解決策を知っていますか? ありがとう。

4

0 に答える 0