Viewing 15 posts - 481 through 495 (of 600 total)
Sorry for the thread necro, but found it interesting today that CNN had "Database Administrator" #7 on the "Best Jobs in America" list.
October 19, 2010 at 11:47 am
One way to accomplish this is to do a crosstab or Pivot on write_off_code.
I just built it in to Mark's code from above
create table test_acc (
...
October 13, 2010 at 11:23 am
How many different possible write-off amounts are there? And are they fairly static?
October 13, 2010 at 8:25 am
Hi David,
The problem seems to be that you are grouping by the write off code in the #test_payments table. This forces the query to give a separate row for...
October 12, 2010 at 2:56 pm
LutzM (10/5/2010)
Is there a question? :unsure:
Looks like he put the question in the subtitle (I missed it the first time too)
Here it is:
I want to use the values executed by...
October 5, 2010 at 6:40 am
What I don't understand is why it works when I run it the second time but not via the stored proc.
As I explained above, I think the problem is varchar...
October 4, 2010 at 12:20 pm
Actually, THIS might be the problem
EXEC sp_executesql @cmd,N'@ClientName varchar(37),
@ClientSeq int,
@Phone char(14),
@GreatPlainsID char(10),
@ClientID char(9),
@ConglomerateID varchar(9),
@ConglomerateFlag tinyint,
@License char(14),
@State char(4),
@Attrition char(1),
@ClientType char(1),
@Active tinyint',
@ClientName=@ClientName,
@ClientSeq=@ClientSeq,
@Phone=@Phone,
@GreatPlainsID=@GreatPlainsID,
@ClientID=@ClientID,
@ConglomerateID=@ConglomerateID,
@ConglomerateFlag=@ConglomerateFlag,
@License=@License,
@State=@State,
@Attrition=@Attrition,
@ClientType=@ClientType,
@Active=@Active
You convert your phone number like to a char(14), which would...
October 4, 2010 at 10:49 am
If you run the query statically does it work? In other words, if you assume knowledge of the parameters, type out the query yourself with the like statement, and...
October 4, 2010 at 10:42 am
ulteriorm (10/1/2010)
Even after considering various scenario's i was not very confident in both the queries performing the same tasks( Or maybe they are). I was replacing the logic in...
October 1, 2010 at 3:07 pm
Never understood the christmas eve gift opening.
1) Its not christmas yet
2) 'Santa' hasn't come yet
3) Give me something to play with christmas eve and good luck getting me to bed.
4)...
October 1, 2010 at 1:35 pm
Well, I've never tried it myself, so I'd probably refer to this article[/url] some guy wrote.:Whistling:
Or I'd do the running total in whatever my frontend was.
October 1, 2010 at 8:10 am
That's correct.
On the other hand, you can define multiple CTE's for use with one query.
September 30, 2010 at 3:00 pm
g33kspeak (9/30/2010)
Thanks Nevyn, I'll keep researching until I understand them better.
They threw me off at first, too.
September 30, 2010 at 12:39 pm
A CTE is more like a temporary view or a derived table than a temp table or table variable.
They are used for very different things. Temp tables are temporary...
September 30, 2010 at 12:30 pm
First and foremost, someone is going to point out to you that you probably dont need a cursor here, so it may as well be me.
Second, its tough to tell...
September 30, 2010 at 8:24 am
Viewing 15 posts - 481 through 495 (of 600 total)