Forum Replies Created

Viewing 15 posts - 6,481 through 6,495 (of 8,755 total)

  • RE: Total count

    Quick thought, sum the addition of all columns

    ๐Ÿ˜Ž

    SELECT

    SUM(TS.COL_001 + TS.COL_002 + TS.COL_003 + TS.COL_004 + TS.COL_005 + TS.COL_006 + TS.COL_007 + TS.COL_008 + TS.COL_009 +...

  • RE: Dynamically grow a data file

    Quick thought, use trace flags 1117 and 1118

    ๐Ÿ˜Ž

  • RE: Dynamically grow a data file

    Echoing Jeffยดs question and adding some more, are you using a single file tempdb configuration? Do you know what is causing the growth? Are you experiencing any congestion in the...

  • RE: sp_executesql help

    Quick suggestion (pseudo code)

    ๐Ÿ˜Ž

    DECLARE @ParamTable varchar(100) = N''; -- include schema, error...

  • RE: Help Needed in Stored Procedure

    KGJ-Dev (12/4/2014)


    Hi Erik,

    as i don't want to open a new post for this, as we have all the information on this post, i would like to extend this conversation.

    I am...

  • RE: Select All matches that clubs played with an interval less than three days between games

    pietlinden (12/3/2014)


    I'm pretty sure Eirikur will shred my SQL, but this works:

    No shredding, just minor improvement

    ๐Ÿ˜Ž

    First a data set

    USE tempdb;

    GO

    SET NOCOUNT ON;

    DECLARE @DUMBER_OF_CLUBS INT = 200;

    IF OBJECT_ID('dbo.TBL_CLUB') IS NOT...

  • RE: Query issue pulling data over ODBC connection

    Herpington_McDerpington (12/3/2014)


    Eirikur Eiriksson (12/3/2014)


    Quick questions, what is the data source (ORA Version)? Have you tried using ALTER SESSION SET NLS_DATE_FORMAT to "format" the output of CURRENT_DATE? Don't think it's...

  • RE: Query issue pulling data over ODBC connection

    Herpington_McDerpington (12/3/2014)


    Hello all, I'm not really sure what level of expertise folks may have in the ODBC realm here. If there's a more appropriate category on the forum please let...

  • RE: Are the posted questions getting worse?

    Steve Jones - SSC Editor (12/3/2014)


    Don't knock LinkedIn too much. It's networking, which is incredibly valuable if you need employment or want to move. Many of you have used networking...

  • RE: declare @str varchar(100)='My name is Shiva' --Need output like : Shiva is name My

    twin.devil (12/3/2014)


    Koen Verbeeck (12/2/2014)


    Eirikur Eiriksson (12/2/2014)


    Just and only for fun, here is a slightly twisted solution, recommend following Koen's suggestion

    ๐Ÿ˜Ž

    DECLARE @STR VARCHAR(100)='My name is Shiva';

    DECLARE @XSTR VARCHAR(MAX) = 'SELECT(SELECT CHAR(32)+Y.XN...

  • RE: Timer in T - SQL

    Quick thought, use a calculated column for an "active" flag, here is an example, not a full solution but should be enough to get you passed this hurdle

    ๐Ÿ˜Ž

    USE tempdb;

    GO

    SET NOCOUNT...

  • RE: SQL Trigger to send an email when there is a duplicate entry on a table.

    Quick sample code, not a complete solution but should be enough to get you passed this hurdle

    ๐Ÿ˜Ž

    USE tempdb;

    GO

    SET NOCOUNT ON;

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

    IF OBJECT_ID('dbo.SVFN_COUNT_DETECT_DUPES_CODE') IS NOT...

  • RE: Importing XML into Multiple Tables

    swoozie (12/2/2014)


    I tried to do the following:

    1) remove the references to the extra table from the XSD = didnt work

    2) Change the name of the column in the XSD still...

  • RE: Are the posted questions getting worse?

    Ed Wagner (12/2/2014)


    Eirikur Eiriksson (12/2/2014)


    Luis Cazares (12/2/2014)


    Sean Lange (12/2/2014)


    David Burrows (12/2/2014)


    Luis Cazares (12/2/2014)


    ...it can be easier to start from scratch if we can understand the problem, than fix a complete...

  • RE: Are the posted questions getting worse?

    Luis Cazares (12/2/2014)


    Sean Lange (12/2/2014)


    David Burrows (12/2/2014)


    Luis Cazares (12/2/2014)


    ...it can be easier to start from scratch if we can understand the problem, than fix a complete piece of s...

    I have...

Viewing 15 posts - 6,481 through 6,495 (of 8,755 total)