Viewing 15 posts - 1,051 through 1,065 (of 7,187 total)
November 29, 2017 at 9:40 am
Thanks for providing DDL and sample data, but please test before posting.
What results are you expecting?
John
November 29, 2017 at 8:58 am
Yes, because IF @newEnabled <> @oldEnabled will always evaluate to False for an insert or delete, That's because there will only be an Inserted or a Deleted table and therefore @newEnabled or...
November 28, 2017 at 9:07 am
You don't appear to have taken ZZartin's advice about using FOR UPDATE, nor mine (five days ago) about making the trigger work for multiple modifications. Nor does it look like...
November 28, 2017 at 8:54 am
OK, you've posted the code that does work. If you show us what you've tried that doesn't work for added and deleted jobs, we should be able to help out.
November 28, 2017 at 8:18 am
How (or why) do you have a stored procedure that includes CREATE FUNCTION statements?!
I'd start by searching this site for string splitter functions. The ones in your codes...
November 28, 2017 at 2:27 am
Stefan
It works for me. Note my modifications to your code:DECLARE @command varchar(1000)
SELECT @command = 'SELECT ''?'', * FROM sys.symmetric_keys'
EXEC sp_MSforeachdb @command
John
November 23, 2017 at 8:53 am
raghuldrag - Thursday, November 23, 2017 5:36 AMKinldy solve the issue
We're not here to do your job or your homework for...
November 23, 2017 at 5:46 am
As far as I know, those numbers identify the components of the package. Since the error message provides the respective names of those components (UAT tablename Destination.Inputs[OLE DB Destination Input]...
November 23, 2017 at 3:55 am
November 23, 2017 at 2:14 am
November 23, 2017 at 2:10 am
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
Viewing 15 posts - 1,051 through 1,065 (of 7,187 total)