Viewing 15 posts - 796 through 810 (of 1,048 total)
For one thing indexes on SQL server do not get 'degenerated'. They can suffer from excessive fragmentation or even just plain worthlessness.
Since indexes in SQl server are implemented as...
August 23, 2010 at 12:36 pm
The fastest way without using bulk insert is to drop any indexes/foreign keys in the destination tables then use insert select from source tables directly. Re create the indexes anf...
August 23, 2010 at 11:12 am
Consider that the posters who ask these "homework" or exam questions on here desire to be the DBA experts of tomorrow. Having someone else do you homework is not going...
August 20, 2010 at 9:22 am
I would tend to think so. The only other way I can think of off hand is to do two JOINS to the table to check for each case like:
SELECT
T.cat,
T.subcat,
isnull(X.code,...
August 20, 2010 at 8:53 am
See if this works for you:
SELECT
T.cat,
T.subcat,
isnull(X.code, case when X.cat is NULL then NULL else DEFAULT end) as code
FROM @test-2 AS T
LEFT JOIN @conversion AS X
ON T.cat = X.cat
AND T.subcat =...
August 19, 2010 at 3:00 pm
I am not 100% sure what you are trying to do but I'll take a stab as saying I think you mean to do this:
JOIN InventTrans ...
August 19, 2010 at 2:29 pm
One other piece of advice: Columns that should always contain data should not be NULLable. Reseve NULL columns only for those that may legitimately have no value.
You will learn to...
August 18, 2010 at 1:47 pm
When importing, a new line sequence means a new row. Try stripping the new lines out of any individual columns in your file.
August 18, 2010 at 8:51 am
Any foreign keys referencing the table will result in extra reads before the delete.
August 17, 2010 at 1:57 pm
2008 does away with the built in local administrators group. Being a domain admin no longer gives you automatic access to SQl Server as in earlier versions.
August 17, 2010 at 1:46 pm
The query is joining tables from different servers. Somehow the context between the different threads of the query is not available when executed as a function (remember that some of...
August 12, 2010 at 9:09 am
I think that if you changed this:
SELECT [CP Code],
SUM(CASE WHEN StartDate = '2010-06-27' THEN TotalPageviews ELSE 0 END) AS [2010-06-27],
SUM(CASE WHEN StartDate = '2010-07-04' THEN TotalPageviews ELSE 0 END) AS...
August 5, 2010 at 12:08 pm
The only way you could come up with precise numbers is to do some simulations and/or benchmarking. Having said that, the methodology will produce results better than a guess,...
August 5, 2010 at 9:14 am
If you are asking for a specific reference I don't have one off the top of my head head, I'm sure they are out there.
What I do is gather the...
August 5, 2010 at 8:37 am
Viewing 15 posts - 796 through 810 (of 1,048 total)