sp_defaultdb [ @loginame = ] 'login', [ @defdb = ] 'database'
Note: the above has been deprecated in favor of the ALTER LOGIN statement in SQL Server 2005.
SQL Server 2000 UDFs can't access temporary tables.
Jeffrey A. Miller Learn more about me
My Facebook Profile
Amazon.com Widgets
RSS2PDF.org