What are you logged in as? SQL login or windows login? What permissions does that login have?
Does the login 'UserName' exist?
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability