Forum Replies Created

Viewing 15 posts - 16 through 30 (of 50 total)

  • RE: Data Page Allocations

    Nice question.

    From this we know that deleting records from the heap will not deallocate pages. Shriking will help to deallocate the pages from the heap ?

    I know shrinking...

    [font="Verdana"]Regards,
    Rals
    [/font].
  • RE: Inserts

    +1

    [font="Verdana"]Regards,
    Rals
    [/font].
  • RE: Can we create clustered index on non primary key column

    Yes we can create Clustered Index on a non-unique and nullable column.

    If the clustered index is not a unique index, SQL Server makes any duplicate keys unique by adding an...

    [font="Verdana"]Regards,
    Rals
    [/font].
  • RE: Primary Keys

    Index has the limitation of 16 key columns, primary key can be either clustered or non-clustered. So it can also have only 16 columns. I guessed the answer as above.

    🙂

    [font="Verdana"]Regards,
    Rals
    [/font].
  • RE: SQL 2012 BOL

    Nice one!!! I guessed the answer with option 3 should be false.

    [font="Verdana"]Regards,
    Rals
    [/font].
  • RE: Sting comma Separator

    Great !!!

    [font="Verdana"]Regards,
    Rals
    [/font].
  • RE: Sting comma Separator

    I used distinct to avoid duplicates.

    But I won't suggest that as well 🙂

    [font="Verdana"]Regards,
    Rals
    [/font].
  • RE: Sting comma Separator

    This might help as well

    ;With CTE

    As

    (Select *, Count(1) Over (Partition By TagSetName) As rn From Ex)

    Select a.ProjectName, a.WorkType, a.Status, a.TagSetName,a.TagValues from CTE a where rn =1

    union

    Select distinct a.ProjectName, a.WorkType,...

    [font="Verdana"]Regards,
    Rals
    [/font].
  • RE: String comparison

    Nice question.

    When we print the variables we can see the padded space in @A.

    PRINT @A

    PRINT @b-2

    PRINT 'A:'+@A + 'B:'+ @b-2+':'

    [font="Verdana"]Regards,
    Rals
    [/font].
  • RE: Get the course which has maximum no.of students enrolled

    Thanks

    [font="Verdana"]Regards,
    Rals
    [/font].
  • RE: Get the course which has maximum no.of students enrolled

    I have got in CTE

    ;with getMaxCourse AS

    (Select cid,count(sid) over (partition by cid) Kount From enroll)

    Select cid from getMaxCourse where Kount = (Select max(Kount) from getMaxCourse)

    [font="Verdana"]Regards,
    Rals
    [/font].
  • RE: Restoring Features

    Nice Question and my guess is right today 🙂 !!!

    [font="Verdana"]Regards,
    Rals
    [/font].
  • RE: SQL Server Browser

    Nice Question.. Thanks

    [font="Verdana"]Regards,
    Rals
    [/font].
  • RE: Valentines Day

    Happy Valentine's Day !!!

    [font="Verdana"]Regards,
    Rals
    [/font].
  • RE: Delimited String in one Column

    Hi Andrew,

    Can you share the link where you found the options.

    [font="Verdana"]Regards,
    Rals
    [/font].

Viewing 15 posts - 16 through 30 (of 50 total)