Daily SQL Server 2008 New Feature – Day 9
Every day for the next couple of weeks, I aim to highlight one of SQL Server 2008’s new features, simply...
2010-05-18
431 reads
Every day for the next couple of weeks, I aim to highlight one of SQL Server 2008’s new features, simply...
2010-05-18
431 reads
I liked Android, I really did, and I thought my G1 was the best phone I’d had to date when...
2010-05-18
820 reads
Getting Started With PowerShell Variables
Yesterday we laid the ground work for PowerShell Week. Today we will learn about Variables in PowerShell. You will...
2010-05-18
995 reads
Report Builder 3.0 offers many new features to its users. One of the best features, in my opinion, is the...
2010-05-18
1,833 reads
I struggled with the title for this one. One of the thoughts I had was that I believe in being...
2010-05-18
684 reads
I also just discovered that Microsoft releasedSQL Server 2008 R2 RTM CU1 yesterday. It is Build 1702, and it contains...
2010-05-18
3,087 reads
Microsoft has releasedSQL Server 2008 SP1 CU8 (Build 2775). There is no corresponding CU for the RTM branch of SQL...
2010-05-18
1,312 reads
The top things YOU need to know about managing SQL Server – in one place, on one day – presented by two...
2010-05-18
730 reads
The cost of making a trip differently in the US, in terms of time, effort, and driving habits, is small....
2010-05-18
921 reads
Paul Randal (@PaulRandal) started this chain of blog posts with his post, What 5 Things Should SQL Server Get Rid...
2010-05-17
793 reads
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...
By Arun Sirpal
Not every production incident is a database in RECOVERY_PENDING or a corrupted event (like...
Comments posted to this topic are about the item SQL Art, Part 4: Happy...
Hi All I am trying to find 'bad' characters that users might type in....
Comments posted to this topic are about the item Extreme DAX: Take your Power...
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