Degree Seeker Week at SQL University, Lesson 1
Degree Seeker Week at SQL University, Lesson 1
Welcome eager learners to Lesson 1 of Degree Seeker Week at SQL University....
2010-07-05
2,637 reads
Degree Seeker Week at SQL University, Lesson 1
Welcome eager learners to Lesson 1 of Degree Seeker Week at SQL University....
2010-07-05
2,637 reads
I wrote recently about my efforts to network a bit more at events. Part 1 was to spend more time...
2010-07-05
321 reads
Looking through some of my databases this past week, theres a lot of data there which over time has become...
2010-07-04
437 reads
I’ve been scouring my notes (old & new), wading through all my previous research and unearthing advice, tips & tricks that have...
2010-07-04
501 reads
T-SQL Tuesday #008: Gettin’ Schooled
“Thank you fans and friends & odds and ends. And now for you gals and guys, a...
2010-07-04
9,240 reads
Dearest Michael Ignatieff, Leader of the Liberal Party of Canada, Official Leader of the Opposition,
First of all, 'appy appy Birthday...
2010-07-03
1,319 reads
This is number four in a series of checklists that I am putting together for a new book I am...
2010-07-03
3,583 reads
Extracurricular Activities
Recently I presented two sessions at SQL Saturday #43 in Redmond, WA. The night prior to the event, many...
2010-07-03
705 reads
Back in 2008, I wrote a blog post about version 1 of the Performance Analysis of Logs (PAL) tool. This...
2010-07-03
1,114 reads
1. SQL Objects
a. Stored Procedures : a bunch of SQL statement which can be stored under one name.
Adventages :
can be used...
2010-07-02
1,054 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