SQLSaturday #59 - Speaker Interview #5 with Karen Lopez
SQLSaturday #59 - Speaker Interview #5 with Karen Lopez, (aka datachick)
Let’s trek up North to the great city of Toronto, Canada,...
2010-10-18
1,930 reads
SQLSaturday #59 - Speaker Interview #5 with Karen Lopez, (aka datachick)
Let’s trek up North to the great city of Toronto, Canada,...
2010-10-18
1,930 reads
SQLSaturday #59 Speaker Interview Series #4 – with Janakiraman Sattainathan
So far, we went Way out West, NYC local, we were waiting...
2010-10-15
806 reads
SQLSaturday #59 Speaker Interviews Series #3 - Kevin S. Goff
You can catch all the speaker interviews on this upcoming event, on...
2010-10-14
915 reads
SQLSaturday#59 Speaker Interview Series #2
Yesterday, on the PearlKnows Blog, I kicked off the SQLSaturday#59 Speaker Interview Series, with a bit...
2010-10-13
815 reads
Source Event Home Page: http://www.sqlsaturday.com/59/eventhome.aspx
Written & Distributed by: Robert Pearl
You may have heard that we’re planning an event in NYC, called...
2010-10-12
941 reads
SQLSaturday#59 - Interview with Robert Pearl (1st in series) - Say what?
As we get the countdown under way, I caught up...
2010-10-12
1,219 reads
I just wanted to update everyone on our event happening in NYC, November 20, 2010. We have just six weeks...
2010-10-11
547 reads
I have a question for all you DBA’s and SQL Professionals out there. It’s an exciting new contest that is...
2010-09-27
1,338 reads
Hi, ALL: Just want to bring you some updates and news on SQLSaturday#59 @MS HQ in NYC on Nov 20, 2010. ...
2010-09-22
642 reads
Today we have a guest editorial from Robert Pearl that talks about the SQL Server community, and how you can get involved.
2010-09-16
140 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