Viewing 11 posts - 31 through 42 (of 42 total)
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
September 3, 2002 at 2:17 pm
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,...
August 28, 2002 at 2:26 pm
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
August 26, 2002 at 11:15 am
Try this:
EXEC sp_MSforeachtable "select '?', count(*) from ?"
Be great!
Mike
August 26, 2002 at 10:59 am
Try this:
create proc sp__shrinklog
--------------------------------------------------------------------------------
-- Purpose: Shrink transaction log of the current database.
-- Author: Andrew Zanevsky, AZ Databases, Inc., 12/25/1999
-- ...
August 16, 2002 at 9:24 am
CREATE INDEX...ON <different filegroup>. Fill in the blanks for all of the indexes you want to move.
Be great!
August 15, 2002 at 11:54 am
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...
March 4, 2002 at 8:56 am
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....
December 4, 2001 at 11:44 am
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...
December 4, 2001 at 11:32 am
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?
November 1, 2001 at 11:28 am
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...
October 15, 2001 at 7:57 pm
Viewing 11 posts - 31 through 42 (of 42 total)