Forum Replies Created

Viewing 15 posts - 2,191 through 2,205 (of 7,429 total)

  • RE: Database-Complete (EM) - Does this Truncate the T-log???

    Not sure how it does it but I don't see anything different under Profiler with or without it on, but I only have one Test BD with a LogFile not...

  • RE: Generate object scripts

    No, most of it is done using DMO there are examples to do bits and pieces via both DMO and TSQL around here but I have not seen anything to...

  • RE: Two different Execution plans on Identical Servers?

    Yes but you shouldn't need

    SET STATISTICS PROFILE ON

    just 

    SET SHOWPLAN_TEXT ON

  • RE: Auto-creating tables when creating database

    Most likely they created the tables in Model. As all db's built are modeled after model then they of course inherit these tables in their design. Check there and they...

  • RE: Date range in query removes outer joins?

    SELECT 

     I.subGroupID,

     I.indicatorID,

     T.taskID,

     SG.subGroupName,

     I.indicatorDescription,

     I.indicatorDescription2,

     I.dataOwner,

     I.dataSource,

     I.dataLocation,

     T.dataValue,

     T.dataVintage,

     T.lastUpdatedDate

    FROM

     SubGroup SG

    LEFT JOIN

     Indicator I

    ON

     SG.subGroupID = I.subGroupID

    LEFT JOIN

     Task T

    ON

     T.indicatorID = I.indicatorID AND

     ((T.dataVintage BETWEEN @filterdate AND @todate) OR T.dataVintage is null) AND

     (T.eventID =...

  • RE: Jobs still run, even when DISABLED

    When viewed in EM after refreshing the job list does it show NO in the enabled column?

  • RE: Two different Execution plans on Identical Servers?

    That's weird, your dev execution plan show all table scans and production shows all index seeks. Are you sure these are named correctly? I have neevr heard of a table...

  • RE: Delete Large records 20 million rows!!! FAST

    You could try

    DECLARE @x INT

    SET @x = 1

    SET ROWCOUNT 1000

    WHILE @x > 0

    BEGIN

     BEGIN TRAN

     

     --DELETE STATEMENT HERE

     SET @x = @@rowcount

     COMMIT TRAN

    END 

    However with such a large dataset to remove it will still...

  • RE: Two different Execution plans on Identical Servers?

    Please do not use DBCC DROPCLEANBUFFERS on production as hat will clear the bennifits of all other preran processes and server starts from zero on this.

    Instead make sure that you...

  • RE: Jobs still run, even when DISABLED

    If you cannot find aything as stated above then use Profiler to monitor who or what may be triggering the jobs. I have never had a job execute after disabling...

  • RE: Identity Fields

    Depending on record size you might want to consider using a temp table for these to ensure less likely to run into especially if the data isn't very large.

    As for...

  • RE: Query Problem

    Consider you are doing distinct on you output so by themselves

    AccountNumber,

    originalBilledAmount,

    tbl_PerformedProcedure.PatientPrimaryKey

    You get 3252 but when you add in

    PhysicianID,

    cptcode

    You will of course have more potentials for differences should accoutn for that.

    If...

  • RE: Server Hangs

    Create a black box trace as noted here:

    From SQL BOL

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

    Reporting Errors to Your Primary Support Provider

    If you are unable to resolve a problem, contact your primary support provider for assistance....

  • RE: Help with Constraint

    Create a composite index that contains both ProductName and CatID and using EM set to Unique Constraint.

    Or SQL Syntax

    ALTER TABLE dbo.tblName ADD CONSTRAINT

     IX_tblName UNIQUE NONCLUSTERED

     (

     ProductName,

     CatID

    &nbsp

Viewing 15 posts - 2,191 through 2,205 (of 7,429 total)