Growing New Speakers/How to Go National/PASS Needs a Policy
I commented in an earlier post about the challenges PASS has in trying to select a 100 or so speakers...
2008-07-01
295 reads
I commented in an earlier post about the challenges PASS has in trying to select a 100 or so speakers...
2008-07-01
295 reads
Today's the day that new MVPs are notified for Q3 and two longtime community members, Jeff Moden and Michael Coles,...
2008-07-01
709 reads
MS Word 2007 (and probably earlier versions) have the ability to do a basic document compare, useful if you're at...
2008-06-30
1,334 reads
Well, I almost missed blogging for the entire month of June. I'm sure that this fact didn't go unnoticed by...
2008-06-30
1,401 reads
Recently I had the chance to help a student debug a problem on a production server. It appeared to be...
2008-06-29
1,462 reads
I'm still on the fence here about a Kindle. I pinged someone that bought one and he said they're returning...
2008-06-26
1,500 reads
Recently I was visiting with an old acquaintance and one of the topics that came up was volunteers. At some...
2008-06-26
2,217 reads
Apparently other people like One Note. Microsoft is using it for learning content, and I think that's a cool idea....
2008-06-25
1,575 reads
Call for speakers is open for SQLSaturday #5 in Olympia, WA on Oct 10 (note that the MS BI conference...
2008-06-25
1,466 reads
My friend Wes Dumey does a lot of work in the business intelligence sector as a contract employee and has...
2008-06-24
1,621 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