Forum Replies Created

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

  • RE: Trigger

    The default constraint will only work on inserts not updates. The code sample below demonstrates this.

    😎

    USE tempdb;

    GO

    CREATE TABLE dbo.TBL_TEST_CONSTRAINT

    (

    TC_ID INT IDENTITY(1,1) NOT NULL

    ...

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

    techmaark (8/31/2014)


    server pings client but client not ping to server but i can remotely connect with server

    As a quick fix, add a HOST entry for the server on the client...

  • RE: find out the next top 10 that does not belong to the first top 10

    If I remember correctly, Itzik Ben-Gan wrote an article on paging result set, both with and without offset fetch, suggest you look at it.

    😎

    Edit: added link.

  • RE: find out the next top 10 that does not belong to the first top 10

    karthik82.vk (8/31/2014)


    Hi,

    I have a data of 100 PostalCodes and parcels associated with it. Each postal code will be having multiple parcels. My aim is to find the count of parcels...

  • RE: Hierarchial Query

    This is more for fun than being an attempt to solve the problem, although the code can easily be amended to produce the desired results. It uses an inline Tally...

  • RE: recursive sum

    Here is an alternative method without recursion, uses Tally table type looping instead. The code uses Chris's sample data to produce comparable output. It is simplified and limited to that...

  • 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...

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