Viewing 15 posts - 2,401 through 2,415 (of 5,504 total)
Dave Ballantyne (12/15/2010)
...Just the same old datatype issues 😉 forcing to a decimal type by adding '.00' corrects the issue
-- code removed (too much technical stuff in THE THREAD)
So you're...
December 15, 2010 at 3:33 pm
CELKO (12/15/2010)
ISO-11179 is big and hard to read. That is why I put it into English in my SQL PROGRAMMING STYLE book. The DoD and Feds are hot for it...
December 15, 2010 at 2:11 pm
Thank you Lowell for the sample data.
I'm constantly requesting the OP to provide the data to verify that
a) the OP is willing to be actively involved in the solution finding...
December 15, 2010 at 1:51 pm
Lynn Pettis (12/15/2010)
Now I may be wrong, but...
December 15, 2010 at 12:53 pm
What is the primary key of that table?
Why do you have a SUM column in there when the values is supected to change based on user input?
Also, it seems like...
December 15, 2010 at 12:42 pm
select REPLACE(phone,'-','') as phone_formatted
from affiliate
December 15, 2010 at 12:32 pm
Regarding the money data type:
Here's an interesting example I just found here
-- code removed (too much technical stuff in THE THREAD)
Another interesting article can be found here at SSC
December 15, 2010 at 12:28 pm
I think you can use UNPIVOT to get your table in a normalized form (using integer values for the former column names). Based on that you'd simply use a SUM()...
December 15, 2010 at 12:21 pm
Did you alter the nonclustered index like I recommended earlier?
December 15, 2010 at 12:14 pm
bkuhnke (12/15/2010)
Was there a huge time difference in fetching the rows either with the local static or...
December 15, 2010 at 11:33 am
So you have a database in full recovery mode but no backups?
What is the backup strategy you use? If you never performed any backup (including transaction log) you must have...
December 15, 2010 at 11:16 am
I just tested two versions on my SQL2008R2 EXPRESS version:
DECLARE @CustNum AS INT
DECLARE myCrsr CURSOR LOCAL STATIC
FOR
SELECT number
FROM master..spt_values
WHERE TYPE='P' AND number <20
OPEN myCrsr
FETCH NEXT FROM myCrsr INTO @CustNum
WHILE...
December 15, 2010 at 10:21 am
billj-705548 (12/15/2010)
December 15, 2010 at 9:57 am
So I'll stop asking to replace the RBAR then 😉
Did you try to declare the cursors as STATIC or FAST_FORWARD like I mentionend earlier?
December 15, 2010 at 7:58 am
Paul White NZ (12/15/2010)
LutzM (12/15/2010)
What would it help in Craigs scenario to lock the door, dim the light and ignore the ringing bell? :unsure: 😀
The last thing Craig needs right...
December 15, 2010 at 2:26 am
Viewing 15 posts - 2,401 through 2,415 (of 5,504 total)