SQLSaturday#59 Update! - 3 weeks to go.....the after PASS East Coast Special!
Β SQLSaturday#59 Update!
Well, the event is now less than 3 weeks away (better finish my presentation π and there are 450+ attendees...
2010-11-01
564 reads
Β SQLSaturday#59 Update!
Well, the event is now less than 3 weeks away (better finish my presentation π and there are 450+ attendees...
2010-11-01
564 reads
Β
Sunday, October 31, 2010 is Halloween, and in the spirit of the holiday of ghosts, goblins, vampires, werewolves, witches and...
2010-10-29
2,417 reads
SQLSaturday #59 Speaker Interview #13 β with Mark Kromer
Today, coming in from Philadelphia, PA, we are talking with Mark Kromer, who...
2010-10-28
794 reads
Β SQLSaturday #59 - Speaker Interview Series # 12 - with Ayad Shammout
Today, we bring you the immaculate interview.Β If his sessions are as...
2010-10-27
855 reads
SQLSaturday #59 β Speaker Interview #11 with Steve SimonΒ
Queue the track.Β I canβt help hearing the theme song from Indiana Jones...
2010-10-26
718 reads
SQLSaturday #59Β Interview Speaker Series #10Β - with Thomas LaRock
Β
Today, Monday, we pick up on our speaker interview series, with my...
2010-10-25
732 reads
Β SQLSaturday #59 β Speaker Interview Series #9 β with Scott Weinstein
To round off the week, we bring you a short interview with...
2010-10-22
652 reads
Β Β Β Β Β SQLSaturday #59 β Speaker Interview Series #8 β with Aaron King.
We interrupt this blog post to bring you the latest SQLSaturday#59 News...
2010-10-21
1,111 reads
Β SQLSaturday #59 - Speaker Interview Series # 7 - with Hilary Cotter
He specializes in Microsoft Search solutions and high availability technologies like data...
2010-10-20
1,138 reads
SQLSaturday #59 β Speaker Interview Series #6 with Michael Coles
Today is Tuesday.Β And in honor of TSQL Tuesday, weβre bringing you...
2010-10-19
1,336 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