Viewing 15 posts - 4,411 through 4,425 (of 5,103 total)
AKM,
What the poster said was NOT what the numbers example was showing. I followed the numbers example and the post should have been the difference between the FIRST date of...
July 27, 2004 at 11:42 am
Aaron I suggested that because of the fact that you mentioned that no index was present on the searched column. Usually after statistics are updated if the column is selective...
July 27, 2004 at 11:34 am
AAron Run UPDATE STATISTICS with fullscan on your Production BOX
Run the queries and let me know
July 26, 2004 at 6:53 pm
Am I missing something here?
what is wrong with this:
Update o Set mynbr = datediff(d,(select min(mydate) from testt t where t.empid = o.Empid ),o.mydate)
from...
July 26, 2004 at 6:35 pm
Yep That's Right "Message 1" immediately, then "Message 2" five seconds later.
Are you using QA with Results in Text ? if not, try it!
HTH
July 26, 2004 at 3:37 pm
The message is pretty clear TEXT VARIABLES ARE NOT ALLOWED as local variables types
All you could use is temptables with text columns
HTH
July 26, 2004 at 2:45 pm
That works as expected on my system
How are you testing it ? QA, VB ...
July 26, 2004 at 2:35 pm
dbcc showcontig( TableName  with TABLERESULTS
and look at MaximumRecordSize
July 26, 2004 at 2:26 pm
There is no right answer to that. You have to know your data. Except on some trivial situations your best bet is to check the execution plan, CPU Utilization, Indexes...
July 22, 2004 at 12:14 pm
statements like this :
SELECT @ReturnValue = @@ROWCOUNT
IF (@@Error <> 0)
will ALWAYS exectute the else part of the IF because is just checking the previous statement instead of the DML
the correct way...
July 22, 2004 at 12:02 pm
I would add and extra answer
B.1 BOTH (Data Administrator AND Database Administrator)
Usually Data Administrator is more Familiar with Company Related Standards and the...
July 19, 2004 at 3:38 pm
Update T
Set profile_id = T2.profile_id
from
Table T
join
(select distinct con_id
, profile_id
, site_session_id
From
Table
where Profile_id <> 0) T2
on T.con_id =T2.con_id and T.site_session_id =T2.site_session_id
where T.event_type <> 27 and...
July 16, 2004 at 10:16 pm
I would suggest using a computed column IOF trigger
It is all matter of the application. Everything has pros and cons. Some times for production systems you might have to...
July 15, 2004 at 2:49 pm
That should be Client side Responsibility.
Just my opinion
July 15, 2004 at 2:27 pm
create table Table1(
K1 varchar(10),
K2 BIT default 0)
go
create trigger tr_Table1 on Table1 after insert
as
begin
Update T Set K2 = 1
From Table1 T join inserted i on i.K1 = T.K1
where Left(i.K1,1)...
July 15, 2004 at 10:01 am
Viewing 15 posts - 4,411 through 4,425 (of 5,103 total)