Viewing 15 posts - 241 through 255 (of 7,191 total)
Indeed, you will need to install two updates - the latest SP and the latest CU. For SQL Server 2017 and later it's more simple - there are no SPs,...
January 9, 2020 at 11:28 am
Work your way through this, and post back if there's anything in particular you don't understand.
John
January 9, 2020 at 10:21 am
Yes, write a query to identify any such duplicates. Put it in a job and use Database Mail to notify the user if duplicates are found.
I have to ask, would...
January 9, 2020 at 9:36 am
A trigger on the table - would that work?
John
January 8, 2020 at 4:05 pm
Which analytic function has violated your restriction? What is the reason for the restriction? If, as I suspect, it's because this is a homework question, please show us what...
January 8, 2020 at 12:38 pm
I can't see why that wouldn't work. But don't take my word for it - have you actually tried it? Bear in mind that sp_MSForEachTable is an undocumented stored procedure. ...
January 8, 2020 at 11:45 am
Yes, the constraint prevents orphaned rows in the child table - in other words it stops children having their parent deleted. What it doesn't do is stop a parent having...
January 6, 2020 at 4:47 pm
I think you have two choices: (1) you can't delete any row in the parent table while related rows exist in the child table, or (2) you create the foreign...
January 6, 2020 at 4:26 pm
What have you already tried? The FIRST_VALUE function may help you here.
John
January 6, 2020 at 2:13 pm
Have you read the documentation, and was there anything in particular you didn't understand?
John
January 6, 2020 at 11:23 am
Depending on your precise requirement, you might also consider Change Data Capture and Temporal Tables.
John
January 2, 2020 at 9:11 am
I am new to DBA role.
Really? You've been asking questions on here for about nine years.
How did your production database come to be more updated than the development one? ...
December 30, 2019 at 3:25 pm
Q1 You can use Extended Events, but there's a ready-baked SQL Audit feature that it would be easier for you to use.
Q2 Are you talking about a particular database, or...
December 30, 2019 at 10:57 am
Audit is indeed available in Standard Edition, going all the way back to (at least) SQL Server 2008 R2. Granted, it's only for server-level events, but I think that will...
December 30, 2019 at 9:23 am
Alternatively, stop using the errorlog to capture login events and use SQL Audit or an Extended Events session instead. That way, you can control with fine granularity what you keep...
December 23, 2019 at 3:47 pm
Viewing 15 posts - 241 through 255 (of 7,191 total)