Viewing 15 posts - 1,066 through 1,080 (of 7,191 total)
This isn't very elegant, but it seems to work!
WITH Pivoted AS (
SELECT
PAT_ID
, RECORDING_DTM
, CASE
WHEN RECORD_TYPE = 'BLOOD PRESSURE' THEN...
November 22, 2017 at 9:57 am
November 22, 2017 at 9:05 am
For schedule changed, see the last line of my first reply. For job deleted, you need to look for rows with the same job_id that appear in the Deleted virtual...
November 22, 2017 at 8:55 am
No "standard" guidelines, no, but here are a few things that I stick to. There will be exceptions to nearly all of them!
(1) Choose the clustered index key...
November 22, 2017 at 8:45 am
Unless it's essential that you be notified immediately upon any change, I think I'd change the trigger so that it writes to a table instead of firing off an e-mail...
November 22, 2017 at 8:33 am
November 22, 2017 at 7:28 am
Paulo is right. You don't have any control over the structure of your application database, but if you're creating your own database, don't make the same mistakes with the design. ...
November 22, 2017 at 2:56 am
Hemant
You could have answered your own question by using your favourite search engine. Here is one topic I found - does it help you?
John
November 22, 2017 at 2:50 am
Pedro
Replication is still possible with a database in Simple recovery model. However, I would strongly recommend that you don't use replication from a live environment to a test...
November 22, 2017 at 2:46 am
One option is to set up a custom counter in Performance Monitor and then create an alert to send you an e-mail whenever it goes over 80%.
John
November 22, 2017 at 2:22 am
You can use a variable in the SYSTEM_TIME AS OF clause, so if you declare and set the value of the variable at the beginning, that should work for you.
November 20, 2017 at 9:09 am
How do you know that process is the head blocker? If it's waiting for a lock then something else must be blocking it. Do you have sp_whoisactive?
John
November 20, 2017 at 8:34 am
November 20, 2017 at 7:59 am
What collation are you using? They both come out as YES for me (SQL Server 2016 SP1, collation Latin1_General_CI_AI)
John
November 20, 2017 at 5:17 am
November 20, 2017 at 3:30 am
Viewing 15 posts - 1,066 through 1,080 (of 7,191 total)