SQLSaturday#59 NYC Kickoff....
Well, as many of you in this space may already know that SQLSaturday#59 in @MS HQ in NYC, on November...
2010-09-10
519 reads
Well, as many of you in this space may already know that SQLSaturday#59 in @MS HQ in NYC, on November...
2010-09-10
519 reads
Not sure if anyone else posted about this, but just sharing the news of the R2 Management Pack from MSDN:
"Following...
2010-08-09
1,383 reads
Nominate your favorite products for the SQL Server Magazine 2010 Community Choice Awards. August 24th Deadline for Nominations...
SQL Server...
2010-08-08
1,525 reads
OK, we've seen step-by-step lists and articles on how to INSTALL a SQL Server 2008 Cluster, but have you run...
2010-07-25
23,287 reads
Whatever edition of SQL Server 2008, regardless of it being 32-bit or 64-bit, chances are, if you’re installing SQL Server...
2010-07-19
57,926 reads
SQLSaturday #39 NYC Presentations available online....
If you were at SQLSaturday in NYC and want to see it again, or, you...
2010-05-02
958 reads
Well, it’s Monday morning and back to the DBA salt mines!
Now that SQLSaturday #39 is all but a joyful...
2010-04-26
578 reads
Happy Monday, everyone! The internet is a buzz! I have never seen so much energy and enthusiasm as SQLSaturdays, and...
2010-04-19
1,042 reads
There's an exciting new product on the market, and Pearl Knows is in on the ground floor, and wanted to share.
If...
2010-03-21
679 reads
Many companies face the decisions to 1) consolidate their SQL Servers, due to sql sprawl; and 2) whether to virtualize their SQL...
2010-03-15
1,091 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