Viewing 15 posts - 421 through 435 (of 920 total)
How about
cast(round(float_num,2) as numeric(20,2))
August 18, 2010 at 2:07 pm
So, if you're going to filter this by criteria other than just period, what are you going to use. That may have a large impact on the index you...
August 18, 2010 at 2:02 pm
Redefining NULL on a whim? You can't redefine something that doesn't have a good definition to start with. N/A, unknown, not yet entered, incomplete, etc. can all be...
August 18, 2010 at 9:23 am
Yep, that pretty well sums it up. I've been reading Hugh Darwen for a couple of days and working through Tutorial D and the Rel implementation. 6th normal...
August 17, 2010 at 9:23 pm
WOW, over my head on the first post. OK, I'll just grab the popcorn and sit back and absorb.
Carry on.
August 17, 2010 at 4:46 pm
The indexing advice will certainly improve the performance of the query. Many of us have inherited similar structures and I've found that it's usually worth the effort, in the...
August 17, 2010 at 4:29 pm
The period column is a datetime datatype and your argument is a varchar. This might be better:
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_NULLS ON
GO
-- =============================================
-- Author: <Author,,Name>
-- ALTER date: <ALTER...
August 17, 2010 at 12:45 pm
If you have to use a case statement, then this is what you're going for, I think:
UPDATE dbo.tbl_Cpay
SET Cpay_Stop = CASE WHEN Cpay_Stop IS NULL
THEN CONVERT(DATETIME, '1900-01-01 00:00:00', 102) ELSE...
August 11, 2010 at 1:25 pm
You still have a problem with both the select and update statements.
This statement:
SELECT @Cpay_Stop = Cpay_Stop
FROM dbo.tbl_Cpay;
will select every row in the table because there is no 'where'...
August 11, 2010 at 10:37 am
Just to add to the confusion, this works the way I think you want:
select b from a order by cast(b as varbinary)
but I don't have a good explanation as to...
August 10, 2010 at 5:17 pm
1- The row gets added to the table and is physically placed based on whether the table is a heap or has a clustered index. How it gets retrieved...
August 10, 2010 at 4:38 pm
And no other SQL shows up on that spid? Just that sp execution and the DBCCs it spawns? Can you see the processes running on the SQL Server...
August 10, 2010 at 1:41 pm
I've never seen this, either. Does a profiler trace show any other interesting SQL being issued by that spid? Is there a cross-server join goin on?
August 10, 2010 at 12:09 pm
Is there a trigger on the table? If so, can you post the code for the trigger and any table it references?
August 6, 2010 at 3:54 pm
You said you checked the script durations. Did you do that with sql profiler or was that taken from some application log? Is the log set to autogrow?...
August 6, 2010 at 3:40 pm
Viewing 15 posts - 421 through 435 (of 920 total)