Viewing 15 posts - 16 through 30 (of 54 total)
Your first question has different answers depending on what role you are in - developers and dba would love SQL Server to be running with low CPU, budget holders would...
October 19, 2006 at 3:37 am
I've never tried exactly what you're after, so my solution is a bit round-a-bout, there's probably a better SQL Agent solution. However, can you set a flag on a table...
October 19, 2006 at 3:15 am
Hi TK,
Yes, as I said, even for exactly the same databases, differences in the data in those identical tables can lead to different query plans. You said that one database...
October 18, 2006 at 5:39 am
Both query plans are correct! The query plan takes into account the distribution of data within the table(s) used in a query, so the amount of data and also the...
October 18, 2006 at 2:35 am
If you're using anything above the workgroup edition, you can use SSIS (DTS as was) to transfer databases. Otherwise backup/restore works well. You'll have to change you connection strings in...
October 17, 2006 at 3:52 am
The SqlClient classes will perform better against a SQL Server database than the more generic OleDb ones. They're generally a direct replament; you can pretty much do a global search...
October 17, 2006 at 3:46 am
I'd expect there to be some benefit, but impossible to know without checking the execution plans for both versions, i.e. with AcctManager in the key and without. I'd remove AcctManager...
October 16, 2006 at 5:08 am
There will be a unique index on the AccountData table containing the AcctNo and AcctManager fields. If the AcctNo field comes first in the index, it won't be optimal for...
October 16, 2006 at 4:53 am
If you didn't want to go down the XML route, instead of having twenty (or however many) generalized fields on one table, which may or may not be used for any...
October 16, 2006 at 4:40 am
I had no problems doing exactly that with SQL2K5. When you're creating the configuration databases, just select the appropriate database server. When running reports, you have full control over which...
October 16, 2006 at 4:29 am
Can you post the script (or at least the relevant bits of it)? Are you running on SQL2K or SQL2K5?
October 13, 2006 at 4:07 am
If the user is only ever one of staff, manager, admin etc , case statements or something like a single employee type id would be the best solutions. If the...
October 13, 2006 at 3:54 am
DECLARE @SpreadSelect as int
SELECT @SpreadSelect = 0
SELECT AcctNo
FROM _FinalFlat
WHERE (@SpreadSelect = 0 AND SpreadFile in (1, 9))
OR (@SpreadSelect <> 0 AND SpreadFile in (2,0))
I'd check the execution plan to see whether my or...
October 13, 2006 at 3:20 am
You're misrepresenting the facts slightly there. There's a difference between 'not supported' and 'never got the whole framework going', and an even bigger difference to 'You cannot take full advantage...
October 13, 2006 at 3:04 am
You could try rebuilding the indexes on the affected tables - your stats could be wrong and misleading the query optimizer. You could also try re-writing the query to use...
October 9, 2006 at 2:07 am
Viewing 15 posts - 16 through 30 (of 54 total)