SQLBits XI videos online
All the videos for this popular conference are online (69 of them). Take a look at the recorded sessions at http://sqlbits.com/content/Event11. ...
2013-09-10
1,014 reads
All the videos for this popular conference are online (69 of them). Take a look at the recorded sessions at http://sqlbits.com/content/Event11. ...
2013-09-10
1,014 reads
A vendor management system (VMS) is a web-based application that acts as a mechanism for businesses to manage and procure...
2013-09-05
1,473 reads
Thanks to everyone who attended my session “Building an Effective Data Warehouse Architecture” for the PASS DBA Fundamentals Virtual Chapter. The abstract is...
2013-09-04
717 reads
I will be presenting the session “Building an Effective Data Warehouse Architecture” today at 11am CST for the PASS DBA Fundamentals...
2013-09-03
912 reads
Unfortunately in my line of work as a consultant, I am contacted far too often by resume hoarders, who are...
2013-08-29
1,494 reads
Every week I get a bunch of emails from recruiters about jobs that I am not qualified for (see Low-rate...
2013-08-27
1,143 reads
If a recruiter sends me a job description, the first question I ask is, “What is the pay rate”. If...
2013-08-22
1,042 reads
I have heard large placement firms say they are better than smaller firms because “They offer the client a guaranteed...
2013-08-20
624 reads
AlwaysOn was introduced in SQL Server 2012, and there are some enhancements in SQL Server 2014:
Now support up to 8 secondary...
2013-08-15
2,145 reads
I literally get 10-15 calls and emails a week from recruiters asking if I can help them to find a...
2013-08-13
1,103 reads
It is Friday, the queries are running, and nobody is watching the bill. That...
By Steve Jones
Annabel retired from Redgate Software this week. Across most of my career at Redgate,...
By Tim Radney
As a SQL Server DBA with years of experience tuning production environments, I’ve seen...
Comments posted to this topic are about the item What is the Cloud?
Comments posted to this topic are about the item Changing the Schema
Comments posted to this topic are about the item Index Fragmentation Explained: Page Splits,...
I set up a few users on my SQL Server 2022 instance.
CREATE LOGIN User1 WITH PASSWORD = 'Demo12#1' CREATE USER User1 FOR LOGIN User1 GO CREATE LOGIN User2 WITH PASSWORD = 'Demo12#2' CREATE USER User2 FOR LOGIN User2 GO CREATE LOGIN User3 WITH PASSWORD = 'Demo12#3' CREATE USER User3 FOR LOGIN User3 GOI then created a schema that one of them owned. Under this schema, I added a table with some data.
CREATE SCHEMA MySchema AUTHORIZATION User1
GO
CREATE TABLE Myschema.MyTable(myid INT)
GO
INSERT MySchema.MyTable
(
myid
)
VALUES
(1), (2), (3)
GO
SELECT * FROM MySchema.MyTable
GO
I granted rights and verified that User2 could access this table.
GRANT SELECT ON Myschema.MyTable TO User2 GO SETUSER 'USER2' GO SELECT * FROM MySchema.MyTable GOThis worked. Now, I move this schema to a new user.
ALTER AUTHORIZATION ON SCHEMA::Myschema TO User3; GOWhat happens with this code?
SETUSER 'USER2' GO SELECT * FROM MySchema.MyTable GOSee possible answers