Spring Training, Why Don't We Have Spring Training, and Shock The Monkey
I try to go to a spring training game once or twice a year and it serves as a useful...
2009-03-17
714 reads
I try to go to a spring training game once or twice a year and it serves as a useful...
2009-03-17
714 reads
This SQL School video will introduce you to the INTERSECT command in T-SQL. MVP Andy Warren explains how this command allows you to find matching rows in a join and a UNION.
2009-03-17
4,858 reads
I received a review copy of Murach's SQL Server 2008 For Developers a couple months back and just finished up looking through it. In general I've always liked the style of the Murach books; short lessons that flow about as logically as you can do it when it often seems like you need to know it all to get anything done!
2009-03-17
1,782 reads
My friend Michael Lato sent me an email asking if I would take a look at his newest venture called...
2009-03-16
510 reads
We just had our bi-monthly SQL group meeting (www.opass.org) with Kendal Van Dyke presenting The Truth About Disk Performance & Configuration,...
2009-03-16
567 reads
Had a note from Ken Starnes in Portland, the date for SQLSaturday #12 has changed to June 6th (same date...
2009-03-16
591 reads
Last week I was in Seattle, so I decided to stay an extra day and drive up to Vancouver to...
2009-03-12
639 reads
MVP Andy Warren continues his series of videos on auditing with a look at removing old data. In this video, learn how to develop an easy system to keep a rolling history, removing anything older than a set number of days.
2009-03-12
1,771 reads
It's funny how life often gives us the buy or fix decision on some many things, and the hard part...
2009-03-11
589 reads
Learn the basics of how to audit changes on your SQL Server with MVP Andy Warren.
2009-03-10
5,683 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