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
(NEWBIE)Visual Studio (Concurrent I/O operations error) (NEWBIE)
Visual Basic Search and Replace through large text file
Batch file that does a file search and then if found executes a specific command on the file
How can I run/emulate IE 7 to access a site that only works for IE7
SSRS report Create a new data source for a parameter
How to open and close an excel file from Scheduled Tasks
DAO recordset edit problem
VBA code to select the folder one level above this workbook's folder
How do I remove windows Encryption
Loading any ActiveX.ocx in VB.NET Form