Viewing 15 posts - 2,536 through 2,550 (of 5,103 total)
Just a little warning:
The registry keys for named instances are different than for the default ![]()
November 4, 2005 at 2:23 pm
I think this is what you want:
declare @startdate smalldatetime, @lookahead int
select @startDate = '20051001', @lookAhead = 3
-- select @startDate = '20051004', @lookAhead = 4
select m.trade_date
, m.ticker
, IsNull(t1.qty, 0)...
November 4, 2005 at 2:15 pm
and as it was mentioned Don't forget to create an index on the computed column or the benefits will be marginal ![]()
November 4, 2005 at 12:32 pm
my favorite method to achieve this is:
dbcc showcontig with tableresults, no_infomsgs
Look at the "ROWS" column where indid = 1
November 4, 2005 at 12:26 pm
Sure!
There are many websites that for security reasons perform remaping of the urls depending to what pages you want to access and those modules are usually plugged in as http...
October 28, 2005 at 3:13 pm
Just a warning: url parsing can be a tricky business specially in shops that use url remapping ![]()
October 28, 2005 at 3:02 pm
if the table has only one column and you don't have any other indication unles the table is very very small as of this moment you can't tell what was...
October 28, 2005 at 2:58 pm
First things first:
1. Functions force row-by-row processing (use them sparingly)
2. Make sure you have indexes in place that are being used by your where clauses, joins, group bys and order...
October 28, 2005 at 2:52 pm
Not exactly sure what the logic is but here is what I believe you are trying to accomplish:
CREATE TRIGGER dupcontcirc ON lecturer_email_during
FOR INSERT
AS
if exists(SELECT * FROM
INSERTED i join...
October 27, 2005 at 8:36 am
ex:
declare @minDate datetime, @maxDate datetime
select @mindate = '20030101', @maxDate ='20051020'
select Y, M, CategoryName, Coalesce(V.Cnt, 0) TheCount
from
(select Month(dateadd(m, number, @mindate)) as M
, Year(dateadd(m, number, @mindate)) as Y
from master..spt_values
where type...
October 26, 2005 at 4:06 pm
Just guess why you were getting slower results I would bet that in the composite PK 'sdate' was not the First column. ORDER matters
October 26, 2005 at 11:29 am
Not only this is a convertion issue you must also keep in mind that datetime is sql server has a limited resolution of 3ms, integers do not suffer from that
Cheers,
October 26, 2005 at 10:32 am
Viewing 15 posts - 2,536 through 2,550 (of 5,103 total)