Forum Replies Created

Viewing 15 posts - 21,211 through 21,225 (of 49,552 total)

  • RE: trc to xls

    Query the trace from SQL (fn_trace_gettable) then export as a .csv

    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: [Column] LIKE 'VALUE%' indexing?!

    There's still a question? Thought from your comment you were happy.

    Want anything useful? Post actual execution plans and queries and table designs. (p.s. you have huge tables, don't expect instant...

    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: Log space question

    If you do you'll have to rebuild all your indexes afterwards (and that's not trivial on a huge DB). Try a shrink with truncate_only first, see if that has enough...

    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?

    Roy Ernest (1/9/2012)


    I see lots of comments regarding post counts... Does everybody have a target?

    No, no targets here (though I'll take a screenshot of max_smallint when that happens)

    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: Log space question

    You're probably OK unless you're dropping thousands of tables or really, really, really huge ones. Table drops just log the deallocation of pages (and the required modifications to the system...

    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: Searching across multiple fields within a table?

    syscolumns is deprecated (has been since 2005) and should not be used in new development. Use sys.columns.

    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: [Column] LIKE 'VALUE%' indexing?!

    While that's listed as a seek (for the like), it's almost a full table scan. The predicate is Keyword > '-', which every single entry starting with A..Z, a..z, 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: sql connections

    No, you're not going to find database servers exposed and free on the internet.

    If you want to play, you can install SQL Express on your local machine, it's free, but...

    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: [Column] LIKE 'VALUE%' indexing?!

    Please post table definitions, index definitions and execution plans of both of those queries, as per http://www.sqlservercentral.com/articles/SQLServerCentral/66909/

    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: Searching across multiple fields within a table?

    Here you go. Very simple use of UNPIVOT.

    SELECT Date ,

    Person

    FROM ( SELECT date ,

    ...

    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: Searching across multiple fields within a table?

    Unpivot switches the table around so that the column names become values, then you can filter.

    If you need example code, then I need table definitions (create table...) and sample data...

    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: Searching across multiple fields within a table?

    You're looking for the UNPIVOT keyword, then a filter on the unpivoted results. Books Online has details on the unpivot syntax (it can be a little tricky)

    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 a server in general and SQL server?

    If you open up Book Online (the SQL help file) there's a lot of info on the hardware requirements. If you have no idea where to start (as it sounds),...

    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 regain the Data after deleting if rollback doesnt work

    SameerKKhan (1/9/2012)


    thanks.but i dont have the backup....and the transaction is committed,....In this scenario is there a possibility of getting the data back????

    Pretty much, no.

    You could spend $1000+ on a...

    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 regain the Data after deleting if rollback doesnt work

    Rollback will only work if you started an explicit transaction before the delete, and that transaction has not yet committed.

    To get the data back, get your latest database backup,...

    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 - 21,211 through 21,225 (of 49,552 total)