One Year In
I got my Toshiba Qosmio a little over a year ago and it has been a great machine for me...
2008-12-26
1,448 reads
I got my Toshiba Qosmio a little over a year ago and it has been a great machine for me...
2008-12-26
1,448 reads
Data mining is commonly used to find otherwise undetectable patterns in related sets of data. However, sometimes these patterns provide...
2008-12-26
1,522 reads
During a recent class I happened to mention something about grasshopper, and a student wasn't familiar with the reference to...
2008-12-25
1,771 reads
I'm sure some of the geeks out there are logging onto the web, checking feeds, and whiling away some of...
2008-12-25
1,393 reads
As we try and evolve our automotive industry, and perhaps our energy policy, to move into the future in the...
2008-12-24
1,487 reads
I'm enjoying today with family and hope you are as well. Nothing complicated today, just some appropriate music!
Bruce Springsteen - Santa...
2008-12-24
1,467 reads
It was only a year ago that I moved from the Blackjack to the Blackberry Curve and overall I was...
2008-12-23
1,414 reads
Traditionally, analyzing Performance Monitor data has not been an easy task. It often involved viewing Performance Monitor logs in graph...
2008-12-23
3,780 reads
One of Google's tenets is to "do no evil" as they run their corporation. This article questions their motives as...
2008-12-23
821 reads
If you haven't done so, check out this Simple-Talk Editorial by Tony Davis, in addition to all the comments the...
2008-12-23
706 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