Erro ao importar a tabela
24/11/2012
0
Fui importar a tabela ITENS_NF_VENDA e apresentou este erro e não importou , o que pode ser feito?
TITLE: SQL Server Import and Export Wizard
------------------------------
Error 0xc002f210: Preparation SQL Task 1: Executing the query "TRUNCATE TABLE [dbo].[ITENS_NF_VENDA]
" failed with the following error: "Cannot truncate table 'dbo.ITENS_NF_VENDA' because it is being referenced by a FOREIGN KEY constraint.". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.
------------------------------
BUTTONS:
OK
-----------------------------
TITLE: SQL Server Import and Export Wizard
------------------------------
Error 0xc002f210: Preparation SQL Task 1: Executing the query "TRUNCATE TABLE [dbo].[ITENS_NF_VENDA]
" failed with the following error: "Cannot truncate table 'dbo.ITENS_NF_VENDA' because it is being referenced by a FOREIGN KEY constraint.". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.
------------------------------
BUTTONS:
OK
-----------------------------
Tiago Santos
Curtir tópico
+ 0
Responder
Posts
24/11/2012
Claudia Nogueira
Parece que essa tabela tem ligação com outra tabela que ainda não foi importada, provavelmente a tabela de vendas.
Caso queira importar mesmo assim, somente excluindo a Foreign Key.
Caso queira importar mesmo assim, somente excluindo a Foreign Key.
Responder
26/11/2012
Tiago Santos
Obrigado Claudia, é uma outra tabela que ela tem ligação , descobri quando fui excluir a Foreign Key, então importei e recriei na nova tabela a Foreign Key.
Responder
Clique aqui para fazer login e interagir na Comunidade :)