Viewing 15 posts - 931 through 945 (of 1,347 total)
You'll need to post the DDL of the tables & indexes. It's just guesswork without that.
September 29, 2005 at 9:41 am
select object_name(id), max(colid)
from syscomments
group by object_name(id)
having max(colid) > 4
No rows returned.
*shrug*
Code was posted just for concept. Obviously to make it completely bulletproof for any environment you'd add enough joins up...
September 28, 2005 at 2:03 pm
I think you're making things more difficult than they need to be. Use SQL server and left joins to get all the parts, then concatenate on the client. The C#...
September 28, 2005 at 1:43 pm
The index on FiscYrMo is NON-clustered.
Fiscal Year/Month by itself is a bad candidate for a NON-clustered index - over 4.7 million rows, it is nowhere near *selective* enough...
September 28, 2005 at 1:18 pm
>>I have three unclustered indexes set at 100% fill factor.
Do you have a clustered index ?
September 20, 2005 at 3:12 pm
What column would you be partitioning on ? How have you determined that it's even necessary to partition ?
September 14, 2005 at 9:06 am
Or, to avoid replicating the expression (which is a potential cause of code maintenance issues down the road), use a derived table ...
SELECT prodweekend, fn_somefunction(prodweekend) as calccolumn
FROM
(
SELECT [Due Date]...
September 13, 2005 at 9:22 am
How about a composite 2 column key, your varchar plus an int identity ?
September 12, 2005 at 3:16 pm
Just select the objects in EM and generate a SQL script, setting the options to script keys & indexes.
A table of 2+ million rows being scanned is definitely not desirable....
September 9, 2005 at 3:46 pm
Probably best to post the DDL of all tables/views involved.
What size is the loginlog table ? It has a clustered index scan which migth be costly depending on its...
September 9, 2005 at 3:25 pm
Re-write as an EXISTS, rather than IN sub-query:
UPDATE #branch_users
SET greenlight = 1
FROM #branch_users As B
WHERE EXISTS (
SELECT *
FROM appian.dbo.users USERS
JOIN dealerinfo.dbo.v_DealerBranches DB ON DB.dlrcode = USERS.dlrcode
JOIN...
September 9, 2005 at 1:47 pm
Look carefully at the constraints.
ON DELETE CASCADE.
A *parent* question ID is being deleted. Which may delete more than 1 record from vts_tbQuestion. Which will cascade and delete multiple records from...
September 8, 2005 at 10:21 am
Can you post the table DDL and a small sample set of data that causes the problem ?
I can't explain it, but IMO, it helps maintenance-wise to use NOT EXISTS...
June 15, 2005 at 4:19 pm
>>Just a question. Woudn't (Select 1 From GenNum where So = @Seroff) would be more efficient?
To elaborate more - you can always spot the old Sybase T-SQL developers,...
June 15, 2005 at 3:30 pm
Did you "DBCC DropCleanBuffers" before each test so that you are comparing apples to apples ?
Did the 1st import (without index) require the database to auto-grow ?
Did you drop &...
June 9, 2005 at 3:45 pm
Viewing 15 posts - 931 through 945 (of 1,347 total)