Viewing 15 posts - 976 through 990 (of 1,473 total)
ifila (12/5/2008)
What i need to do is manage the records in unique order based on the temp field which equals 'field1+field2+field3'
Would i need to...
December 5, 2008 at 10:51 am
That works. However, in the large SP, the logic goes:
Create Temp Table
...
Insert into Temp Table
Update a bunch of fields in the temp table for various reasons
...
Alter Temp Table if...
December 5, 2008 at 10:31 am
GilaMonster (12/5/2008)
Garadin (12/5/2008)
RESULT:Server: Msg 207, Level 16, State 1, Procedure Seth_ACTest, Line 13
Invalid column name 'B'.
No clue why it works in one and not the other.
I ran your...
December 5, 2008 at 10:23 am
My curiosity aside, the dynamic SQL alter statement may work for you baumgaertner, as it is only having issues on a 2000 server, and I'm assuming you're using 2005.
December 5, 2008 at 10:21 am
Indeed, I can run it fine on 2K8 as well, our production server is still 2K though, and it fails there.
The other procedure is running fine on the...
December 5, 2008 at 10:18 am
It's a datatype issue. This is why it's best to give all the information you can the first time, as I'd have warned you about this. You need...
December 5, 2008 at 10:08 am
This is in one of the SP's that I wrote quite a while back, and it works fine.
...
CREATE TABLE #temp_final_results (
... -- A whole bunch of fields, but...
December 5, 2008 at 10:03 am
No problem Stu, glad we could help.
December 5, 2008 at 9:39 am
Joe,
Once again... Please refer to the link in my signature for how to provide proper sample data. You'll get better and faster answers to your questions if you do...
December 5, 2008 at 9:37 am
You mean something like?
SELECT A, B, A + B, A + ', ' + B
FROM Something
December 5, 2008 at 9:33 am
Just saw the end part about wanting the EOD. This EOD friday seems a bit sloppy and could likely be improved upon.
[font="Courier New"]SET DATEFIRST 1
SELECT
DATEADD(wk, DATEDIFF(wk,0,GETDATE()), 0)...
December 5, 2008 at 9:31 am
Just had to do one of these this morning actually.
SET DATEFIRST 1
SELECT DATEADD(wk, DATEDIFF(wk,0,GETDATE()), 0) Monday,
DATEADD(wk, DATEDIFF(wk,0,GETDATE()), 0)+4 Friday
December 5, 2008 at 9:23 am
sisernhagen,
Note that Peso's solution won't work if you're using SQL 2000.
December 5, 2008 at 6:08 am
fausto usme (12/4/2008)
I'll prefer in database because the data come already. what do you thing about???
From a simplicity standpoint... it *might* be easier to have the database send it to...
December 4, 2008 at 12:53 pm
Viewing 15 posts - 976 through 990 (of 1,473 total)