Picking a Blog Platform
For the past couple years I’ve been using Community Server for blogging, only because that’s the platform that’s been part...
2010-01-06
1,152 reads
For the past couple years I’ve been using Community Server for blogging, only because that’s the platform that’s been part...
2010-01-06
1,152 reads
Posting goals online is great as long as you meet your goals, can be something less than great if you...
2010-01-05
808 reads
Not easy to find yet on the new site, you can find it at http://www.sqlandy.com/feed/.
2010-01-05
316 reads
Bill Graziano posted some thoughts about the merits of East Coast vs West Coast placement of the Summit. He did...
2010-01-05
374 reads
I’ve been ‘on vacation’ for two weeks and it’s been nice to relax. I wasn’t able to unplug entirely, but...
2010-01-04
457 reads
I’ve moved my blog to www.sqlandy.com and the first post of 2010 is up. It’s still very much a work...
2010-01-02
289 reads
I started blogging about 2-1/2 years ago on SQLServerCentral.com and at the time it was the logical place for hosting....
2010-01-01
327 reads
I think I’ve met my goal of blogging every day. I’m at almost 800 posts now over the past 2.5...
2009-12-30
1,406 reads
I had a student recently who said that to get any type of training she had to write a proposal...
2009-12-29
1,544 reads
Funny the things you don’t think about until you hear someone doing it a different way. In this case it...
2009-12-28
566 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