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
Distributed transaction completed. Either enlist this session in a new transaction or the NULL transaction
MS Access Report Selection Options
Unable to remove printer driver for HP LaserJet 1300 PCL 5e
DHCP not updating DNS Reverse lookup zones
Complex SQL Query
Vista Home Basic & Vista Business - IE8 not supported
Remove first 5 characters from SQL
Reason for MyProj.csproj.FileListAbso<wbr />lute.txt
asp.net Why does'nt these required fields work. Only the Phone field works?
How to change data arrangement from Raw arrangement into column arrangement