Forum Replies Created

Viewing 15 posts - 42,526 through 42,540 (of 49,571 total)

  • RE: how to count the number of tables in a database

    Select count(*) from sys.tables

  • RE: Performance optimization of UNIOn

    Please don't type in all caps. It's the online equivalent of shouting at someone.

    From what I can see from the exec plan, you have no indexes at all on a...

  • RE: SQL Server has encountered 1 occurrence(s) of IO ????

    Yup, that's fine.

    Were you trying to grow the data file when those messages appeared?

  • RE: Performance optimization of UNIOn

    mohd.imtiaz (12/8/2008)


    EACH GROUPING HAS DIFFERENT COLUMN IN IT

    No need to shout.

    Since there's no way that the resultsets can overlap (there's a literal string that's different in each one), use UNION...

  • RE: SQL Server has encountered 1 occurrence(s) of IO ????

    My guess is that you have autogrow enabled, one of more files grew and completely overloaded the IO system.

    Either set smaller autogrow increments or (preferably) monitor the free space in...

  • RE: Performance optimization of UNIOn

    Maybe I'm missing something, but the two queries unioned look the same.

    Why do you need to union 24 results sets? There may be a better way.

  • RE: Optimum Backup Strategy

    leonp (12/7/2008)


    but I also want to understand where Jeff and Gail were going with their queries before I draw any conclusions

    What I'm trying to get at is whether the...

  • RE: Optimum Backup Strategy

    leonp (12/7/2008)


    I guess point-in-time recovery doesn't mean a lot to our users for this DB.

    Have you asked them?

    I can't tell you what the best backup type is. Only...

  • RE: Error Log Updates

    Means either the SQL service is restarting every night, or there's a job that's cycling the error log (sp_cycleerrorlog)

    Check the beginning of the new error log, either you'll see SQL's...

  • RE: Improve SQL Query Performance

    debjani.bedajana (12/7/2008)


    Gail,

    And I can run the execution plan in SQL 2000 query analyzer. But it is not letting me save it.

    Please post in the correct forum in the future. If...

  • RE: Optimum Backup Strategy

    The question you should ask yourself in this situation is the following.

    "If the DB fails 10 hours after the last full/diff backup, is the loss of all changes made in...

  • RE: Using temp tables to break up complex queries

    There's very little difference, as far as the query optimiser's concerned, between a join condition and a where clause predicate.

  • RE: Transaction Logs

    2) Restore all log backups up to the point of the corruption. Use the same STOPAT and NORECOVERY options on each one.

    3) Immediately perform a full backup of the database...

  • RE: Using temp tables to break up complex queries

    sqlguy (12/6/2008)


    Grant Fritchey (12/6/2008)


    You mentioned that there are some types of joins that could prevent index usage. Can you give me an example of this?

    CAST(Table1.Col1 AS INT) = CAST(Table2.Col1...

  • RE: Use Table Column Contents As Where Clause

    Derek (12/6/2008)


    Could it be possible in the FROM?

    No. Same problem as in the where. Join conditions must be conditions, not statements.

    Just trying to parse that query shows that it won't...

Viewing 15 posts - 42,526 through 42,540 (of 49,571 total)