The World Famous Stapler Method
This is long overdue and goes out to my buddies from the SSAS Class I taught late last year. Two...
2010-05-24
410 reads
This is long overdue and goes out to my buddies from the SSAS Class I taught late last year. Two...
2010-05-24
410 reads
I heard of EverNote sporadically in the Twitter community and from my boss. I had checked it out and it seemed...
2010-05-23
550 reads
I heard of EverNote sporadically in the Twitter community and from my boss. I had checked it out and it seemed like another place to store notes/tips/ideas. I thought to...
2010-05-23
6 reads
What would get over 400 techies to give up a beautiful Saturday and spend the day inside learning about SQL...
2010-05-23
1,017 reads
Today was the Portland SQL Saturday and Code Camp at the University of Portland and
it was a great experience. I...
2010-05-23
424 reads
I realized this morning that I will be participating in three SQL Events this week and I want to share...
2010-05-23
584 reads
Sorry guys, I’m off for a week in the sun – will return June 2nd with more SQL Server 2008 New...
2010-05-22
375 reads
There was a time when almost every Chapter leader were asking PASS to find a place where the leaders can...
2010-05-21
398 reads
I ordered a copy of Currencies That Buy Credibility ($14 @ Amazon) after a comment from author Tom Wanek on Twitter...
2010-05-21
543 reads
Every day for the next couple of weeks, I aim to highlight one of SQL Server 2008’s new features, simply...
2010-05-21
395 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...
WhatsApp:0818-751-777 Menara Satu Sentra Klp. Gading, Jl. Boulevard Bar. Raya No.1 Lt. Dasar, 1,...
Hi All I am trying to find 'bad' characters that users might type in....
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