Forum Replies Created

Viewing 15 posts - 8,506 through 8,520 (of 49,552 total)

  • RE: Changing server name - all procs, views, functions, etc

    krypto69 (7/8/2014)


    Our procs typically have the 'USE [DATABASE NAME]. So they will no longer work.

    How does a procedure have a USE statement inside it?

    CREATE PROCEDURE Test

    AS

    USE master

    SELECT * FROM...

    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: Are the posted questions getting worse?

    The Dixie Flatline (7/8/2014)


    I abandoned any thoughts of playing it when I realized I already have a job.

    🙁 EVE hasn't taken over my life. Not entirely anyway. 🙂

    But I...

    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: Changing server name - all procs, views, functions, etc

    Why do you need to rename your objects? Do you have a naming standard that requires the server name to be part of table or procedure names?

    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: Are the posted questions getting worse?

    The Dixie Flatline (7/8/2014)


    GilaMonster (7/7/2014)


    EVE Online

    That's one of his more comprehensible posts.

    Wolfkill needs to know if there are tanks in EVE Online, as well as bombers.

    Tanks are very important. ...

    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: Transaction Log auto-growth

    Object explorer. Right click the DB, select the Files tab. Yes, it is advisable to change it if badly set.

    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: database data file disappeared

    Basically, buffer pool. SQL caches data in memory and works off that. It won't go to disk unless what it needs is not in the buffer pool.

    You got lucky. If...

    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: Strange behaviour

    The function CallbackService_ufn_GetCallerData throws an error?

    What's the definition of the function?

    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: Trying to parameterise code executed by sp_executesql

    You can't parameterise table or column names. You'll have to build up the string with those values in (and beware SQL injection vulnerabilities)

    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: Strange behaviour

    Fail as in throw an error? Fail as in give incorrect results? Fail as in the server self-destructs?

    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: "sys.dm_db_index_usage_stats" has missing information

    As far as i know sys.dm_db_index_usage_stats should have one record per table and index

    No. It has one row for each index which has been used since SQL last started. If...

    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: DATA SPILL

    Not really much you can do other than remove the need to sort entirely, and that may not be acceptable. Sort needs a lot of workspace memory so it tends...

    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: DATA SPILL

    What operator?

    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: How to encrypt and check a login password.

    From the Stack Overflow link:

    Remember that the salt should be cryptographically random so I would not recommend using NewId(). Instead, I would generate that using something like .NET's RNGCryptoServiceProvider class.

    Email...

    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: Mysterious start up trace

    C2 audit enabled?

    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: Parallelism, cxpacket, working threads....

    Giova (7/7/2014)


    I'll try to rise the parallelism threshold but I have hundreds of queries with incredible costs ( more or less, 50/60 have a cost between 10.000 and 15.000). 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

Viewing 15 posts - 8,506 through 8,520 (of 49,552 total)