Forum Replies Created

Viewing 15 posts - 6,241 through 6,255 (of 8,761 total)

  • RE: Optimizing Stored Procedure to go Parallel.

    pkapas (1/22/2015)


    I have a stored procedure that calls several views that rely on each other. In the past these views used to go parallel and use up all 100% of...

  • RE: Are the posted questions getting worse?

    Brandie Tarvin (1/21/2015)


    HeaddeskHeaddeskHeaddesk.

    Can I scream yet?

    I just got the "white paper" for a new project. 46 freaking pages of "time to integrate the systems". Which isn't bad. I support the...

  • RE: SSMS object explorer lock timeout when running compression script

    That's probably the best way around the problem, schedule the job for off-hours/maintenance window execution when no users are affected.

    😎

  • RE: SQL While statement

    denis.gendera (1/21/2015)


    I have table with PatchGroup Information. I like to run query using While statement that returns specific results for each patch group.

    I'm using SQL Function and doing the...

  • RE: Where can I find the list of values for event_data (XML) files in SQL?

    Quick thought, one can query the xml for both element/attribute names and values, if you have some sample XML then I'll chip in a query for this.

    😎

  • RE: SSMS object explorer lock timeout when running compression script

    Thordog (1/21/2015)


    ALTER TABLE [dbo].[TableNameExample] REBUILD PARTITION = ALL

    WITH (DATA_COMPRESSION = PAGE)

    The table is 110 GB, so will take time to compress. But it is one table in a database...

  • RE: Inline table-valued function: A severe error occurred

    Stephanie Giovannini (1/21/2015)


    I'm attempting to convert some INSERT-EXEC structures into table-valued functions because the procedures are deeply nested and INSERT-EXEC doesn't like nesting (Error 3915: Cannot use the ROLLBACK statement...

  • RE: Using a cursor in Sql trigger

    dopydb (1/21/2015)


    Yea only 100 or so inserts a day, otherwise i wouldnt use a trigger at all

    Any tips for making it more efficient? πŸ™‚ always interested in other approaches

    Post the...

  • RE: Altering table to change datatype

    ramana3327 (1/21/2015)


    Need to change some columns datatype from nvarchar to varchar.

    Just need to drop the indexes that are on that column.

    Do we get any problems from changing nvarchar to varchar

    Here...

  • RE: Using a cursor in Sql trigger

    GilaMonster (1/21/2015)


    Bulk Inserts don't fire triggers. Nothing to do with the trigger code (which, from the looks of things needs a lot of work to optimise it). The Bulk Insert...

  • RE: Are the posted questions getting worse?

    Sioban Krzywicki (1/21/2015)


    Hi everyone,

    I have a bit of an announcement and a question.

    I'm Transgender. I've come out as a woman in nearly every aspect of my life now and am...

  • RE: Convert Iterative query to set based query

    ryanabr (1/21/2015)


    You are the MAN! look me up if you are ever in Minneapolis, I owe you a beer (keg really...) !

    Thanks again!

    No worries, glad to help.

    One of my favourites...

  • RE: Avoid using a Cursor

    Quick suggestion, use FOR XML PATH to concatenate the output into one dynamic sql string

    😎

    USE tempdb;

    GO

    SET NOCOUNT ON;

    IF OBJECT_ID(N'dbo.Control_Table') IS NOT NULL DROP TABLE dbo.Control_Table;

    CREATE TABLE [dbo].[Control_Table](

    [Server_Name] [varchar](50) NOT NULL,

    [Database_Name]...

  • RE: Tally OH! An Improved SQL 8K β€œCSV Splitter” Function

    I've been working on performance tuning and optimization of few special purpose functions which where derived from the DelimitedSplit8K function, wanted to share some of the findings related to the...

  • RE: how to return max from a varchar column

    This is possibly an overkill but can easily be extended

    😎

    USE tempdb;

    GO

    SET NOCOUNT ON;

    DECLARE @SAMPLE_DATA TABLE

    (

    THREE_PART_NUM VARCHAR(50) NOT NULL PRIMARY KEY CLUSTERED

    );

    INSERT INTO @SAMPLE_DATA (THREE_PART_NUM)

    VALUES

    ...

Viewing 15 posts - 6,241 through 6,255 (of 8,761 total)