Viewing 7 posts - 1 through 8 (of 8 total)
try this
SELECT TOP 5 OBJECT_NAME(id),ROWS FROM sysindexes ORDER BY [ROWS] desc
January 31, 2007 at 6:31 am
its may be because ur table and record count may be big ,
try to index ur table with the column which u use for distint clause
January 30, 2007 at 9:32 pm
pls check ur log file sometimes the log file may be heavy
if so truncate the same
January 29, 2007 at 9:41 pm
u hav to clear ur log file
by using
BACKUP LOG DbName WITH TRUNCATE_ONLY
DBCC SHRINKDATABASE (DbName,0)
January 29, 2007 at 9:28 pm
without using shrinkfile
u can use shrinkdatabase that is a better option
like
BACKUP LOG DbName WITH TRUNCATE_ONLY
DBCC SHRINKDATABASE (DbName,0)
January 29, 2007 at 9:26 pm
Try this
CREATE FUNCTION TEST_1 (@SDate DateTime,@EDate DateTime)
RETURNS TABLE
AS
RETURN (SELECT price
FROM X
WHERE Convert(Varchar(12),StartDate,112) BetWeen Convert(Varchar(12),@SDate,112)
And Convert(Varchar(12),@EDate,112)
August 14, 2006 at 8:58 am
Try to do this as follows
Exec(' select p.sa_property_id, z.zipcode as sa_site_zip, z.state as sa_site_state, z.city as sa_site_city, z.county as sa_site_county,'''+@dbname +''','''+@@servername +''' as servername, county'''+@countyname+
August 14, 2006 at 8:45 am
Viewing 7 posts - 1 through 8 (of 8 total)