Mavericks don't make it
One of the blogs I most enjoy reading is Life Beyond Code.
This blog allows me to take off my technology...
2006-02-18
1,445 reads
One of the blogs I most enjoy reading is Life Beyond Code.
This blog allows me to take off my technology...
2006-02-18
1,445 reads
I've been working on the "Designing a Database Consolidation Strategy" chapter of my book and it's been quite an effort....
2006-02-17
1,491 reads
In the tradition of many others, I decided to add a reading list to my professional site. The reading list...
2006-02-16
1,423 reads
I've been out of pocket and off the forums for the last few weeks as
we've had several major tasks where...
2006-02-15
1,371 reads
I saw this on Greg Hughes' blog
and wondered, "What in the world?" So I took a look. It's one of...
2006-02-10
1,431 reads
For those of you who are interested in speaking at PASS in November, the submission site is open: http://passew.prod.web.sba.com/callpapers/CallPapers.cfm?conference_id=15 .
I encourage...
2006-02-09
1,312 reads
I've been thinking about doing this for a whole and I finally got
around to building a reviews section into the...
2006-02-08
1,479 reads
I haven't had time to research the extent, but someone reported plagiarism and the author admitted the code, while "from...
2006-02-06
1,416 reads
I left at lunch to hit the gym and then meet a friend. Afterwards I stopped by Starbucks to do...
2006-02-03
1,408 reads
This is very interesting.
I've often thought that blogs were a great source of information, but it is more unvetted than...
2006-02-03
1,371 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