2017-12-13 2 views
2

ssis를 사용하여 Excel 파일을 삭제하고 다시 작성하고 있습니다. 그때 나는 다음과 같은 오류를 얻고 패키지를 실행하고 때 나는 ExecuteSQLTask를 사용하여 SQLStatementssis 패키지의 'drop table'또는 'drop index'구문 오류

drop table 'Employee' 
go 
CREATE TABLE `Employee` (
`BusinessEntityID` INT, 
`JobTitle` NVARCHAR(50), 
`BirthDate` DATE, 
`MaritalStatus` NVARCHAR(1), 
`Gender` NVARCHAR(1), 
`HireDate` DATE 
) 

쓰기 만 :

[Execute SQL Task] Error: Executing the query "drop table 'Employee' " failed with the following error: "Syntax error in DROP TABLE or DROP INDEX.". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.

가 그것을 해결하기 위해 도와주세요.

+0

가 작동하는지는 :) – Lamak

답변

3

문자를 제거`와 역 따옴표는 MySQL의에 사용되는

drop table [Employee] 
go 

CREATE TABLE [Employee] 
(
[BusinessEntityID] INT, 
[JobTitle] NVARCHAR(50), 
[BirthDate] DATE, 
[MaritalStatus] NVARCHAR(1), 
[Gender] NVARCHAR(1), 
[HireDate] DATE 
) 
+0

감사를보십시오. 이 대답을 수락하지 않는 이유는 무엇입니까? [투표 화살표 아래의 마크를 클릭하십시오] (https://www.stackoverflow.com/tour) –

+0

:) 내 기쁨 :) –

+0

@RamandeepSingh를 작동하지 SQL 서버 – Yahfoufi