MDX Utility Belt of Calculations Part 4
This is part four in the series of blog posts that will help in building a library of calculations you...
2009-12-07
2,810 reads
This is part four in the series of blog posts that will help in building a library of calculations you...
2009-12-07
2,810 reads
Microsoft Learning has put up a new Microsoft Student Career Portal that gives advice and links to resources on how...
2009-12-07
1,465 reads
It surprises me how often I see people posting questions about what type of encryption to implement for credit card...
2009-12-07
778 reads
I am a pretty frequent traveler, as you would imagine. Running a consulting company, and being on it's principals assets...
2009-12-07
471 reads
Next week, I have the honor of presenting two different sessions on SSIS. These 2 events are the last speaking...
2009-12-07
604 reads
I recently was working with a client and as sometimes happens, I could not get on their network. Not a...
2009-12-07
618 reads
I recently was working with a client and as sometimes happens, I could not get on their network. Not a...
2009-12-07
510 reads
I spend this weekend playing with transaction replication and try to set it up so that I don't have to...
2009-12-06
1,061 reads
Devenius Software is offering a free tool to help you manage SQL Server encryption keys. Its called the SQL Encryption...
2009-12-05
550 reads
2010 is beginning to look like a great year for SQLSaturday events this year. Already, there are nine planned, and...
2009-12-05
414 reads
By Steve Jones
It’s Prime Day. A few of my recommendations, since I want to do some...
With Fabric Mirroring, Microsoft is promoting a nice and appealing story for operational reporting...
If you’ve been watching AI roll through the data community and thinking, “this seems...
Comments posted to this topic are about the item SQL Art, Part 4: Happy...
Hi All I am trying to find 'bad' characters that users might type in....
Comments posted to this topic are about the item Extreme DAX: Take your Power...
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