The PASS Board: #passvotes
Ever been in a fight? Ever been in one that’s not completely going your way? I’ve done this and seen...
2014-10-02
472 reads
Ever been in a fight? Ever been in one that’s not completely going your way? I’ve done this and seen...
2014-10-02
472 reads
I am putting up an abnormal Saturday morning blog post in support of the actions taken by the PASS Board...
2014-09-27
592 reads
While I was at the VMWare HQ getting some amazing training a few weeks ago, we had the opportunity to...
2014-09-26
663 reads
Having very recently gone through the nomination process for the PASS Board, I thought I would share a few things...
2014-09-24
501 reads
The latest update to my book, SQL Server Query Performance Tuning was released last week. This is the fourth edition...
2014-09-23
770 reads
The whole idea behind PASS is to build a community of people who can assist each other in their daily...
2014-09-22
555 reads
I am running for the PASS Board. You can read more about what I’ve posted and what others have to...
2014-09-19
531 reads
This year, I submitted my application to run for the PASS Board and it was accepted. This then is my...
2014-09-22 (first published: 2014-09-17)
6,195 reads
I’m putting on a pre-conference seminar (also known as a pre-con) at the PASS Summit this year. I’m really honored...
2014-09-16
612 reads
I’ve been attempting to expand my reach to get back to my roots in development. I’m doing this because I...
2014-09-15
691 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 Extreme DAX: Take your Power...
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
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