2

We are migrating from a SQL Server 2008 instance on a shared host to our own box. Our issue is we have a bunch of tables, procs and views that are prefaced with a schema (let's call the schema 'me') other than dbo.

So:

me.Employees
me.vw_EmployeesStuff
me.proc_SaveEmployee

We're having issues now that we have restored the backups from the shared host to our new box. When logged in as 'me', we need the queries to run like this:

SELECT * FROM vw_EmployeesStuff

And not have to query like:

SELECT * FROM me.vw_EmployeesStuff

We've tried to change the default schema for the user from dbo to me, but it doesn't seem to be 'taking'. Any thoughts or help is much appreciated. TIA

RDFozz
11.7k4 gold badges25 silver badges38 bronze badges
asked Apr 18, 2013 at 5:35
0

2 Answers 2

1

You have to migrate all the users from the original instance using the procedure sp_help_revlogin.

LowlyDBA - John M
11.1k11 gold badges46 silver badges63 bronze badges
answered May 10, 2017 at 13:33
0

Unchecking sysadmin seemed to fix this immediate issue, but caused a new one. Now the 'me' user cannot expand any server nodes in SSMS.

It looks like ultimately some of our logins were orphaned because we created the databases from backups from a different server.

Community wiki answer based on comments left by the question author

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.