Forum Replies Created

Viewing 15 posts - 211 through 225 (of 516 total)

  • RE: What will the max id be?

    palotaiarpad (12/19/2012)


    I'm also wrong, but i learned something. Could someone please explain, why is the identity resetted after a truncate? For me is a possible source of inconsitency.

    TRUNCATE command apart...

  • RE: What will the max id be?

    Thanks for reminding the basics 🙂

  • RE: Table variables

    An easy one for the day!

  • RE: PARSE 1

    Very Good Question Ron!

    Keep pouring more of those SS2012 stuff..

  • RE: Retrieving only character result set from varchar column

    If employeeID does not contain combination of both alphabets and numerals than you can use this also:

    SELECT *

    FROM employee

    WHERE employeeId LIKE '%[A-Z]%'

    In the earlier post, I assumed...

  • RE: Retrieving only character result set from varchar column

    Like this:

    SELECT *

    FROM employee

    WHERE employeeId LIKE '%[A-Z]%'

    AND employeeId NOT LIKE '%[0-9]%'

  • RE: SET Options - 1

    Another Great question Ron!

    I was not aware of this limitation and got the question wrong 🙂

  • RE: IDENTITY INSERT

    Hugo Kornelis (12/13/2012)


    Good question.

    I am not sure why Lokesh chose to include a link to the SQL Server 2000 version of the documentation. Especially since the setup script uses SQL...

  • RE: IDENTITY INSERT

    kapil_kk (12/13/2012)


    good question Lokesh...

    It makes me remind of our last discussion for identity itself... 😛

    +1 today also 🙂

    rightly said. This also made demonfox for fantastically quote like this

    when I saw...

  • RE: IDENTITY INSERT

    when I saw identity question , I was sure it's cam out of Lokesh mind's bucket ...

    Glad to know that! 🙂

  • RE: Calculate the position for a combination of columns

    You can do it like this:

    Creating temp table and inserting test values

    create table #temp

    (Receipt_key varchar(10),

    Item_key varchar(10) ,

    Position int);

    insert #temp

    values

    ('0001','02654',NULL),

    ('0001','35544',NULL),

    ('0002','02654',NULL),

    ('0002','85466',NULL),

    ('0002','84945',NULL)

    Final update statement

    WITH upd_recs

    AS (SELECT Receipt_key,

    ...

  • RE: Renaming a procedure

    sipas (12/12/2012)


    Hugo Kornelis (12/12/2012)


    As happens more often with a Question of the Day: Good idea, but badly executed.

    If you exactly follow the instructions, executing the 'alter proc' script after making...

  • RE: loop in trigger

    Explore Update() function to stop this behavior. Refer the link below:

    http://msdn.microsoft.com/en-us/library/ms187326.aspx

  • RE: Renaming a procedure

    Fortunate enough to get this correct. But the question required lot of reading and thinking!

  • RE: Renaming a procedure

    sanket kokane (12/11/2012)


    How to modify SP name in Alter Proc script ?

    Good question 🙂

    I was also thinking upon this. Instructions in the Question should have stated something like this:

    Right-click on...

Viewing 15 posts - 211 through 225 (of 516 total)