Forum Replies Created

Viewing 15 posts - 31 through 45 (of 45 total)

  • RE: Determine who/what caused large tempdb growth

    Thanks for replying, and the monitoring queries as well.

    As our "production" system is typically fairly low-use, I don't typically spend much time checking tempdb, and hadn't had any noticeable issues...

  • RE: Database modifications reported in Error or other log?

    Thanks for replying; my supervisor and I were mostly concerned with the "who and why" with the sudden data growth, then later settling back to normal levels...as we didn't get...

  • RE: Stored Procedure execution with parameters

    Thanks, Lynn, the syntax you suggested works. I seem to have confused how the parameters were defined / used. I've not used this dynamic method before, only EXECUTE('CREATE VIEW ...'),...

  • RE: Stored Procedure execution with parameters

    Thanks...I've been able to use sp_executesql to execute SELECT, INSERT, etc., but NOT execute a procedure. Maybe it's not possible because of the parameter scope.

    I appreciate the response, though.

    ~ Jeff

  • RE: Stored Procedure execution with parameters

    I added this:

    SET @SQLParms = N'@SQLParm1 INT,@SQLParm2 VARCHAR(10),@SQLParm3 DATETIME';

    Still get the same error.

  • RE: Stored Procedure execution with parameters

    I checked out the MSDN article on that setting; it certainly looks promising for our current environment.

    Checking on raw numbers from our plan cache, grouping by distinct usecounts:

    Total plans: ...

  • RE: Creating code objects within a single script

    Sounds good...the "original" script was easy...the objects were all simple, so easy to make dynamic (just enclose in single quotes and EXECUTE...many more now, and with hard-coded XML elements, one...

  • RE: Creating code objects within a single script

    Thanks for replying...in actuality, we don't really have an "application"...our commercial (proprietary) software stores data within hierarchical files, which our customers cannot easily report from; a while back, a process...

  • RE: Creating code objects within a single script

    Thanks for replying...it gives me more options to consider.

    ~ Jeff

  • RE: Creating code objects within a single script

    Thanks for the reply and the ideas. Unfortunately, we have limitations in many areas that I didn't include, but that your response has revealed.

    -- We support SQL Server versions from...

  • RE: Check for existence of a single value for all rows in a column

    Hope this works for you; generated using Generate Scripts feature:

    CREATE TABLE [dbo].[MisIcg_InteractionChecks](

    [SourceID] [varchar](3) NOT NULL,

    [MisIcgID] [varchar](30) NOT NULL,

    [InteractionID] [varchar](25) NOT NULL,

    [RowUpdateDateTime] [datetime] NULL,

    [InteractionCheckMedication] [varchar](2) NULL,

    [InteractionCheckComponent] [varchar](2) NULL,

    [InteractionCheckIntravenous] [varchar](2) NULL,

    [InteractionCheckSeverity] [varchar](38)...

  • RE: Check for existence of a single value for all rows in a column

    Thanks for your quick responses.

    A quick overview: I need to create a daily report (for our 1000's of customers) that shows the values of various settings within our software. One...

  • RE: Execution Plan Reuse

    Here's a few rows in their entirety:

    exec mt_amstas47 'AMS','78350438','19','4086','0','20121114 08:33','U'

    exec mt_amstas47 'AMS','78350438','18','4198','0','20121114 08:33','U'

    exec mt_amstas47 'AMS','78350438','22','16','0','20121114 08:33','U'

    (There are over 32K rows just calling this one sp; there are hundreds of these...

  • RE: Execution Plan Reuse

    Thanks for responding..perhaps one more question. I'm curious what the query is returning, then: I've got several thousand of these "EXEC mt_" rows returned that differ only by the value(s)...

  • RE: Execution Plan Reuse

    Sorry if I was too cryptic/concise...

    1) Here's the query I run to check exec plan reuse:

    SELECT ECP.usecounts,ECP.refcounts,ECP.cacheobjtype,ECP.objtype,EST.[text]

    FROM

    sys.dm_exec_cached_plans AS ECP

    CROSS APPLY

    sys.dm_exec_sql_text(ECP.plan_handle) AS EST

    ORDER BY

    ECP.usecounts DESC,EST.[text]

    ;

    One row of output:

    usecounts ...

Viewing 15 posts - 31 through 45 (of 45 total)