Viewing 15 posts - 3,046 through 3,060 (of 5,393 total)
You can use LEFT after casting to a character data type if that makes you feel better. Dividing by 100 does the exact same thing.
-- Gianluca Sartori
June 28, 2011 at 4:39 am
Carlton Leach (6/28/2011)
...
Maybe I'm overly sensitive, but I don't like this kind of comment.
Care to rephrase?
-- Gianluca Sartori
June 28, 2011 at 4:34 am
6473839 / 100 = 64738
-- Gianluca Sartori
June 28, 2011 at 4:21 am
Another vote for no difference.
I can't think of a scenario where access paths would be different.
An internals expert such as Paul White would probably expand the answer with implementation details.
-- Gianluca Sartori
June 28, 2011 at 4:09 am
I'm sure that there's a lot of good resources to learn CDC on the Internet. Have you tried googling that?
If you have specific questions you can come back any time...
-- Gianluca Sartori
June 28, 2011 at 3:55 am
Your requirement is bait confusing.
Can you post table script, sample data and expected output?
If in doubt, you can check out the article linked in my signature line.
-- Gianluca Sartori
June 28, 2011 at 3:49 am
For character columns you can use LEFT function, and for numeric columns you can use / 100.
Is this what you mean?
-- Gianluca Sartori
June 28, 2011 at 3:46 am
If you really need an identity column and you simply want it to start from a value other than 1, you can set it up as
IDENTITY [ ( seed ,...
-- Gianluca Sartori
June 28, 2011 at 2:04 am
Duplicate post.
Replies here please:
http://www.sqlservercentral.com/Forums/FindPost1132630.aspx
-- Gianluca Sartori
June 28, 2011 at 1:59 am
Duplicate post.
Replies here please:
http://www.sqlservercentral.com/Forums/FindPost1132630.aspx
-- Gianluca Sartori
June 28, 2011 at 1:58 am
My vote goes to the first method. It saves you from re-creating every depending object on the table (indexes, keys, defaults, constraints etc...)
-- Gianluca Sartori
June 28, 2011 at 1:48 am
This is a good SQLAgent replacement for Express edition:
http://sqlclockwork.smartbase.pl/
Hope this helps.
Gianluca
-- Gianluca Sartori
June 28, 2011 at 1:37 am
No performance gain. On the contrary, I think it could end up being a bit slower that way.
Whan I don't have a particular reason, I go for the single trigger.
-- Gianluca Sartori
June 28, 2011 at 1:34 am
Uhmm... I'm finding more and more references that describe query plans as re-entrant.
Also Grant in "SQL Server 2008 Query Performance Tuning Distilled" says so.
I'm a bit confused.
-- Gianluca Sartori
June 28, 2011 at 1:25 am
Steve, thanks for the good question. As usual, I got it wrong. 😛
Let me ask one question: this page on MSDN states that:
Server execution plans have the following main...
-- Gianluca Sartori
June 28, 2011 at 1:17 am
Viewing 15 posts - 3,046 through 3,060 (of 5,393 total)