I’m in the process to migrate a datebase. New is that a part of the data’s home is in an external database (ERP-System). I have to modify a large number of queries.
How can i check all queries & SP’s, if they still run successfuly?
If i have a query ‘A’ which depends on query ‘B’, and i change a column in query ‘B’ i do not get the error until i run query ‘A’. Is there a way to check all queries systematicaly for binding errors?
We’r running MS-SQL 2008
finally i came up with this script. it generates a ‘select * from’ for each query and with
SHOWPLAN_TEXT ONit emits just the plan or an error if the query is broken.Use it like this: Execute the query below with output to text enabled. Copy the generated text in a new query an execute it.