Prezados estou tentando criar um procedure de importação, comp a seguinte:
CREATE PROCEDURE
SP_IMPORT
@Cam_arquivo
text,
AS
BEGIN
BULK INSERT
SEF_TABPONTE FROM
@Cam_arquivo
WITH(FORMATFILE
= 'Z:\\import2rows.FMT')
END
Mas aparece a seguinte mensagem de erro:
Mensagem 102, NÌvel 15, Estado 1, Procedimento SP_IMPORT, Linha 5
Incorrect syntax near '@Cam_arquivo'.
Mensagem 319, NÌvel 15, Estado 1, Procedimento SP_IMPORT, Linha 6
Incorrect syntax near the keyword 'with'. If this statement is a common table expression, an xmlnamespaces clause or a change tracking context clause, the previous statement must be terminated with a semicolon.
Alguem poderia me ajudar?
Agradeço desde já