I am in the process of migrating a database from Oracle 8i to SQL Server. In Oracle, one does not need to give a fully qualified function name( eg. dbname.fnname(); ) for invoking a function whereas the SQL Server requires me to give a fully qualified name. The problem is that I hardcode the dbname because it can change. Is there a way to invoke a function/stored procedure in SQL Server without attaching dbname with it?