Viewing 15 posts - 4,741 through 4,755 (of 5,103 total)
You Could also use a TRIGGER TO MAINTAIN Such Calculations in a denormalized way at Insert / Update time (it is not an expensive opperation 
February 19, 2004 at 10:09 am
VERY NICE !
I wish my boss would read it every time I am asked to add one and "it shouldn't take me more than a couple of seconds" comes after...
February 19, 2004 at 6:25 am
Lets assume you are running a report based on a stored procedure (WITH PARAMETERS).
1. On the REport Record Source porperty you specify the name of the sp
2. On the Input...
February 18, 2004 at 10:41 am
bellis,
in EM you will set it on the TOOLS(Menue)-->Options-->Advanced(Tab)-->query time-out in seconds:
February 18, 2004 at 8:00 am
check the posts in this thread it will give you what you need
February 17, 2004 at 10:09 am
This is a job that should be done at FRONT-END
but:
just as an example ...
CREATE FUNCTION dbo.udf_AllSections(@sPostID varchar(10), @iPartID int)
RETURNS varchar(8000)
BEGIN
DECLARE @Sections varchar(8000)
SELECT @Sections = ISNULL(@Sections + ',',@sPostID + ',' +...
February 17, 2004 at 10:04 am
Why do you need a different ID?
(An update of the Fields wound't DO?)
in any case...
Insert into TblName...
February 17, 2004 at 9:32 am
I am NOT taking credit for this script, SOMEONE ELSE WROTE IT and I believe it may help you:
(It has some LENGTH Limitations but can get you started)
February 17, 2004 at 6:57 am
can you rewrite the statement as
select *
from SBT..SBT s
where s.NatchainCd = 86
and
(case when isnumeric(ISAControlNbr)=1) THEN
case when Convert(int,ISAControlNbr) = 404 then1 else 0 end
else 0...
February 17, 2004 at 6:27 am
Chris,
I am not saying that there is anything wrong with the optimizer I just thought that the way things were explained before my previous post were looking at the wrong...
February 16, 2004 at 4:12 pm
Sorry for the bad news but AFAIK
script them out, drop ,COPY DATA, recreate!
February 16, 2004 at 3:59 pm
NOT ALL numbers can be EXACTLY REPRESENTED in the FLOAT format and you may get errors if you try to compare floats to integers.
The safest bet if to use the...
February 16, 2004 at 3:51 pm
OK,
I tried your query with Ramdom test data and it works on my system!
can you check your query plan?
February 16, 2004 at 3:35 pm
THE CLAUSE
COUNT(CASE
WHEN i.c1 <= d.c1 THEN 1
ELSE NULL
END)
RETURNS an INTEGER number
If you use these you are returning an integer number
= (COUNT(*)+1)/2 -- integer
if you do
= (COUNT(*)+1)/2.0 -- float
it will...
February 16, 2004 at 3:26 pm
Do you have a Clustered index on the datetime column? how many rows are in the table? are you sure is THAT Column the reason for the scan?
February 16, 2004 at 3:18 pm
Viewing 15 posts - 4,741 through 4,755 (of 5,103 total)