Viewing 15 posts - 226 through 240 (of 596 total)
Must you use CONTAINSTABLE (because you need the rank), or can you use Contains() like this:
SELECT a.*
FROM tlogdata a
WHERE Contains(message_data, ' "search" ')
Also, how many rows do you get when...
May 3, 2006 at 8:08 am
Can you post your query? Are you using a CONTAINS() clause by itself, or with other conditions? If other columns are involved, you may need to create additional indexes on...
May 3, 2006 at 5:48 am
I think a previous poster meant:
replace
AND
(convert(numeric(5,2),
convert(float, lbd.total_training_seconds) /
convert(float, tit.tit_wfm)) >= .80)
with
AND CASE tit.tit_wfm
WHEN 0 THEN 0 -- to include, or 1 to exclude
ELSE...
May 2, 2006 at 8:48 am
In Simple recovery mode, the LOGICAL log is truncated regularly whenever a checkpoint is executed. The physical log file is NOT shrunk. So if a very large transaction runs, causing...
May 2, 2006 at 8:12 am
Yes..you're correct. It always helps to read the problem carefully!
May 1, 2006 at 8:13 am
Maybe this will help:
ALTER TABLE MyTable DISABLE TRIGGER ALL
-- do you update here
ALTER TABLE MyTable ENABLE TRIGGER ALL
May 1, 2006 at 7:09 am
Something along these lines might work:
SELECT Tours.tourID
, Tours.tourDate
, Tours.tourStatus
, Tours.tourDestination
, Tours.tourDuration
, Tours.tourPrice
, tourDetailsCat.tourDetCatName
FROM TourDetails
INNER JOIN Tours ON TourDetails.fk_tourID =...
April 28, 2006 at 8:12 am
You have a design problem. How is the ticketNumber row inserted? If you need to update a column after an insert, you may need to wrap it in a transaction. It looks...
April 27, 2006 at 7:41 am
How about this (assuming a case-insensative collation):
select *
from daysoftheweek
where CharIndex(day, 'i was born on Friday in may') > 0
or, if case-sensative
select *
from daysoftheweek
where CharIndex(Lower(day), Lower('i was born on...
April 25, 2006 at 6:27 am
You could try using PreviewPage.MoveFirst after the first loop to reset the pointer back to the beginning of the file.
Another method is to use a bookmark (particulary useful...
April 25, 2006 at 5:54 am
Try this:
SELECT 'Vendor: '+ vendor + '/n '
+ 'Check number: ' + [check] + '/n '
+ 'Amount: $' + CONVERT(varchar(15), amount, 1) + '/n '
...
April 21, 2006 at 8:16 am
"It's obvious that author just used not the same DATEFIRST settings on his server as you."
Actually, the date was specified as '2002-02-29', which is invalid no...
April 16, 2006 at 5:28 am
If you use SELECT Convert(varchar(8), GetDate(), 112), which returns the date in YYYYMMDD format, you avoid any locality issues.
However, in my tests, SELECT CAST(FLOOR(CAST(@x AS FLOAT)) AS DATETIME) runs almost...
April 13, 2006 at 7:00 am
Are you sure mat.[material__code] is of type varchar and that it doesn't contain trailing blanks? You might have to trim mat.[material__code] before appending the '%':
SELECT item.[search description], mat.[material__code]
FROM [Item] item INNER...
April 13, 2006 at 6:39 am
It must be a data issue, such as:
1. The Calendar table doesn't include today's date
2. The JOIN alone doesn't return any data, in which case the Calendar table once again...
April 13, 2006 at 5:53 am
Viewing 15 posts - 226 through 240 (of 596 total)