I’m changing the security for a SQL Server 2005 database, so I need to identify every place/ db-object which use the function sUser_sName() (SQL function to retrieve the current username connected to the server).
So, is there any way to run a query or something else and retrieve every object which use the function sUser_sName()?
If you need to find database objects (e.g. tables, columns, triggers) by name – have a look at the FREE Red-Gate tool called SQL Search which does this – it searches your entire database for any kind of string(s).
It’s a great must-have tool for any DBA or database developer – did I already mention it’s absolutely FREE to use for any kind of use??