Forum Replies Created

Viewing 15 posts - 4,411 through 4,425 (of 8,754 total)

  • RE: Like Statement With Parameters

    Here is a quick solution that fits nicely for simple usage.

    😎

    Test data set for demonstration

    USE TEEST;

    /* Safe place to play in */

    GO

    SET NOCOUNT ON;

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

  • RE: Create Weeks Calendar from Date in SQL 2012

    Here is a quick solution

    😎

    USE tempdb;

    GO

    SET NOCOUNT ON;

    DECLARE @SAMPLE_SIZE INT = 365;

    DECLARE @FIRST_DATE DATE = CONVERT(DATE,'20141231',112);

    DECLARE @ZERO_DATE DATE...

  • RE: Incorrect Syntax Near 'Go'

    andy 61637 (9/30/2015)


    Can someone look over this script and tell me why I'm getting an "Incorrect syntax near 'Go'" error right at the line above the dashes

    (about line 18)?

    This...

  • RE: Are the posted questions getting worse?

    WayneS (9/30/2015)


    Luis Cazares (9/30/2015)


    ChrisM@Work (9/30/2015)


    Brandie Tarvin (9/30/2015)


    ChrisM@Work (9/30/2015)


    An unsolicited email has just dropped into my Hotmail inbox from a recruitment agency touting a permy dev DBA role in Soho (London)...

  • RE: Are the posted questions getting worse?

    Brandie Tarvin (9/30/2015)


    SQLRNNR (9/23/2015)


    Eirikur Eiriksson (9/23/2015)


    This made me giggle

    *cough*:cool:

    Grrr. The way he phrased his thank you. Yes, I piled on. But believe me, what I posted was far more polite...

  • RE: OVER clause with Insert very slow

    ignacio.jose (9/29/2015)


    This is odd. It's the first time I am using an aggregate with the OVER clause.

    Running the script is fast less than 1 second but when I say...

  • RE: Today's Random Word!

    Ed Wagner (9/29/2015)


    djj (9/29/2015)


    Ed Wagner (9/29/2015)


    DonlSimpson (9/29/2015)


    Eirikur Eiriksson (9/29/2015)


    Hair

    Follicle

    Shave

    Close

    Encounter

    Event

  • RE: How to Skip a FTP Task in a Foreach Loop Container

    joshdbguy (9/29/2015)


    I'm working on a complicated SSIS package in SSDT 2012. One of the final tasks requires me to send files to FTP locations. Unfortunately, the table that provides those...

  • RE: Today's Random Word!

    Ed Wagner (9/29/2015)


    Luis Cazares (9/29/2015)


    Ed Wagner (9/29/2015)


    djj (9/29/2015)


    Ed Wagner (9/29/2015)


    SQLRNNR (9/28/2015)


    DonlSimpson (9/28/2015)


    Ed Wagner (9/28/2015)


    whereisSQL? (9/28/2015)


    djj (9/28/2015)


    Ed Wagner (9/28/2015)


    anthony.green (9/28/2015)


    ZZartin (9/28/2015)


    Leaf

    Heap

    Cluster

    Single

    Engaged

    Active

    Passive

    Node

    Tree

    Family

    History

    Channel

    Triggers

    Hair

  • RE: Store Multi Values in one parameter

    aymanahmed88 (9/29/2015)


    i design SP for insert data in 2 tables

    i need to store list of array in one parameter to complete my query

    i try the table value but...

  • RE: What are the primary measures you look at, when performance tuning?

    Grant Fritchey (9/29/2015)


    For queries, execution time and the number of reads. I do use extended events for this all the time now. I've found that STATISTICS IO tends to mask...

  • RE: Wildcard Searches

    Thanks for this nice piece Luis!

    😎

  • RE: What are the primary measures you look at, when performance tuning?

    rwitt 95744 (9/28/2015)


    Greetings, all.

    I'm curious what are the most important/relevant stats, query plan aspects, etc., that you look at, when trying to determine if one T-SQL coding approach is more...

  • RE: Extracting Data From XML Query

    serg-52 (9/28/2015)


    To optimize a bit further why declare namespace which is never used in the query

    ;WITH XMLNAMESPACES (DEFAULT 'http://schemas.microsoft.com/sqlserver/reporting/2010/01/shareddatasetdefinition')

    SELECT

    D.field1.value('(SharedDataSet/DataSet/Query/CommandText/text())[1]','VARCHAR(50)') AS CommandText

    FROM #demo D;

    Since it...

  • RE: Extracting Data From XML Query

    Quick thought, the posted solution works but it imposes quite a lot of work which can be avaided, here is a more efficient alternative.

    😎

    USE tempdb;

    GO

    SET NOCOUNT ON;

    IF OBJECT_ID(N'sbo..#demo') IS NOT...

Viewing 15 posts - 4,411 through 4,425 (of 8,754 total)