Forum Replies Created

Viewing 15 posts - 7,246 through 7,260 (of 8,754 total)

  • RE: Average counts NUll

    TomThomson (8/30/2014)


    Eirikur Eiriksson (8/30/2014)


    sharonsql2013 (8/30/2014)


    I am trying to do an average with the following case statement

    Select

    AVG(Case when TotalHours < = 60 And TotalHours > 0 then TotalHours else...

  • RE: Average counts NUll

    sharonsql2013 (8/30/2014)


    I am trying to do an average with the following case statement

    Select

    AVG(Case when TotalHours < = 60 And TotalHours > 0 then TotalHours else 0 end)AVGWithin60

    AVG(Case when...

  • RE: Query Help

    Just in case you missed this from the previous instance of the question, modified to return blank if no HardDrink

    😎

    USE tempdb;

    GO

    SET NOCOUNT ON;

    CREATE TABLE #TEMP (T_ID INT IDENTITY(1,1),UserName varchar(20),Drink varchar(20),Value...

  • RE: Query Help

    Shadab Shah (8/29/2014)


    Hi Experts,

    There would be a better solution then , the one mention above by me.

    If some body has it would be great to know. Just to improve on...

  • RE: Msg 7391, Level 16, State 2, Line 1

    Can you ping the servers in both directions from each other using the server names, not the ip address (oops that sounds twisted:-))?

    😎

  • RE: Are the posted questions getting worse?

    Lynn Pettis (8/30/2014)


    The active thread view reminds me of a Monty Python skit: Spam, spam, spam, spam ... :-P;-):w00t:

    The Menu (translated to SSC'lect)

    Post and Spam

    Post,...

  • RE: Are the posted questions getting worse?

    Greg Edwards-268690 (8/30/2014)


    Jeff Moden (8/29/2014)


    Ok... the dust bunnies are in an uproar and the hunt is on for "lost sock" as the only possible source of the leak for the...

  • RE: Msg 7391, Level 16, State 2, Line 1

    techmaark (8/30/2014)


    pls check screenshot of msdtc setting attached

    First thought and if I remember correctly, set the NetworkDtcAccessTip (Transaction Internet Protocol (TIP)) to 1. Do check on technet though as my...

  • RE: using linked server object name in join statements, a best practice?

    polkadot (8/30/2014)


    first, I'm going to tell you that there's a system admin guy on my team that seems to come up with junk statements and makes dubious claims. ...

  • RE: Msg 7391, Level 16, State 2, Line 1

    Quick thought, have a look at this page Enable Network Access Securely for MS DTC, guess this is your problem.

    😎

  • RE: How to split one record into multiple records in query based on start and end date

    Here is a quick "set based loop" method using an inline Tally table to count the hours.

    😎

    USE tempdb;

    GO

    DECLARE @TEST_DATA TABLE

    (

    TEST_DATA_ID INT IDENTITY(1,1) NOT NULL PRIMARY KEY...

  • RE: Are the posted questions getting worse?

    Lynn Pettis (8/30/2014)


    I am jaded. I just read a reopened old thread by one of my favorite people. How, I ask you, can you work with SQL Server...

  • RE: converting varchar to datetime

    Quick thought, use a combination of replace and convert with the 110 format directive

    😎

    USE tempdb;

    GO

    DECLARE @MMDDYY VARCHAR(20) = '01 20 1950'

    SELECT CONVERT(DATETIME,REPLACE(@MMDDYY,CHAR(32),CHAR(45)),110)

    Result

    1950-01-20 00:00:00.000

  • RE: programmatic creation of a list of data flow tasks in SSIS

    Mr.Sahand (8/30/2014)


    Eric the loop in this level does not iterate the tables or any other Enumeration. It is just a simple loop.

    the tables' loop sits below the code shown:-)

    He he,...

  • RE: Msg 7391, Level 16, State 2, Line 1

    techmaark (8/30/2014)


    OLE DB provider "SQLNCLI10" for linked server "REPLLINK_TECHMARK952933815_TEST_CLIEN-672667892_REPUPDSUB2109712029_TEST_SERVE-1760219189" returned message "The transaction manager has disabled its support for remote/network transactions.".

    Msg 7391, Level 16, State 2, Line 1

    The operation could...

Viewing 15 posts - 7,246 through 7,260 (of 8,754 total)