Viewing 15 posts - 2,671 through 2,685 (of 3,608 total)
Loosely speaking an INNER join requires there to be a matching record in both tables within the join.
If the codes in your main table always exist in your lookup table...
June 1, 2005 at 1:44 am
Table scans means that your proc has to trawl through the physical table rather than use indices. There are situations where it Table Scans are unavoidable but in general...
May 31, 2005 at 4:20 pm
Plato said it first. Words to the affect of when people think alike then very little is thought.
I think phrases like "you achieve more with honey than you do...
May 31, 2005 at 4:14 pm
I tried the following on an NTEXT column
SET NOCOUNT ON
DECLARE @sPattern VARCHAR(50), @lValue TinyInt ,@lPos Int
SET @lValue=127
WHILE @lValue0
SELECT @lValue , @lPos, char(@lValue)
SET @lValue=@lvalue+1
END
WHEN I did SELECT SUBSTRING(Trace5,,1) I...
May 31, 2005 at 9:47 am
I would tend to stick with the built in DATETIME/SMALLDATETIME data types.
If you must use SMALLINT for times then I don't see the problem with parsing it.
For CHAR(4) your programmers...
May 31, 2005 at 2:00 am
In terms of internal file space I've found that deleting records from an indexed table does not automatically reclaim space.
Running a DBCC DBREINDEX does that, similarly dropping and recreating indexes...
May 31, 2005 at 1:52 am
As you pointed out the sysindexes script only works if the index statistics are kept up-to-date. I think your best bet would be to keep them up-to-date and use...
May 27, 2005 at 9:42 am
If you look at the processors tab of the server property have a look at the Parellism settings.
Does it have "use all available processors" checked?
What is the setting for "minimum...
May 27, 2005 at 8:52 am
The beatings will continue until morale improves!
The problem with such corporate eugenics is that when encouraging survival of the fittest no-one has the wit to ask "fittest at what"? ...
May 26, 2005 at 2:03 pm
DECLARE @sDBName SysName
SET @sDBName=''
WHILE @sDBName IS NOT NULL
BEGIN
SELECT @sDBName = MIN(Name)
FROMMaster.dbo.sysdatabases
WHEREName>@sDBName
AND Name NOT IN ('Master','Model','MSDB','TEMPDB','DISTRIBUTION')
AND DATABASEPROPERTY(Name,'IsTruncLog')=0
IF @sDBName IS NOT NULL
exec sp_dboption @sDBName,'trunc. log on chkpt.',true
END
May 26, 2005 at 8:27 am
I've just tested this against a 50,000 record table with record length 4468 and a none unique varchar column that is part of a compound index.
In both cases the execution...
May 26, 2005 at 2:34 am
This recent article http://www.sqlservercentral.com/columnists/jBulinckx/indexedviewswithouterjoins.asp showed how to do outer joins with and indexed view.
If you replace your SELECT * statement with explicit column names do you get any improvement in...
May 26, 2005 at 1:57 am
If you watch the locks using Enterprise Manager while your program is running do you seen anything significant?
Are the long running inserts being blocked by the shorter ones?
Does your logging...
May 24, 2005 at 1:35 am
I would be extremely suprised to find that Windows defrag and Diskeeper were the same product.
No-one would willingly buy a product that was as bad as Windows defrag.
May 24, 2005 at 1:11 am
I think the problem is that as you gain seniority you get promoted and assigned to lead teams without anyone giving any advice or training on how to go about...
May 23, 2005 at 2:12 pm
Viewing 15 posts - 2,671 through 2,685 (of 3,608 total)