Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

Need to Drop Database ? ... by Passing database name in variable dynamically

$
0
0

Hi,

Am using Execute SQL task to drop a database dynamically, but ended with error... Pls help on this,

error is:

[Execute SQL Task] Error: Executing the query "DROP DATABASE ?" failed with the following error: "Incorrect syntax near '@P1'.". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.

Help me to fix this...Tks.


Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>