[Last Call] Learn how to a build a cloud-first strategyRegister Now


What does ;1 in the query sp_executesql;1 mean?

Posted on 2009-04-29
Medium Priority
Last Modified: 2012-05-06

We're currently troubleshooting one of our SQL 2000 databases due to a significant amount of deadlocks. One of the transactions that keeps popping up in the logs is SP_EXECUTESQL;1.

What does the semicolon and 1 mean in this statement?


Question by:Aico
LVL 41

Expert Comment

ID: 24266143
can you provide the comeplete statement? or script?
LVL 51

Accepted Solution

Mark Wills earned 1000 total points
ID: 24267893
You are probably seeing that as a trace or profile result (let us know where you are seeing it)...

sp_executesql executes dynamic sql statements. The semicolun is the end of that statement and we often see a statement terminated with ;1 in the traces. It has nothing to do with the actual sp_executesql command itself.

sp_executesql in actual usage looks like :

sp_executesql [ @stmt = ] stmt   [, [@params=] N'@parameter_name data_type [ OUTPUT ] , [ @param1 = ] 'value1' [ ,...n ]  ]

So, you need to look at the details for the PID of whatever process was running.


Featured Post

Fill in the form and get your FREE NFR key NOW!

Veeam is happy to provide a FREE NFR server license to certified engineers, trainers, and bloggers.  It allows for the non‑production use of Veeam Agent for Microsoft Windows. This license is valid for five workstations and two servers.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Creating a Cordova application which allow user to save to/load from his Dropbox account the application database.
MSSQL DB-maintenance also needs implementation of multiple activities. However, unprecedented errors can hamper the database management. In that case, deploying Stellar SQL Database Toolkit ensures fast and accurate database and backup repair as wel…
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…
Suggested Courses

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question