Viewing 15 posts - 5,041 through 5,055 (of 15,381 total)
The number one rule of a primary key is that it must be "meaningless" yet unique.
This is a matter of opinion. There is no reason a primary key MUST be...
April 30, 2014 at 1:03 pm
Bill Talada (4/30/2014)
April 30, 2014 at 1:00 pm
Hi and welcome to the forums. In order to help we will need a few things:
1. Sample DDL in the form of CREATE TABLE statements
2. Sample data in the form...
April 30, 2014 at 12:27 pm
Grant Fritchey (4/30/2014)
shafirmubarak (4/30/2014)
Yes, the unique enforcement would be absolute necessary.But i was not sure how surrogate key will be of use?
In some situations it will help performance to...
April 30, 2014 at 12:24 pm
Hi and welcome to the forums. In order to help we will need a few things:
1. Sample DDL in the form of CREATE TABLE statements
2. Sample data in the form...
April 30, 2014 at 10:03 am
eseeweb (4/30/2014)
I am very new to trigger. Not sure how i can do that. If possible, please help out. Is there any example or ideas on how...
April 30, 2014 at 10:00 am
Jeremy Brown (4/30/2014)
April 30, 2014 at 9:47 am
I didn't even notice the NOLOCK hints littered throughout that. Do you know what that hint does? Are the users ok with missing and/or duplicated data occasionally when this runs?
http://sqlblogcasts.com/blogs/tonyrogerson/archive/2006/11/10/1280.aspx
http://blogs.msdn.com/b/davidlean/archive/2009/04/06/sql-server-nolock-hint-other-poor-ideas.aspx
http://www.jasonstrate.com/2012/06/the-side-effect-of-nolock/%5B/url%5D
April 30, 2014 at 9:39 am
WOW!!! I hope your users don't mind going for lunch when they fire this thing off. You have nested cursors. Even worse is your inner cursor is recreated for every...
April 30, 2014 at 9:37 am
Jeremy Brown (4/30/2014)
I know I'm probably going to catch a lot...
April 30, 2014 at 9:27 am
eseeweb (4/30/2014)
I had to agree that the reason for this trigger doesn't make sense. It is because we have 2 system.
a) the first system can...
April 30, 2014 at 9:09 am
LoosinMaMind (4/30/2014)
Sorry for the delay in responding (meetings Urgghh!!! )
i have yet to try the suggested solutions. I will let you know how i get on.
One of you asked as...
April 30, 2014 at 9:03 am
If I understand you correctly you have an application which inserts a row into a table. Then you have a trigger on that table to copy the data that was...
April 30, 2014 at 8:03 am
SQLSteve (4/30/2014)
Sean Lange (4/29/2014)
SQLSteve (4/29/2014)
Would you put...
April 30, 2014 at 7:18 am
jeandlauro (4/30/2014)
I found a solution in Microstrategy. Thanks though.
Glad you found something that works. Can you share your solution so that maybe it will others who stumble across this...
April 30, 2014 at 7:16 am
Viewing 15 posts - 5,041 through 5,055 (of 15,381 total)