Forcing a contractor to go W2
I have had a few questions like this: “I was wondering if there is a reason the vendor/broker/head hunter forces...
2014-02-04
779 reads
I have had a few questions like this: “I was wondering if there is a reason the vendor/broker/head hunter forces...
2014-02-04
779 reads
The SSDT January 2014 release has been updated to support both SQL Server 2012 Parallel Data Warehouse Appliance Update 1...
2014-01-28
1,482 reads
Pricing for Power BI for Office 365 has been announced (see pricing).
It’s all very confusing to me but Melissa Coates does a...
2014-01-21
768 reads
I have previously blogged that I am presenting at the PASS Business Analytics Conference. If you are looking to learn more about...
2014-01-16
1,065 reads
When I talk to people about switching from being a salaried employee to an independent consultant (see my presentation How to...
2014-01-14
1,834 reads
When I am tasked to do a business intelligence or data warehouse assessment, the steps I take to do that...
2014-01-09
2,038 reads
One of the biggest new features in SQL Server 2014 is SQL Server In-Memory OLTP, known mostly by its code...
2014-01-07
4,167 reads
As I mentioned in Power BI first impressions, Power BI Q&A is an instantaneous search experience that uses a natural language query....
2014-01-02
733 reads
While there are a lot of tools out there for data modeling, there is one option that is free if...
2013-12-30 (first published: 2013-12-26)
13,059 reads
One point of confusion I see with Power Query is some people believe Power Query adheres to the Excel limit...
2013-12-23
1,410 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