PASS Professional Development VC Reboot!
This is just a quick post to let everyone know that this week marks the return of the PASS Professional...
2010-05-10
469 reads
This is just a quick post to let everyone know that this week marks the return of the PASS Professional...
2010-05-10
469 reads
Now that we’ve moved SQLSaturday to PASS and we’re seeing some really nice growth in the number of events, I...
2010-05-10
497 reads
If you’re anything like me, you value every second of your day and you constantly try to find new ways...
2010-05-10
461 reads
This coming Thursday is the SCSUG meeting. This is no normal meeting. Instead of the standard format of pizza/socialization followed...
2010-05-10
905 reads
http://www.sqlservercentral.com/blogs/sqldbauk/archive/2010/04/29/when-was-sql-server-last-restarted_3F00_.aspx
A very good tip from the SQL DBA in the UK!
2010-05-10
518 reads
Sparklines are new to Microsoft Excel 2010 and Reporting Services 2008 R2. In this post I will outline the steps...
2010-05-09
2,542 reads
Is the order of parameters important in SQL Server Reporting Services reports? If you’ve got nested parameters (parameters that derive...
2010-05-08
2,604 reads
I know it’s kind of late to write a review of my first quarter goals, since we are well into...
2010-05-07
1,098 reads
The Colorado Springs SQL Server User’s Group is having their May meeting on May 19.
It will be held at the...
2010-05-07
701 reads
Every day for the next couple of weeks, I aim to highlight one of SQL Server 2008’s new features, simply...
2010-05-07
739 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