Forum Replies Created

Viewing 15 posts - 916 through 930 (of 8,416 total)

  • RE: INSERT NUMBER OF ROWS BASED ON NUMBER VALUE IN ANOTHER TABLE COLUMN

    Another approach, not saying its the best, but it has some interesting features, and won't insert new values if they are already there:

    CREATE TABLE dbo.TableA

    (

    Code ...

  • RE: union with order by

    Ninja's_RGR'us (1/27/2012)


    You know too much, you must be alien or something :alien:

    Ah, I see. Thank you. Actually I know very little, but what I do know seems to...

  • RE: Effect of Clustered Index Updates

    patrickmcginnis59 (1/27/2012)


    I'd be curious to know that mechanism. For instance, rebuilding an index that gets used the least, it still either points to the clustered index if it exists, or...

  • RE: Effect of Clustered Index Updates

    Grizzly Bear (1/27/2012)


    When a Clustered index gets updated, do all the Non Clustered Indexes gets rebuilt?

    Just the affected rows in the non-clustered index are maintained (updated) as part of the...

  • RE: Conversion failed

    TST1 (1/27/2012)


    Can someone please assist me with the following:

    SELECT CAST(record as xml) as record

    FROM sys.dm_os_ring_buffers

    and I'm getting error

    Msg 241, Level 16, State 1, Line 1

    Conversion failed when converting date...

  • RE: Converting datetime

    HowardW (1/27/2012)


    I'm really glad they've added the FORMAT function in 2012. As much as there's an assumption that date format manipulation shouldn't happen in the database, it's nonetheless important for...

  • RE: Are the posted questions getting worse?

    GilaMonster (1/27/2012)


    And then you get those who swear that the code they posted is the exact code that they're running, which mostly works but returns data in the wrong order,...

  • RE: union with order by

    Ninja's_RGR'us (1/27/2012)


    No way around it now, I'll have to ask for a urine test Paul. :hehe:

    ?

  • RE: union with order by

    DECLARE @test-2 TABLE

    (

    group_id integer NOT NULL,

    id integer NOT NULL,

    ...

  • RE: Solving the "Running Total" & "Ordinal Rank" Problems (Rewritten)

    charles.southey (1/27/2012)


    This is a good example of the hoops you sometimes have to go through to carry out some conceptually quite simple tasks in basic T-SQL. For a much simpler...

  • RE: Are the posted questions getting worse?

    GilaMonster (1/27/2012)


    Dim CPDHourUpdate As SqlDataSource = New SqlDataSource() CPDHourUpdate.ConnectionString = ConfigurationManager.ConnectionStrings("Application").ToString() CPDHourUpdate.UpdateCommand = "UPDATE UserDetails SET CPD_Hours = CPD_Hours + 2 WHERE UserId = @UserId" CPDHourUpdate.UpdateParameters.Add("UserId", Session("UserID").ToString()) Dim rowsAffected As...

  • RE: Are the posted questions getting worse?

    Koen Verbeeck (1/27/2012)


    I got the swift reply: "No links. Only code samples plz. Its urgent."

    Whenever I see "...it's urgent...", I think: "Not for me it isn't."

  • RE: Are the posted questions getting worse?

    Gianluca Sartori (1/27/2012)


    Or maybe "just give me the split function".

    Awesome - I didn't even bother reading that one. I like the link Cadavre posted on the other one. ...

  • RE: Are the posted questions getting worse?

    Evil Kraig F (1/27/2012)


    On yet another note, what is it, "Spoon Feed me my job" day?

    If you are referring to "please reply me of my question only .Thanks", I would...

  • RE: Please help :(

    mithubhudolia (1/27/2012)


    I have to show data in reports (day wise and moth wise)

    Like

    In jan month ,we have 31 days so if data is available in 1'jan than show data else...

Viewing 15 posts - 916 through 930 (of 8,416 total)