Who Would You Like To See as a PASS Summit Keynote Speaker?
Note: These are my opinions and don’t reflect the official views of PASS, just my thoughts!
I’ve been to every PASS...
2010-02-09
455 reads
Note: These are my opinions and don’t reflect the official views of PASS, just my thoughts!
I’ve been to every PASS...
2010-02-09
455 reads
Just booked the travel, going up the afternoon of March 5th and returning on an early evening flight on the...
2010-02-08
340 reads
I’ve been a fan of the OLPC project, even buying to raffle off at an event just so I could...
2010-02-08
352 reads
Scott Klein has put together the first annual Geek Golf event. Scheduled for May 8th, 2010, it’s being held at...
2010-02-08
524 reads
As I mentioned earlier in the week I had promised Andy an interview, we finished it up yesterday and the...
2010-02-05
350 reads
A couple weeks back I asked for reading suggestions, and I got a bunch! Here’s the list so far:
Wizard’s First...
2010-02-05
431 reads
Our next meeting is February 9, 2010, We’ve got Ronald Dameron coming to speak this month on Database Hardening using...
2010-02-04
325 reads
January has been a slow month for me as far as PASS involvement, I show about 10 hours logged for...
2010-02-04
452 reads
Dave Schutz will be leading the first ever SQLSaturday in Columbus, OH on June 5, 2010 at the Fawcett Center...
2010-02-04
333 reads
Yesterday I posted the news that SQLSaturday is now owned by PASS, today I’d like to share a bit of...
2010-02-03
1,096 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