Viewing 15 posts - 331 through 345 (of 397 total)
Here is my test case.
select * from call
CallID ProspectID TerminationCode Uploaded
----------- ----------- --------------- --------
112 3859 a N
119 3860 a N
116 3861 a N
120 3862 a N
118 3870 a ...
February 29, 2004 at 4:41 pm
Can you post a sample with Caps which should be reserved?
February 29, 2004 at 3:52 pm
create function fn_pickup (@ProspectID int, @CustCredAct varchar(11))
returns bit
as
begin
declare @return bit
set @return = 1
if exists(
select * from call a
inner join Prospect b on a.ProspectID = b.ProspectID
where b.CustCredAct =...
February 26, 2004 at 10:33 pm
select a.ProspectID
from call a
inner join Prospect b on a.ProspectID = b.ProspectID
inner join call c on b.CustCredAct = c.CustCredAct
where a.callid = (select max(d.callid) from call d where a.ProspectID = d.ProspectID)
and exists(select...
February 26, 2004 at 9:56 pm
sp_cycle_errorlog can be used to avoid modify the errorlog.
Only if error happen a lot, you will lose history.
February 26, 2004 at 4:42 pm
Relationship does not directly affect performance.
Primary key by default will have unique index which has big impact on performance, but one can put unique index without primary key to...
February 26, 2004 at 3:29 am
Only happen when outside table column name (exists)= inside column name (not exists)
select * from from table1 where colname in (select colname from table2)
It is correct for following
select...
February 25, 2004 at 10:05 pm
According to data storage length, bigint will be faster.
February 25, 2004 at 3:19 pm
In most case, no, unless query optimizer can not use it efficiently.
Alwayse verify with execution plan.
February 25, 2004 at 3:01 pm
Use timestamp in pre-trigger is a way.
February 25, 2004 at 2:55 pm
bug fix.
create function fn_reverse (@strin varchar(4000))
returns varchar(4000)
as
begin
declare @return varchar(4000)
declare @ascii smallint, @numeric bit, @space smallint, @start smallint, @garbage varchar(30)
declare @i smallint, @j-2 smallint
select @i = 1, @start =...
February 25, 2004 at 2:46 pm
Viewing 15 posts - 331 through 345 (of 397 total)