How to I get the SCHEMA when doing a select on sysobjects?
I am modifing a stored procedure called SearchObjectsForText which returns only the Name
In SQL 200:
select DISTINCT name as ObjectName, USER_NAME(uid) as SchemaName from sysobjects
In earlier releases of SQL Server, databases could contain an entity called a "schema", but that entity was effectively a database user.