Viewing 15 posts - 13,621 through 13,635 (of 14,953 total)
The simplest solution would be to build the CreditsApplied table and use that. Is that possible?
May 20, 2008 at 11:59 am
Add "declare @Err int" to the first proc, then change "exec sp_2" to "exec @err = sp_2".
Try that, and see if it does what you need.
May 20, 2008 at 11:56 am
Matt Miller (5/20/2008)
GSquared (5/20/2008)
Jan Van der Eecken (5/20/2008)
May 20, 2008 at 11:08 am
I have to ask if you really need to use PatIndex for this. Do you? Wouldn't a join with Like do what you need?
select
contact_id,
contact_firstname, count(*) as...
May 20, 2008 at 10:53 am
Try it and load-test it. See if it does what you want.
May 20, 2008 at 10:45 am
Piotr Rodak (5/20/2008)
Yes Jeff I agree, but there are only 12 moths in an average year. 😉Piotr
How many years is it being run over and does the query ever...
May 20, 2008 at 8:38 am
I've found using NullIf on the denominator works for many of these cases. Instead of a div-0 error, you get a null result.
select 1/0
Gives div-0 error.
select 1/nullif(0,0)
Gives null result.
It...
May 20, 2008 at 8:33 am
I'm not sure why this was set up as a poll. If what you're trying to do is get advice on how to fix this error, I'd rewrite the...
May 20, 2008 at 8:26 am
There would be a table lock while it's being renamed, if not a lock on the whole database. That means every time you want to run the rename, you're...
May 20, 2008 at 8:14 am
Now that is interesting! Functionally, the table has no purpose except to run that trigger. No data can ever be added to it. What an odd way...
May 20, 2008 at 8:10 am
I'd use two separate tables, and a switch to tell the proc which one to look in. (And this should be a case of a master proc that calls...
May 20, 2008 at 8:05 am
Someone probably told him that. You'd be amazed what people will start to make up to fill in the gaps in their knowledge.
May 20, 2008 at 8:02 am
pduplessis (5/20/2008)
With the OR statement, you will inadvertently end up writing more letters, but the net effect should remain the same.
Same reads, same amount of scans,...
May 20, 2008 at 7:11 am
Jan Van der Eecken (5/20/2008)
May 20, 2008 at 7:01 am
The answer to both of those questions is you can do them whenever, in whatever sequence.
May 20, 2008 at 6:57 am
Viewing 15 posts - 13,621 through 13,635 (of 14,953 total)