A Test Post
I've been trying to comment on a few interesting blogs here today, but for some reason I can't. It seems...
2009-01-06
574 reads
I've been trying to comment on a few interesting blogs here today, but for some reason I can't. It seems...
2009-01-06
574 reads
I wrote a bit of an analysis for my 2008 goals, but didn’t really list any for 2009. Partially because...
2009-01-06
770 reads
This post, and the next couple in the series (which may not be this week) are me talking through what...
2009-01-06
662 reads
If you are thinking about attending DevTeach/SQLTeach in Vancouver this June 8-12, 2009, and you haven't registered yet, you need...
2009-01-06
431 reads
I received notification a few days ago that I was selected again to participate in the We Are Microsoft charity...
2009-01-06
919 reads
Steve Jones recommended this one to me. It starts at the very beginnings of UPS and goes through pretty much...
2009-01-05
401 reads
I've always been in favor of investing in things that I think will benefit me long term, but all investments...
2009-01-05
1,578 reads
I’ve had my Kindle now for about 3 1/2 months and I have to say that I really like it....
2009-01-05
1,051 reads
My friend Will Strohl leads this group and asked for help getting the word out. I'm planning to attend.
URL:http://orlando.dotnetnukeug.net/WhatsNew/Events/tabid/91/ctl/Details/Mid/428/ItemID/16/Default.aspx?selecteddate=1/6/2009
Speaker: Stan...
2009-01-05
361 reads
CHECKSUM is a TSQL function that computes a hash value over a list of arguments. The great thing about creating...
2009-01-05
20,732 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