I'm doing sql upgrade from slq 2000 to sql 2008, i have to find out the queries or sp or batch statements which are using xp_cmdshell on sql 2000 machine and need to remove them from SQL 2008 and redirect them to different server.
Welcome to forums.. I will go for server side trace on sp stmt completed and SQL stmt completed events and put a filter on Textdata like '%xp_cmdshell%" and monitor them. If you are using only stored queries (stored procedures, triggers etc.) you can search syscomments to see them. Hope this helps
You can also run UPGRADE ADVISOR to see any additional warnings/errors are displayed during this operation, in any case do what Preethi suggested.
But sql 2000 is critical production machine,they never allow me to run trace on the machine,This is side by side upgrade.Better to have any query or powershell script.Thanks for very quick reply...
You can restore 2000 database in 2008 (using compatibility and for test), install Red Gate SQL Search http://www.red-gate.com/products/sql-development/sql-search/ free, and search what you want. HTH
Sorry. Reading you first question and Preethi answer, I thought in the wrong way. Back to actual question, I have no idea.
..if you are not able to run Profiler, setup a server side trace to capture the events. Thats a best practice and low contention activity when your production server is highly transactional.