Forum Replies Created

Viewing 15 posts - 32,311 through 32,325 (of 49,552 total)

  • RE: Log filling up in Simple Recovery model

    Duncan Pryde (6/22/2010)


    I'm almost completely sure that replication has never been set up on the database, and can't see any evidence that it has, but how could I check definitively?

    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: Torn page

    Is this an academic question, or do you have town pages in your DB?

    If it's an academic question, options are restore from a clean backup or run checkDB with 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: list of files

    I don't believe that SQL keeps history of file sizes. So you'll have to write something that checks and logs the files sizes every day. Once you have that, it'll...

    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 retrieve most recent records inserted in sql server 2005 db log?

    You'll need date inserted column or identity on each table. A column that shows when a row was inserted.

    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 with query performance

    Please post query, table definitions, index definitions and execution plan 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: INSERT INTO SELECT WITH ORDER BY

    shield_21 (6/22/2010)


    The result is also sorted by V1 and V2 in ascending order since that is the order when you inserted those records into @AAAATABLE..

    Order that rows were inserted...

    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 with point in time

    Then you need a full backup from before the 1 May, and log backups up to the point that you want to recover from.

    You can never restore to a point...

    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 INTO SELECT WITH ORDER BY

    nguyennd (6/22/2010)


    But in this case, my flow use insert into select with order by (K is IDENTITY). How many percent the result cannot order V1,V2?

    The order inserted is irrelevant. 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: View log cache size

    If there's lots of small transactions, the log buffer size is not going to be a contributing factor. Log records must be flushed to disk when the transaction completes, regardless...

    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: dynamic/flexible query to filter records based on combination of user input (userid, status, fromdate and uptodate)

    gorkchow (6/21/2010)


    is it ok with mssql to indicate all combinations and specify only those which are used?..

    It's fine to declare and pass parameters to sp_executesql that are never used.

    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 INTO SELECT WITH ORDER BY

    Steve Cullen (6/21/2010)


    It really doesn't matter what in order you load the table, you order it on the select out, or use a clustered index.

    There's no OR here. If you...

    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 with point in time

    If you want to restore to the 1st May, you need a backup from the 1st May. Since the DB is in simple, you need a backup from the 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: The INSERT permission was denied on the object

    By manually do you mean:

    using an insert statement across the linked server?

    using an insert connected directly to the server that contains the table?

    something else?

    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: Read only access to view all objects in a DB

    Give them view definition rights on either the object or the schema.

    GRANT VIEW DEFINITION ON schema::<schema name> TO <user>

    I think that's the syntax...

    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: Stack Dump Issues

    I think this is what you need. Not 100% sure. Long time since I tried to debug these things myself. You'll also need the public symbols for SQL, tool should...

    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 - 32,311 through 32,325 (of 49,552 total)