Viewing 15 posts - 211 through 225 (of 1,048 total)
Junglee_George (8/30/2013)
Thanks Gail. But Chris hasn’t written the code for the splitter function there. I need that code.
you can find the code for splitter in SSC article with the same...
August 30, 2013 at 3:42 am
ScottPletcher (8/29/2013)
ALTER TABLE dbo.tblemployeeADD ident int IDENTITY(1, 1) NOT NULL
Edit: Added "NOT NULL"
You are adding a new column with IDENTITY property and it works..
The thing is that we cant add...
August 30, 2013 at 3:10 am
aiki4ever-796329 (8/27/2013)
It's the difference between
select * into test2 from test -- inserts into a new table
insert into test2 select * from test --...
August 28, 2013 at 7:41 am
ALZDBA (8/28/2013)
if that meets the requirement, it's ok.
But what abt the scenario for which I posted the question...
How can I implement this:
Scenario is: Currently if made any changes in DeviationRequestDetails...
August 28, 2013 at 2:23 am
ALZDBA (8/28/2013)
Keep in mind exceptions do occur...
August 28, 2013 at 1:15 am
OK,
ihave changed the code now...
Removed the MERGE statement.
Is this OK?
ALTER Trigger [dbo].[Trg_DeviationRequestDetails_Ins]
ON [dbo].[DeviationRequestDetails]
After INSERT AS
BEGIN
Declare @count INT
SELECT @count = COUNT(*) FROM INSERTED
If @count = 1
BEGIN
...
August 28, 2013 at 1:06 am
ALZDBA (8/28/2013)
did you try the easy way ... split the trigger in two ?1 trigger only for inserts
1 trigger only for updates
ALTER...
August 28, 2013 at 12:52 am
On basis of what criteria you are assigning flavours to the output. please provide more details on it..
August 27, 2013 at 11:59 pm
HanShi (8/27/2013)
August 27, 2013 at 2:40 am
Oops, my previous existing function was not a multi-statement table-valued function.
I find that ALTER cannot be used to change the function type.
So, I DROP and CREATE the function...
August 27, 2013 at 2:20 am
I think you have posted your question to a worng forum..
August 26, 2013 at 11:09 pm
lindavol (8/26/2013)
But does not work when I double click on the report and apply the parameters. ...
August 26, 2013 at 11:05 pm
Koen Verbeeck (8/26/2013)
Seems fine to me. All nice set-based operations 🙂
🙂 :-P:-D:-P
August 26, 2013 at 10:43 pm
I have changed my code into this and used magic table INSERTED and its working now:)
Is it ok?
Alter Trigger Trg_DeviationRequestDetails_Ins
ON DeviationRequestDetails
After INSERT, UPDATE AS
BEGIN
MERGE INTO CLCProcessUnitDetailsCompany T
USING INSERTED as S...
August 26, 2013 at 7:53 am
Viewing 15 posts - 211 through 225 (of 1,048 total)