Viewing 15 posts - 10,261 through 10,275 (of 18,926 total)
I'm sure we can figure something out. What is it you need to do exactly?
January 19, 2007 at 8:01 am
Make a primary key with an autonumber column.
Then add a calculated field to show the formated invoice number :
Formula = RIGHT("000000" + CSTR(PK), 7)
This allows for 9 999 999...
January 19, 2007 at 7:10 am
Doesn't matter at all... even if he had 10 duplicates per key the update should still work :
DECLARE @A Table (PK INT NOT NULL, Col INT NOT NULL)
INSERT INTO...
January 19, 2007 at 7:07 am
I wouldn't expect it to be anything else. You can't be that blind can ya
.
January 18, 2007 at 3:46 pm
Is there a trigger on that table?
Or a DDL trigger?
January 18, 2007 at 2:45 pm
Someone must frame this one and keep it posted on a board somewhere... That's just too good ![]()
.
Here...
January 18, 2007 at 2:19 pm
Got anything more usefull to offer Collin?
January 18, 2007 at 5:33 am
This should get you started
'ALTER DATABASE [' + @Dbname+ '] MODIFY FILE (NAME = [' + @LogLogicalName + '], SIZE = ' + CONVERT(VARCHAR(20), @NewLOGSize) + 'MB)'
You get the Logical...
January 17, 2007 at 11:23 am
And for the final blow : Which one executes the fastest??
January 17, 2007 at 9:40 am
Simple. No end user is using this so performance is not absolutely required in this case.
Here 10 seconds and I'm done.
I might also remind you that almost no DBA will try...
January 17, 2007 at 7:19 am
I really like the second idea, but then again you still could have more tables than the number you taught you'd need... so you'd really be screwed on that one.
Ex...
January 16, 2007 at 2:39 pm
I can already answer this one for you. I had been using that method for a while untill I saw the exponential part in the execution plan. So that's when...
January 16, 2007 at 8:31 am
Viewing 15 posts - 10,261 through 10,275 (of 18,926 total)