Forum Replies Created

Viewing 15 posts - 8,281 through 8,295 (of 9,643 total)

  • RE: Database mail

    When setting up a database mail profile you only setup 1 account as the FROM account. I think what you want is to set up an Operator to email...

  • RE: Using SQL Profiler to analyse performance

    Grant,

    Good question. I found the chapter of the book on MSDN on-line and here is the paragraph:

    "The file provider is designed with a guarantee that no event data...

  • RE: Multiple Reports for a list of Parameters

    That is what the multivalued parameter is for. You need 2 datasets in your report. Dataset 1 will return a list of employee names and ids and dataset...

  • RE: Stored Procedure Review

    david.sims (7/23/2008)


    I am pretty sure that this is not working correctly as I executed it and it kept going for ten minutes. Meanwhile it generated 10 million lines of...

  • RE: Using SQL Profiler to analyse performance

    Grant Fritchey (7/23/2008)


    Just a point of detail... You can overflow the buffer even when capturing to file. It just takes a heck of lot more to do that since writing...

  • RE: Multiple Reports for a list of Parameters

    Are you using SSRS 2000 or 2005? In 2005 you can create a Multi-Value drop-down list parameter that passes a commas delimited list. In your Report you would...

  • RE: Select parm or ALL

    Here are a couple of T-SQL options:

    [font="Courier New"]IF @ActionID IS NULL -- or @ActionId = [DefaultValue]

        BEGIN

            SELECT

                *

            FROM

                dbo.Actions

        END

    ELSE

        BEGIN

            SELECT

                *

            FROM

                dbo.Actions

            WHERE

                ActionID = @ActionId

        END

    -- OR

    SELECT

        *

    FROM

        dbo.Actions

    WHERE

        ActionId = CASE

                            WHEN @ActionID IS NULL THEN @ActionID--...

  • RE: Using SQL Profiler to analyse performance

    I just ran these procs I created to answer another forum question in AdventureWorks:

    [font="Courier New"]ALTER PROCEDURE temp_table_test_1

    AS

    CREATE TABLE #test

        (

        test_id INT IDENTITY(1,1),

        test NVARCHAR(50)

        )

    INSERT INTO #test

        (

        test

        )

        SELECT

            name

        FROM

            production.product

    SELECT * FROM #test

    EXEC temp_table_test_2

    SELECT *...

  • RE: Can I have dirty reads caused by the time the cache buffer needs to write to disk?

    spamhdp (7/23/2008)


    I am pretty sure I have seen this behavior on my SQL. I mean, update a value, query it and have the old value for a few seconds, and...

  • RE: halt report execution based on report parameters

    You could put a textbox on the report and set the visibility (Hidden Property) by checking the value of the parameter like this =IIF(Parameters!test.Value = "x", False, True) and set...

  • RE: can a temperory table be passed to stored procedure

    You cannot pass a temporary table to a stored procedure. You can create a temporary table in stored procedure 1 and then manipulate the data in the temporary table...

  • RE: Really basic question about the Select statement in T-SQL

    kayuca (7/23/2008)


    Below appears my code, which BTW gives me the following error: “Conversion failed when converting the nvarchar value ‘RICSU’ to data type int. [stored proc2 - line 13]....

  • RE: Using SQL Profiler to analyse performance

    Andy,

    Good advice from both Grant and Herve. You should also know that you can use Profiler to create the trace, script it, and then run it on the server...

  • RE: Scheduling a job in SQL 2005 -- How to?

    In SSMS connect to a server using Object Explorere then Go to SQL Server Agent -> Jobs. Right-click -> New Job, etc..

  • RE: How to show the column wise data into row wise

    Cross post. Original here: http://www.sqlservercentral.com/Forums/Topic539362-145-1.aspx

Viewing 15 posts - 8,281 through 8,295 (of 9,643 total)