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
Only one parameter passed to function but For Each...Next keeps going after first pass. Can't understand why.
How and where to install SSL Certificate for website?
how to batch rename files without extension to .wpd files
Add Windows 2008 Terminal Services to a Windows 2000 Active Directory Domain?
Listbox
70-294 practice question
An error while exporting a Query as a txt file
Cumulative Count in a Query
Subform last record not showing on report
Left Join tables many to many