Forum Replies Created

Viewing 15 posts - 18,586 through 18,600 (of 49,552 total)

  • RE: Secondary File data storage

    What filegroup(s) are those files in?

    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: Unable to open the physical file trying to attach AdvntrWrks2008 DB

    Thomas Stringer (5/9/2012)


    GilaMonster (5/9/2012)


    When you open SSMS, Run As Administrator.

    Why would it be running under the security context of SSMS?

    It's not. The attach itself runs under the 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: Table-based Functions vs. Views

    http://stackoverflow.com/questions/2554333/multi-statement-table-valued-function-vs-inline-table-valued-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: Table-based Functions vs. Views

    Putts (5/9/2012)


    SELECT *

    FROM

    dbo.getEmployees E

    WHERE dbo.isIdealEmployee(E.EmployeeID) = 1

    Function in where clause means that's likely to table scan every time, regardless of 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: Table-based Functions vs. Views

    Putts (5/9/2012)


    If we didn't have any of the functions calling any of the other functions, would the performance still take a hit?

    If they are multi-statement table valued functions, quite likely...

    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: Unable to open the physical file trying to attach AdvntrWrks2008 DB

    When you open SSMS, Run As Administrator.

    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: Table-based Functions vs. Views

    Putts (5/9/2012)


    In summation, what problems/deficiencies might I be introducing by changing these Views over to Table-based Functions as the Back End Source for my class constructors?

    Performance.

    I recall Grant telling me...

    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: restore failed

    No real solution other than adding space. When restoring a database, there must always be enough space for the files.

    p.s. Why did the log get to 14GB in the first...

    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: Rebuild Index of very large tables in SQL Server 2005/2008

    http://ola.hallengren.com/Versions.html

    http://sqlfool.com/2011/06/index-defrag-script-v4-1/

    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: insert statement with variable for column name

    And before you use consider dynamic SQL, please read up on SQL Injection and make sure that you are fully familiar with what it is and how to defend against...

    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: what does 'type' in syscolumns correspond to ?

    Jan Van der Eecken (5/9/2012)


    GilaMonster (5/9/2012)


    Rather don't use the information schema either, unless you need code that's compatible across database platforms...

    Why are you saying that, Gail?

    Because they only show the...

    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: Cannot specify partition number in the alter index statement as the index is not partitioned

    If the table is partitioned, there will be multiple rows for that table in sys.partitions with different partition numbers. But unless you've explicitly partitioned the table, it won't be partitioned....

    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: what does 'type' in syscolumns correspond to ?

    Rather don't use the information schema either, unless you need code that's compatible across database platforms.

    Query sys.columns and sys.types for the type information for a query. Books Online has more...

    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: cant get backup on drive C:\

    The desktop is not C:\.

    The desktop is a folder C:\Users\<logged in user>\Desktop. So that's where you need to write the backup, and you need to ensure that the SQL Server...

    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: cant get backup on drive C:\

    Windows has some restrictions about files in the root of a drive, especially C drive. Rather create a folder and write the backup into that. Make sure that the 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

Viewing 15 posts - 18,586 through 18,600 (of 49,552 total)