My PASS Summit 2011 Schedule
The annual PASS Summit is upon us once again! Here's where I'll be next week:
Monday
Arriving in Seattle mid-afternoonMonday Night Networking...
2011-10-07
683 reads
The annual PASS Summit is upon us once again! Here's where I'll be next week:
Monday
Arriving in Seattle mid-afternoonMonday Night Networking...
2011-10-07
683 reads
After last year's PASS Summit I put my money where my mouth was and said I will do something this...
2011-10-05
1,249 reads
Tomorrow marks the 4th annual SQLSaturday Orlando, held at Seminole State College in Sanford. We've got 46 sessions by 40+...
2011-09-23
871 reads
In recent years solid state drives (SSD for short) have dropped in price enough to be an affordable option in...
2011-09-08
1,178 reads
I've recently been talking to people looking for DBAs and one of the questions that always gets asked early on...
2011-08-31
2,722 reads
I've done it; I've violated one of the rules I give to people who are interested in blogging: I went...
2011-08-29
767 reads
The 2011 version of SQLSaturday Orlando (officially SQLSaturday #85), a joint effort between Orlando's PASS chapters OPASS and MagicPASS, is...
2011-07-22
590 reads
Tonight, June 22, at 6:30 PM EDT I'm presenting Paging DR Availability, You're Wanted In The Recovery Room for the...
2011-06-22
632 reads
The official notices went out to speakers last week and I am privileged to have the opportunity to present two...
2011-06-21
482 reads
The inaugural SQLRally in Orlando is less than a week away (May 11-13)! Maybe you're coming to Orlando for the...
2011-05-06
845 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