Presenting At East Iowa SQL Server Users Group On Nov. 16
On Tuesday, November 16, I'll be presenting Paging DR Availability, You're Wanted in the Recovery Room via LiveMeeting to the...
2010-11-15
515 reads
On Tuesday, November 16, I'll be presenting Paging DR Availability, You're Wanted in the Recovery Room via LiveMeeting to the...
2010-11-15
515 reads
The 2010 PASS Summit is a few days away and my schedule has gone from wide open to booked solid!...
2010-11-05
650 reads
On Wednesday morning at 10:15 AM during the 2010 PASS Summit next week I'm presenting "Getting Started In Blogging And...
2010-11-04
712 reads
Bummed that you can't go to the PASS Summit in Seattle this year? Turn that frown upside down because there...
2010-11-03
688 reads
Yesterday I posted my tips for PASS Summit First Timers, and of course as soon as I did I remembered...
2010-11-03
1,786 reads
In less than one week the 2010 PASS Summit begins in Seattle and with each day the excitement and anticipation...
2010-11-02
680 reads
I'm happy to announce that voting for the 2011 PASS SQLRally Pre-con sessions is now open! There are four tracks:...
2010-10-26
400 reads
The call for Pre Con speakers for the 2011 PASS SQLRally closed last Friday (Oct. 15) and I want to...
2010-10-20
389 reads
We opened the call for precon speakers for the inaugural SQLRally (May 11-13, 2011) a few weeks ago and I...
2010-10-07
446 reads
As I write this SQLSaturday #49 in Orlando is right around the corner - October 16, to be exact. My friends...
2010-10-06
462 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