First Time Attendees At User Groups
Several years ago during the first iteration of the Orlando SQL Server Users Group I talked a friend into attending....
2008-09-23
1,838 reads
Several years ago during the first iteration of the Orlando SQL Server Users Group I talked a friend into attending....
2008-09-23
1,838 reads
I've been playing with WSUS lately and I've been less than satisfied with the reporting. Since the information I need...
2008-09-23
1,120 reads
Mechanical posts are ones that are either auto-generated, or manually input with no real additional work put into them - an example...
2008-09-22
1,047 reads
Why did I write this? I got challenged by Andy Warren to write a bit about why I wrote something....
2008-09-22
766 reads
It's been a while since I've written a blog post that wasn't a user group announcement. Here's what I've been...
2008-09-22
677 reads
I've been using a Dell Latitude for a looong time, probably going back to 2000 or 2001. Decent machine - though...
2008-09-21
790 reads
Whenver we start a somewhat big IT project, it is natural for us to build a team dedicated to the...
2008-09-20
2,719 reads
I'm starting a series of blog posts from the Business of Software conference
that I attended last week in Boston. If...
2008-09-18
749 reads
Most of my posts here are reasonably serious, and really this one is too, but a but of humor mixed in....
2008-09-18
664 reads
I'm starting a series of blog posts from the Business of Software conference
that I attended last week in Boston. If...
2008-09-17
967 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