Skip to content
Advertisement

Syntax error when using input parameter to create procedure

I’m getting this error

Msg 103010, Level 16, State 1, Line 1
Parse error at line: 33, column: 15: Incorrect syntax near ‘@sas_token’

For reference here are the guides I am following:

https://learn.microsoft.com/en-us/azure/synapse-analytics/sql-data-warehouse/quickstart-bulk-load-copy-tsql-examples#b-shared-access-signatures-sas-with-crlf-as-the-row-terminator-windows-style-new-line

https://learn.microsoft.com/en-us/azure/synapse-analytics/sql/develop-stored-procedures#stored-procedures-in-synapse-sql

I tried the commented part because I thought it didn’t recognize the quotes but it still didn’t work

This procedure will be called from Python like so:

Advertisement

Answer

This shoould work . I have created the Copy command dynamically and passing the SAS token to that . Once I have the copy command created I execute the command . The print statement , i used it as a test . HTH

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement