Viewing 15 posts - 13,171 through 13,185 (of 18,923 total)
What's the size of the columns that you ommitted in the 2nd select?
September 16, 2005 at 8:10 am
Is this a production server?
Are you testing directly from the server's pc (so that the network is not a factor)?
Are you sure you have 2 different views (doesn't show on...
September 16, 2005 at 7:34 am
Check both execution plan. The answer is most likely there. Maybe you move from an index scan + bookmark lookup to a clustered index scan somewhere and that...
September 16, 2005 at 7:16 am
In case you meant the owner of the db >>
select name, suser_sname(sid) as owner, convert(nvarchar(11), crdate) as CrDate from master.dbo.sysdatabases
September 16, 2005 at 6:59 am
Select name, user_name(uid) as Owner from dbo.SysObjects order by name
September 16, 2005 at 6:55 am
You need to have a case statement per column >>
, case when Payday is not null then AltValue else 0 end as totPaid
, case when WRcurrentStatus = 110 then AltValue...
September 16, 2005 at 6:51 am
Send the new records to a staging table. Then insert the new records that are not duplicates.
September 16, 2005 at 6:32 am
Can you show me your current statement and the expected results vs the current results?
September 15, 2005 at 5:55 pm
One more reason to not use sp in triggers
.
September 15, 2005 at 5:51 pm
Simple trick >> Where BitColum = CAST(0 AS BIT)
but they usually make poor index because of selectivity
.
September 15, 2005 at 5:49 pm
Select O.Name, MAX(I.rowcnt) AS rowcnt from dbo.SysObjects O inner join dbo.SysIndexes I on O.id = I.id where I.indid = 100 order by O.name
Please note that this is an approximate row...
September 15, 2005 at 3:01 pm
Viewing 15 posts - 13,171 through 13,185 (of 18,923 total)