Check Your Azure Account Usage
It is absolutely not cool or fun to pay money to learn new technology. One of the main complaints people...
2013-08-27
787 reads
It is absolutely not cool or fun to pay money to learn new technology. One of the main complaints people...
2013-08-27
787 reads
It was pointed out to me that since PASS is such a huge networking event, any employer would be crazy...
2013-09-02 (first published: 2013-08-26)
1,960 reads
Not a big deal really, but they’re consolidating from the SQLCAT.COM to put everything on MSDN.
Read all about it here.
I...
2013-08-23
732 reads
Learning new things can be daunting. First, you have to come up with the spare time. Then you have track...
2013-08-27 (first published: 2013-08-22)
2,437 reads
I’ve been at home through the whole month of August, restingworking hard, but it’s time to get on the road...
2013-08-21
863 reads
My laptop is out for repair. I’m working currently on a Surface Pro instead. It’s spurred me to do something...
2013-08-19
804 reads
I’ve heard over and over again that the reason people don’t want to learn Azure, to explore it, to understand...
2013-08-15
751 reads
If you asked me, prior to today, if I would type or say those words, I would have laughed right...
2013-08-12
743 reads
I recently posted some comments about some guidance offered by Microsoft when talking about the CXPACKET wait type. Nothing I...
2013-08-07
675 reads
If you missed the 24 Hours of PASS Summit 2013 Preview, you missed some excellent sessions. I watched a few,...
2013-08-13 (first published: 2013-08-07)
1,239 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