Kindle Update - July 4th
I went away in the mountains for July 4th to a camping facility with the family. I was an unwired...
2008-07-07
892 reads
I went away in the mountains for July 4th to a camping facility with the family. I was an unwired...
2008-07-07
892 reads
I had a note to myself to write up some notes about listening on a non standard port, but it...
2008-07-07
402 reads
I will be speaking at an upcoming JSSUG (Jacksonville SQL Server User Group) meeting Wednesday July 16th. This event will...
2008-07-07
516 reads
Just over a year ago I decided to start a blog and I put an item on my calendar to...
2008-07-06
356 reads
I try to limit the number of truly off topic posts I do, but today is a special day in...
2008-07-03
240 reads
The Midlands PASS Chapter hosts:
SQL Server MVP John Welch
July 17, 2008 at Training Concepts
The Midlands PASS chapter will hold a...
2008-07-03
724 reads
My friend Shawn Weiseld posted a note about the new INETA Champs Program. Looks interesting and is a nice step...
2008-07-02
349 reads
I saw an interesting note about how Intel is warning developers that they need to learn to program with multiple...
2008-07-02
642 reads
As expected, I forgot someone again in my MVP announcement. Last time I announced Kathi Kellenberger and Andy Leonard, forgetting...
2008-07-02
656 reads
I was fighting an error that was very rare to appear. I originally put a post on a MS forum
http://www.microsoft.com/communities/newsgroups/en-us/default.aspx?dg=microsoft.public.sqlserver.replication&tid=57229124-0a5a-4ec3-9055-a06b7869b872&cat=&lang=&cr=&sloc=&p=1
The...
2008-07-02
4,448 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