Viewing 15 posts - 166 through 180 (of 1,048 total)
sqlfriends (8/9/2012)
I know how to add the constraint using SQL, but would like to know how to do it in SSMS GUI too.
actually there are some things you just can't...
August 9, 2012 at 11:05 am
look at alter table in BOL. The command will basically be:
alter table add constraint <name_of_contraint> UNIQUE(column [, column,...]) [clustered]
But you should double check my syntax with BOL
August 9, 2012 at 11:03 am
sqlfriends (8/9/2012)
Should the unique index PersonID+lateDate be clusted or non-clustered?Thanks
Can't really answer this question properly unless we know more about the data and the application.
Advantage of having the clustered index...
August 9, 2012 at 10:37 am
jbnv (8/9/2012)
Is there any benefit of bringing such a vision to a company that can't seem to grasp it?
Sadly, No. A lot of existing organizations have business architectures...
August 9, 2012 at 8:37 am
We do this now in our organization. We have data that is badly organized (ie poorly designed databases with complex and improperly partitioned data structures) that needs to be...
August 9, 2012 at 7:39 am
Good article. It is human nature to wait till something breaks before spending any money or time on it.
In the best case it may be a few hours of a...
August 2, 2012 at 12:31 pm
The number of rows you will be dealing with will play a big part in which way you decide to go.
Either way, my goal would be to minimize the number...
July 30, 2012 at 10:14 am
So glad you wrote this Steve I couldn't agree with you more. But as you state it does need to start top down and I really believe that too many...
July 16, 2012 at 8:48 am
benjamin.keebler (6/29/2012)
Noone wants to hear "Sorry, the Lottery is down" when there's a $100 million jackpot on the "line". 🙂
Any business with that kind of cash flow needs big...
July 5, 2012 at 7:29 am
One of the easiest ways is to use reverse.
select StringID,
Reverse(LEFT(reverse(StringField),charindex(',',reverse(StringField))-1)) as StringField
If you need more complex parsing of the column search for Jeff Moden's csv splitter articles.
June 28, 2012 at 11:16 am
GSquared (6/27/2012)
June 27, 2012 at 7:15 am
GSquared (6/26/2012)
June 26, 2012 at 2:17 pm
The LEFT() function on columns involved in your join clause can/will negate any indexes you have.
You might try using like instead and see how that works. I can replace the...
June 26, 2012 at 1:42 pm
jbnv (6/26/2012)
patrickmcginnis59 (6/26/2012)I'm pointing out that you have not addressed the free market response to a visibly bad actor. There very well could be an answer here, thats why I'm...
June 26, 2012 at 11:58 am
patrickmcginnis59 (6/26/2012)
June 26, 2012 at 11:53 am
Viewing 15 posts - 166 through 180 (of 1,048 total)