Microsoft
Software
Hardware
Network
Question : Find & Replace on all views, stored procedures, functions in a given database/server
I'm trying to clean up unused tables in the database. I have been able to do a scan on the web server to see if certain tables are being called from a web page, but unable to know if a table is being used in a stored procedure, a function, or a view that a web page calls.
Is it possible to use Microsoft SQL Manager to scan a database or a server for any functions, stored procedures, or views that use a particular table?
Using:
Microsoft SQL Server Management Studio 10.0.1600.22 ((SQL_PreRelease).080709-1
414 )
Microsoft Analysis Services Client Tools 2007.0100.1600.022 ((SQL_PreRelease).080709-1
414 )
Microsoft Data Access Components (MDAC) 6.0.6002.18005 (lh_sp2rtm.090410-1830)
Microsoft MSXML 3.0 5.0 6.0
Answer : Find & Replace on all views, stored procedures, functions in a given database/server
With column names...
sp_MSForEachDB 'select ''?'' as DbName,object_name(id) as Object,text as Text from ?..syscomments where text like ''%<
Random Solutions
Speed Issues when converting Access 97 to Access 2003
Server is not configured for transactions
Changing calendar from 5 days a week to 7
How would I use linq instead of dataset/dataview/datatable<wbr /> in the following scenario
Problem with Check Box Form Control
Event ID 12292
Can I use union with sql subqueries?
Installing Office 2003--How to get Clean Install with updates
New user can't log on to Terminal Server
VFP Detail 1 band is too large for page