Forum Replies Created

Viewing 15 posts - 1,546 through 1,560 (of 2,894 total)

  • RE: Summing in a table

    Reading the following should help:

    http://www.sqlservercentral.com/articles/Best+Practices/61537/

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: Setting the Identity in a temp table using a variable

    And if you really insist, then the following example should give you an idea:

    declare @n int

    set @n = 5 -- I want my inserts start from 5

    create table #t (id...

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: Setting the Identity in a temp table using a variable

    Don't use identity, use ROW_NUMBER() instead. You can start counting from any requested value...

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: What is the Query?

    In 2008 and after you can do:

    insert into table1 (column1, column2,column3)

    select column1,column2,n

    from table2, (values (1),(2)) q(n)

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: Migration of data from old server to new server

    ...i have a code which was written in Vb.net for migration of data,so my client dont need that type of coding he wants in either...

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: Update using subquery help!

    CELKO (5/16/2012)


    ...

    The kids I tutor at a failing middle school ...

    Poor kids... :w00t:

    I only can guess which first book you make them to read, it must be ISO standards. Following...

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: SQL 2005 trigger some time not runing

    nguyenhoang 18993 (5/17/2012)


    how are you determining that the trigger did not fire ? - have you run a profiler trace to determine the data that was inserted?

    No! if I action...

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: Switching number with counting

    It can be done using "Quirky Update" method.

    Read this great article by J. Moden: http://www.sqlservercentral.com/articles/T-SQL/68467/

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: varchar(max) field throwing truncated field error

    Try type 200 instead of 201.

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: varchar(max) field throwing truncated field error

    have you changed the server code which talks to DB? Or, if you are using stored proc, have you change the parameter definition there?

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: primary keys

    ...

    The reason I say that Microsoft has a lot to answer for is this: The default-to-clustered "feature" achieves nothing much for wise developers but its unintended consequence is that too...

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: Sorting AlphaNumeric non standard field

    ..., but this is forcing the sort.

    Yeah, but it will only work for known values.

    It's as well as doing it manually...

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: Sorting AlphaNumeric non standard field

    I love it!

    declare @t table (id int identity(1,1), val varchar(200))

    insert @t

    select 'OO27k Informed Consent from Persons with Limited'

    union select 'OO27l Expedited Review'

    union select 'OO27m IRB...

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: Sorting AlphaNumeric non standard field

    Removing all digits may not help for cases like:

    OO1a 2011 Zero

    OO1a 2012 Non-Zero

    as OP, if I understand correctly, would want to sort them as above, and stripping digits would sort...

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: Sorting AlphaNumeric non standard field

    ...

    Hope this makes sense....

    ...

    It would make full sense, if you could show the exact expected result based on your sample. It would help to understand how you want your data...

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

Viewing 15 posts - 1,546 through 1,560 (of 2,894 total)