Viewing 15 posts - 46,621 through 46,635 (of 49,571 total)
Are there any jobs running regularly?
Is the DB set to autoclose?
Is the DB set to Autoshrink?
At the times things go slow, do you see any unusual blocks or waits in...
May 12, 2008 at 5:56 am
Ok, maybe this one...
SELECT depAir.Name AS departureAirportName,
dest.Name AS destination,
TotalFlights,
...
May 12, 2008 at 5:45 am
The two Stansteds are because they have different destinations. You want only 1 row per departure airport, regardless of where the flight is going?
I think the 2 rows for Gatwick...
May 12, 2008 at 5:27 am
How does this look?
SELECT depAir.Name AS departureAirportName,
dest.Name AS destination,
TotalFlights,
Offers.ARR_AIRPORT,
Offers.DEP_AIRPORT,
LowestPrice,
LowestPrice/NO_ADULTS AS Price,
Offers.DEP_DATE,
Offers.RtnDEP_DATE,
Offers.NO_ADULTS,
DATEDIFF(d, Offers.DEP_DATE, Offers.RtnDEP_DATE) AS duration
FROM cached_offers_flights Offers INNER JOIN
(SELECT DEP_AIRPORT, ARR_AIRPORT, COUNT(*) AS TotalFlights,
MIN(CAST(STANDARD_PRICE...
May 12, 2008 at 4:37 am
Once a week, reorganise an index if logical fragmentation < 30%, rebuild if fragmentation > 30%
Don't do both to the same index. It's redundant
May 12, 2008 at 4:16 am
Could you possibly post it as a create table please? I want to have a test table to try the query out on, and it's going to take too long...
May 12, 2008 at 2:43 am
That depends on why the database is suspect.
Please take a look at the SQL error log. See if you can find anyy message indicating why the DB has been marked...
May 12, 2008 at 1:58 am
magarity kerns (5/9/2008)
May 12, 2008 at 1:21 am
Checkpoint is a processes within SQL that writes all dirty data pages to disk. It's an automatic process.
May 12, 2008 at 1:18 am
Varchar(25) at minimum, or you risk losing part or all of the time.
May 12, 2008 at 1:16 am
Duplicate post:
http://www.sqlservercentral.com/Forums/Topic498211-146-1.aspx
Please don't cross post. It just wastes people's time answering questions that hav already been answered elsewhere.
May 12, 2008 at 1:01 am
It might be. Hard to say for sure. Give it a try and see.
What indexes do you have on those tables? How many rows does the query return?
Can you post...
May 12, 2008 at 12:54 am
Don't ever let an application use sa to connect. There's no way to prevent someone who knows the sa password from doing anything to the server.
Set up an user name...
May 12, 2008 at 12:50 am
Please don't cross post. It just waste people's time and fragments replies. Many people here read all the forums
No replies to this thread plese. Direct replies to the following thread
http://www.sqlservercentral.com/Forums/Topic498549-8-1.aspxthanks.
May 12, 2008 at 12:48 am
Viewing 15 posts - 46,621 through 46,635 (of 49,571 total)