Viewing 15 posts - 106 through 120 (of 440 total)
Interesting article, though I would have appreciated a bit more information to see the while picture, most importantly the external fragmentation of indexes, but also the internal fragmentation. Information about...
April 20, 2012 at 2:49 am
Pseudocode:
declare @var datatype;
select @var = function(@param) -- for scalar
select @var = col from schema.function(@param) -- for table valued
For table valued functions, note that @var will contain the first value returned...
April 13, 2012 at 2:20 pm
First of all, I don't think this article is comprehensive enough, and as pointed out, it does not explain when to use (or not use) sequences. I've seen test showing...
April 13, 2012 at 2:55 am
Seems like the only solution would be to create an additional layer, as a web service or a .NET CLR proc, unless someone has a bright idea.
April 4, 2012 at 2:40 am
Looks very much like homework, yes. So, what about give it at try yourself, and then post your attempt to solve it?
April 1, 2012 at 1:18 pm
Are you sure you that these columns are compressed? I would rather guess that the data is encrypted. If so, you could ask the developers for the encryption key, but...
April 1, 2012 at 1:16 pm
The issue here is not the round, but the money data type. According to BOL, the money data type is precise to four decimal places. Unfortunately, this is only true...
March 30, 2012 at 5:40 am
Interresting solution, I had not thought of that approach, and getting rid of the cast makes it slightly faster.
March 28, 2012 at 1:02 am
Good to help. Inline Table Valued functions are underestimated in my opinion. I try to write most (or all) table valued functions inline, and I tend to convert some scalar...
March 27, 2012 at 3:51 am
You could try to make it an inline table valued function, and use cross apply against this function, but I don't know whether it would help in this case.
March 27, 2012 at 2:49 am
CELKO (3/26/2012)
March 27, 2012 at 2:44 am
GilaMonster (3/26/2012)
March 27, 2012 at 12:31 am
One possible solution:
declare
@dt datetime;
select @dt = cast(cast(getdate() as date) as datetime)+cast(datepart(hour,getdate()) as float)/24
select @dt
Replace the two occurences of getdate() with your column...
March 27, 2012 at 12:26 am
Personally, I find a cast more clean code, I have not done any performance testing though to see if it is performing any differently than dateadd/datediff:
declare
@dt...
March 27, 2012 at 12:22 am
Max key length for an index is 900 bytes, so a varchar(1200) should not be used as an index key. You could consider crating a hash of it, and use...
March 26, 2012 at 3:24 pm
Viewing 15 posts - 106 through 120 (of 440 total)