Viewing 15 posts - 16,726 through 16,740 (of 18,923 total)
If you need to share data between procs, you'll have to use a temp table.
Otherwise test both versions (variable, perm) and see which is faster in that situation.
June 15, 2005 at 9:51 am
I was wondering if it was possible to see the values of the input parameters of the RPC in the trace.
June 15, 2005 at 9:30 am
I've seen this on my system... Hard too believe but sometimes the users require that (however strange that may be).
June 15, 2005 at 9:26 am
and DateContract < dateadd(D, 1, datediff(D, 0, GetDate()))
Also keep in mind that my version will allow for an seek to be made on any avalaible index for that column,...
June 15, 2005 at 9:05 am
Actually, he'l have to remove all the As DataType, use createobject instead of set and change the enumeration constants to their actual values. It's not hard to do, it's...
June 15, 2005 at 9:03 am
Yes, but I like to see it so I remember what happens if the case is false. But that's just me.
June 15, 2005 at 8:56 am
Just on a last note : bigint takes 8 bytes and handles numbers from -9 223 372 036 854 775 807 to 9 223 372 036 854 775 807. Decimal(10,?)...
June 15, 2005 at 8:51 am
Just to elaborate on David's answer. Exists returns true or false. As soon as the query would starts to return data, the exists exit.
June 15, 2005 at 8:44 am
I didn't say I wans't ok with it
.
June 15, 2005 at 8:41 am
You have to put the jpeg on a web server, or we won't be able to see it.
June 15, 2005 at 8:40 am
BTW his name is Joe Celko, enthusiast is just related to his number of posts.
Just wanna add that the the longer the string in the charindex function, the slower this...
June 15, 2005 at 8:20 am
Hence the best practice of having everything owned by dbo (or at least the same user).
Thanx for pointing that out Chris.
June 15, 2005 at 8:18 am
I'd go farther in that statement, make a function that returns the computed column. So you can reuse the logic somewhere else.
But if you want more help, I defenitly suggest...
June 15, 2005 at 8:16 am
How long would it take to modify the application?
Also why r u using decimal(10,0)?
Can't you use a bigint, or int instead? It would propabely solve the problem and also allow...
June 15, 2005 at 8:13 am
Viewing 15 posts - 16,726 through 16,740 (of 18,923 total)