This is mostly just a post for me so I never forget this, but to change the owner of an object in sql server, use sp_changeobjectowner, just pass it the name of the object (as a string) and the name of the new owner (as a string)
sp_changeobjectowner ‘tablename’,’dbo’
You can view Eric Porter’s original post here: http://weblogs.asp.net/eporter/archive/2004/10/29/249627.aspx