Viewing 15 posts - 76 through 90 (of 335 total)
OK, maybe I'm being stupid, but I cannot see why you have all those UNIONS:
You are getting MIN TimeSheetDate and TimeSheetDate is done as a 7 different date adds of 0-6...
November 18, 2005 at 2:22 pm
To do things like this, I wrote a utility proc that will quickly numerically sub-sequence within a sort order. i.e.
key1, subkey1, 0
key1, subkeyB, 0
key1, subkeyX, 0
key2, subkeyF,...
November 16, 2005 at 2:16 pm
if it is stored as hex then just convert it:
select convert( varchar(3) , 0x653D0A )
But there are probably a half a dozen UDFs in the script archives on this site...
November 16, 2005 at 1:42 pm
Oh, come on! Maybe he's just curious how us old fogeys used to do things in the old days when computers were still coal powered and there were no such...
November 16, 2005 at 1:07 pm
Well, other than pinning, making sure indexes are appropriate, query hints, or identifying how the parameters maybe used differently, the only other option is making your own cross reference (index).
That...
November 16, 2005 at 12:40 pm
I've used the hotbits website for grabbing random numbers and loading them into tables for use with the various simulations I need. (Random numbers generated from radioactive decay.)
November 16, 2005 at 12:26 pm
So, if you choose to use a cursor, why are you not doing it in TSQL (i.e. in a stored proc)? If you are using Access and some Access/client side...
November 16, 2005 at 12:21 pm
Sounds to me like a management issue. Whether incompetence or corruption of the DBA/Admin, it's ultimately the responsibility of management above him. As for laws protecting you, it would be...
November 9, 2005 at 1:49 pm
one more thing on the delimited searching using charindex:
wrap the compare words in delimiters:
restricted word list Err_no
|DROP| 1
|DELETE| 2
...
and once you've done the replace on the search string it might look...
November 9, 2005 at 1:37 pm
First thing I look for when a query is taking too long is a live lock condition: is your SPID blocked by another?
Then I deal with performance issues. Yes you...
November 9, 2005 at 1:17 pm
Simple answer: They are, 99% of the time, used, written, designed, and implemented incorrectly, improperly, etc.
Or put another way, they are the frequent path/tool of those not properly designing an application.
I hate them...
November 9, 2005 at 1:12 pm
I hate triggers... almost as much as cursors.
But you can set the date column = convert( varchar(20), getdate(), 13)
November 8, 2005 at 4:22 pm
This may not help, but in the past I have written applications that needed to compress the files stored in blobs. I had the client do it using ZIP (the...
November 8, 2005 at 3:11 pm
First off, there's probably a few ways already addressed on this site of how to limit injection attacks more simply. Do a search for "injection".
Secondly, if you have your...
November 8, 2005 at 3:06 pm
Viewing 15 posts - 76 through 90 (of 335 total)