Viewing 15 posts - 8,401 through 8,415 (of 15,381 total)
You're welcome. Let me know if you need some help converting to a delete trigger. You would use the deleted virtual table instead of the base table.
May 9, 2013 at 9:13 am
mjmshopper (5/9/2013)
I tried making your changes and ended with an Error Message: Must declare teh scalar variable "@UTCTimeDIff"
You must have something else referencing that variable. It is not in the...
May 9, 2013 at 9:11 am
KS-321165 (5/9/2013)
Which CTE, MyCTE?
You don't have to call it that in your real code but yes. That one removes all orphans. If you ran that when a row was...
May 9, 2013 at 9:02 am
What you might be able to do is put that CTE in a delete trigger.
May 9, 2013 at 8:41 am
KS-321165 (5/9/2013)
May 9, 2013 at 8:39 am
KS-321165 (5/9/2013)
One more request:
I am new to CTE.
Do you have a CTE that will delete all the children when the parent is deleted...
May 9, 2013 at 8:30 am
kishor.patgir (5/9/2013)
I want this type output.Here I want in first column how many members are join today(registration),and in second column sum of member before today,and third column the sum...
May 9, 2013 at 8:15 am
prb88 (5/9/2013)
Patient Name|| Patient No.|| Age|| Cancer||Consultant|| Operation||Admiision Date|| Date of Operation ||
Joe Bloggs ...
May 9, 2013 at 8:11 am
kritika (5/9/2013)
but there are scenerios where in due to some constarints you are...
May 9, 2013 at 8:09 am
Can you please more clearly what you are trying to do here? From what you posted I can't come close to a guess at what you want here.
May 9, 2013 at 8:07 am
Hi and welcome to the forums. You might take a look at this link with lots of date routines.
http://www.sqlservercentral.com/blogs/lynnpettis/2009/03/25/some-common-date-routines/%5B/url%5D
If that is not enough help we are going to need...
May 9, 2013 at 8:05 am
Here is an example using a recursive CTE to get the list of IDs to delete. Please note that to your original data I removed 631. That left the sample...
May 9, 2013 at 7:56 am
Something like this should work.
Notice how I posted ddl and sample data in a consumable format? That is something you should do in the future. It makes it easy for...
May 8, 2013 at 3:23 pm
azdeji (5/8/2013)
Parent (level 1)
Participant_ID
Supporter_id
Event_code
Event_role
Child (level 2)
Do not register
No Reg
Yes Reg
Child Level3
Did Not Attend
Yes Attend
This possible because the...
May 8, 2013 at 2:58 pm
Viewing 15 posts - 8,401 through 8,415 (of 15,381 total)