Forum Replies Created

Viewing 15 posts - 796 through 810 (of 1,048 total)

  • RE: Why Developers Make Mistakes when working with Database Tech

    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...

    The probability of survival is inversely proportional to the angle of arrival.

  • RE: Is bulk insert possible between 2 db's without using files on filesystem?

    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...

    The probability of survival is inversely proportional to the angle of arrival.

  • RE: help needed in code tuning.

    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...

    The probability of survival is inversely proportional to the angle of arrival.

  • RE: JOIN ON clause - declaring a default criteria

    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,...

    The probability of survival is inversely proportional to the angle of arrival.

  • RE: JOIN ON clause - declaring a default criteria

    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 =...

    The probability of survival is inversely proportional to the angle of arrival.

  • RE: Want to add MAX function to query

    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 ...

    The probability of survival is inversely proportional to the angle of arrival.

  • RE: Please Help me improve this SPROC!!! It runs too slow!

    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...

    The probability of survival is inversely proportional to the angle of arrival.

  • RE: Data importing from Notepad to sql server 2008

    When importing, a new line sequence means a new row. Try stripping the new lines out of any individual columns in your file.

    The probability of survival is inversely proportional to the angle of arrival.

  • RE: Single DELETE statement show high reads

    Any foreign keys referencing the table will result in extra reads before the delete.

    The probability of survival is inversely proportional to the angle of arrival.

  • RE: Can not use Windows Authenticaion for SQL 2008

    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.

    The probability of survival is inversely proportional to the angle of arrival.

  • RE: The multi-part identifier could not be bound - works in query not in function

    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...

    The probability of survival is inversely proportional to the angle of arrival.

  • RE: Creating a Flag within a Stored procedure

    Anything is possible.

    The probability of survival is inversely proportional to the angle of arrival.

  • RE: CrossTab or Pivot

    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...

    The probability of survival is inversely proportional to the angle of arrival.

  • RE: "Simple" HardWare advise

    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,...

    The probability of survival is inversely proportional to the angle of arrival.

  • RE: "Simple" HardWare advise

    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...

    The probability of survival is inversely proportional to the angle of arrival.

Viewing 15 posts - 796 through 810 (of 1,048 total)