Forum Replies Created

Viewing 15 posts - 346 through 360 (of 2,894 total)

  • RE: Fizz Buzz interview questions for phone screens?

    Jeff Moden (6/6/2013)[/b

    ...it would be a real pleasure if someone actually did it right, for a change...

    Why not open the competition here for most generic FizzBuzz implementation (without dynamic SQL).

    I...

    _____________________________________________
    "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: help getting return of function and loop into stored proc

    Hi and welcome to the forum.

    It's possible, but in order to assist we need a bit more details about your chelenge.

    Please provide DDL of tables invloved and some test 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]

  • RE: 2008 SQL Stored Procedure output to a pre-existing Excel 2003 spreadsheet

    You can do it in few ways.

    Create vb or javascript which will connect to database, execute your procedure and output its results into existing Excel document or you can write...

    _____________________________________________
    "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: How we can insert a sign of flag in the record based on condition.?

    Yep you can, something like

    SELECT ... all you need columns ...

    ,CASE WHEN [condition] THEN 'Red' ELSE 'Black' END as RowColour

    FROM...

    _____________________________________________
    "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: How we can insert a sign of flag in the record based on condition.?

    You cannot change the "colour" of records in T-SQL. It's up to UI application to format and display results of the query.

    _____________________________________________
    "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: Import excel custom formatting cell to sql server 2008

    can you see these values in SSIS when configuring data source?

    _____________________________________________
    "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: error on xml paramter in stored procedure

    no need to escape double quote, try passing this:

    N'<?xml version="1.0" encoding="utf-16"?><IDLIST><ID VALUE="d4c810ba-36ea-4872-84d0-8c4cfe956e3c" /><ID VALUE="62d6159f-809f-4b5e-9071-8058f47e57fc" /></IDLIST>'

    _____________________________________________
    "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: select top 1 value per group

    thbaig1 (5/31/2013)


    yes, but I have to add some other conditions and they worked with your logic 🙂

    I would thank you both for valuable suggestions

    If it's not a secret, what kind...

    _____________________________________________
    "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: Import excel custom formatting cell to sql server 2008

    Is there any formula in this column?

    _____________________________________________
    "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: Import excel custom formatting cell to sql server 2008

    Formatting has nothing to do with your problem. Most likely you defined a wrong range.

    You can try SSIS for getting date from Excel to SQL. Using SSIS, you will see...

    _____________________________________________
    "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: select top 1 value per group

    Simple aggregate will do the same:

    select Attribute, MIN(StateVal) AS StateVal

    from #tblA

    group by Attribute

    _____________________________________________
    "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: NOLOCK hint.

    Luis Cazares (5/30/2013)


    Michael Valentine Jones (5/30/2013)


    Luis Cazares (5/30/2013)


    GilaMonster (5/28/2013)


    WangcChiKaBastar (5/28/2013)


    our database is not financial, our use of NOLOCK hint was to increase concurrency and limit contention (deadlock).

    Use one of the...

    _____________________________________________
    "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: NOLOCK hint.

    Michael Valentine Jones (5/30/2013)


    Luis Cazares (5/30/2013)


    GilaMonster (5/28/2013)


    WangcChiKaBastar (5/28/2013)


    our database is not financial, our use of NOLOCK hint was to increase concurrency and limit contention (deadlock).

    Use one of the snapshot isolation...

    _____________________________________________
    "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: Scalar Valued functions

    WangcChiKaBastar (5/30/2013)


    I have a Stored Proc that calls a Scalar Valued function...

    When I run the Scalar Valued function

    select dbo.f_ScalarFunction (@Param1, @Param2, @Param3) and check Inlude Actual execution plan..

    I...

    _____________________________________________
    "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: NOLOCK hint.

    Luis Cazares (5/30/2013)


    Eugene Elutin (5/30/2013)


    Luis Cazares (5/30/2013)


    GilaMonster (5/28/2013)


    WangcChiKaBastar (5/28/2013)


    our database is not financial, our use of NOLOCK hint was to increase concurrency and limit contention (deadlock).

    Use one of the snapshot...

    _____________________________________________
    "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 - 346 through 360 (of 2,894 total)