Date Expressions in SSIS
There are many different ways to manipulate dates when working with them in SSIS. Many great examples have been posted...
2009-11-03
574 reads
There are many different ways to manipulate dates when working with them in SSIS. Many great examples have been posted...
2009-11-03
574 reads
Up early again, started my day at the Convention Center for breakfast. Light breakfast, drinking water, never seem to drink...
2009-11-03
381 reads
This week, I’m blogging and tweeting from the PASS Community Summit in Seattle, Washington. The week of the Summit is...
2009-11-03
793 reads
In the spirit of my Who DID IT and RAN SQL Caper presentation.....
OK, I was hoping to get the creative juices...
2009-11-03
744 reads
Have you ever lost your project file for a SQL Server Analysis Services database? There is a great option to...
2009-11-03
1,052 reads
With the advent of SQL Server 2005 and 2008, mail in the database engine has changed dramatically. Previously you had...
2009-11-03
1,428 reads
Getting to Seattle
I started my travels to the PASS Summit at about 9:30 am (EST) on Sunday and arrived at...
2009-11-03
712 reads
Started the day with a long walk, then off to Top Pot doughnuts for coffee with Don Gabor, Jack Corbett,...
2009-11-03
378 reads
President of server tools at Microsoft, Bob Muglia, he overseas Windows Server, Systems Center, Hyper-V, and of course, SQL Server....
2009-11-03
733 reads
I'm blogging from the PASS Summit 2009, making notes as the keynotes unfold. This is my second year doing it...
2009-11-03
327 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