Forum Replies Created

Viewing 11 posts - 31 through 42 (of 42 total)

  • RE: Find Duplicates Query

    Assuming a key:

    SELECT count(*), <column(s) that make the key>

    FROM <table>

    GROUP BY <column(s) that make the key>

    HAVING count(*) > 1

    Be great!

    Mike

  • RE: Looking for DBA Checklist

    We have a spreadsheet housing the requisite information per each server. Here is a list of things we 'keep track of.' Not really referenced by the seasoned folks,...

  • RE: Rows in Table

    If you want to put the results into a table:

    CREATD TABLE testt(

    tab varchar(125),

    cnt int)

    GO

    INSERT INTO testt

    EXEC sp_MSforeachtable "select '?', count(*) from ?"

    GO

    Be great!

    Mike

  • RE: Rows in Table

    Try this:

    EXEC sp_MSforeachtable "select '?', count(*) from ?"

    Be great!

    Mike

  • RE: How to Decrease database/log size in SQL7.0/SQ2K

    Try this:

    create proc sp__shrinklog

    --------------------------------------------------------------------------------

    -- Purpose: Shrink transaction log of the current database.

    -- Author: Andrew Zanevsky, AZ Databases, Inc., 12/25/1999

    -- ...

  • RE: Move of indexes

    CREATE INDEX...ON <different filegroup>. Fill in the blanks for all of the indexes you want to move.

    Be great!

  • RE: SQL Mail Resources

    Great collection of resources! Any chance of putting out an "all encompassing" list of resources for various issues? The rest of us could suggest a link or 2...

  • RE: What Is Syncobj ???

    We have had to rebuild replication so many times. That would seem logical.

    Thanks for the insight.

    P.S. We "discovered" this while running a query for a CAST product....

  • RE: What Is Syncobj ???

    Yes it is a user database.

    SELECT name FROM sysobjects WHERE type = 'V' ORDER BY name

    That would make sense, sort of, if replication is creating those. This database is...

  • RE: Another Book Question

    Unless I am missing something, the FatBrain link lists you as a co-author. However, the US Amazon site does not list you. Is this the same book?

  • RE: ScriptType Value?

    Perfect! Sorry for the abbreviated code. My full script has the values with comments. I used the numeric values because that is what I found in an...

Viewing 11 posts - 31 through 42 (of 42 total)