Forum Replies Created

Viewing 15 posts - 39,946 through 39,960 (of 49,552 total)

  • RE: Reference 'Deleted' table: Dynamic SQL

    Look up sp_executesql. It allows passing of parameters to and from dynamic SQL.

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: after rebuilt is fragmentation higher then before

    radek (4/6/2009)


    BTW: Of course I know, if I have small table that it is not good to create index.. but i dont know that 20000 rows is too small 🙂

    No,...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: after rebuilt is fragmentation higher then before

    Krishna Potlakayala (4/6/2009)


    In your script you should also include something like i think it is if the number of pages >2000 then you should consider rebuilding or defragging them.

    1000, and...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Join

    I would suggest that you cast both columns to numeric before joining. That way trailing zeros will be completely ignored. This, of course, assumes that all values in the column...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Challenging SQL interview questions

    Ramesh (4/6/2009)


    Now, if I would have posted that question in SSC and I would be very un-happy:crazy: if I receive a response such as "No interview questions".

    If you had asked...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Difference between Outer Join and Left Outer Join

    waqarlaghari (4/6/2009)


    In quries it uses both words "Left Outer Join" and "Outer Join". So i was confused.

    In SQL Server it's not possible to have just OUTER JOIN specified. Doing...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: after rebuilt is fragmentation higher then before

    Small indexes often don't rebuild properly. It's nothing to worry about, fragmentation isn't an issue on such small indexes.

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: after rebuilt is fragmentation higher then before

    How big's the index? How many pages?

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: HIGH CPU activity last 4 days!!!

    2cams (4/6/2009)


    *********UPDATE**********

    I restored the Distribution DB DANKIE TOG!!!!!

    Dis 'n plesier.

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: error of sintax

    Lowell (4/6/2009)


    well the reason for the error is one of the columns in an integer; you have to explicitly convert an integer to varchar when you are creating a string...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Resolving Deadlocking problems

    Dean Jones (4/6/2009)


    With regards to [Using low transaction isolation levels]

    How can this be doen with Delete and Updates, i thought it was mainly reads.

    Read uncommitted is only for selects (and...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: error of sintax

    select 'insert into exportacao_diferenca values ('+CAST(codctb AS VARCHAR(10))+','''+nifctb+''')' from TABELA_AUXILIAR_COMPARACAO

    May I ask what you're trying to achieve here? There are easier ways to insert the values from one table into...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: HIGH CPU activity last 4 days!!!

    2cams (4/6/2009)


    JUST ANOTHER PROBLEM. The IT guy @ our datacenter removed the drive that had the log file on it of the distibution database. I can't remove it now. So...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: HIGH CPU activity last 4 days!!!

    2cams (4/6/2009)


    JUST AN UPDATE ...

    I create a NEW TRACE FILE when the server was idling @ 100% activity :hehe:

    Ran the tuning advisor and it recomended 2 non clustered indexes. It...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Problem in transfering data from log file to table

    Please don't cross post. It just wastes peoples time and fragments replies.

    No replies to this thread please. Direct replies to: http://www.sqlservercentral.com/Forums/Topic690756-148-1.aspx

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass

Viewing 15 posts - 39,946 through 39,960 (of 49,552 total)