Forum Replies Created

Viewing 15 posts - 961 through 975 (of 2,894 total)

  • RE: Is this a bug ???

    It's not a bug.

    The syntax you are using is never reliable to get string concatenation in T-SQL.

    BTW, Order By 1 in your first sample, is not inequivalent to...

    _____________________________________________
    "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: Exclude Records using join

    Sony Francis @EY (11/7/2012)


    Try this

    SELECT *

    FROM TableA a

    LEFT OUTER JOIN TableB b ON a.LoanID = b.LoanID

    WHERE b.ColumnA <> 'Y'

    When we use INNER JOIN it will consider only commom records....

    _____________________________________________
    "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: Reg: Interview Questions

    CELKO (11/6/2012)


    ...

    Now we have to track down this interview so we can tell them that you cheat

    ...dishonesty...

    So, can you claim that you have never-ever lied yourself?

    😉

    I guess OP...

    _____________________________________________
    "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: CONVERT BEHAVIOUR

    Jason-299789 (11/7/2012)


    Eugene Elutin (11/6/2012)


    My favoured one is:

    SELECT $

    This also works for £ and € currency symbols. I'm not sure about other currency symbols like Yen, Roubles, etc, as it may...

    _____________________________________________
    "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: Generate unique invoice number-very CRITICAL application.

    aykut canturk (11/6/2012)


    I was digging sql2012 sequence feature, looks like don't need to worry about deadlocks nor increments any more but I couldn't find one thing:

    where does sql2012 stores sequences....

    _____________________________________________
    "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: Generate unique invoice number-very CRITICAL application.

    I would pre-populate InvoiceTable with 0 on the Customer Record creation, then getting and updating invoice number would be as simple as:

    DECLARE @invoiceNo INT

    UPDATE...

    _____________________________________________
    "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: CONVERT BEHAVIOUR

    My favoured one is:

    SELECT $

    _____________________________________________
    "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: building the query for the below output

    Please note, that the order of output is a bit different...

    _____________________________________________
    "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: Generate unique invoice number-very CRITICAL application.

    aykut canturk (11/6/2012)


    dear lnardozi 61862,

    problem is, I'm not generating invoices. my customers are generating their own invoices for their own customers using my web application. Say, customer A starts operation...

    _____________________________________________
    "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: Variable Parameter list for for procedure

    shilpaprele (11/6/2012)


    Dear All

    I need to create procedure with variable parmaeter list. I am trying to achive it through table value parameter.

    Is it the correct approch?

    Also I need this parameter to...

    _____________________________________________
    "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: building the query for the below output

    I honestly believe that you are trying to do something wrong, but...

    Here we go:

    ;WITH cte_ref

    AS

    (

    SELECT R.*, ROW_NUMBER() OVER (PARTITION BY F_data_id ORDER BY F_ref_id) 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: building the query for the below output

    How will you differentiate between first set of:

    - - - D

    - - - E

    and the second set of

    - - - D

    - - - E

    What makes them first or...

    _____________________________________________
    "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: Convert Existing Stored Procedure To CLR Stored Procedure

    Jason-299789 (11/5/2012)


    Eugene Elutin (11/5/2012)


    There is another powerful feature which will make even viewing a stored procedure code a big hassle, it's called ENCRYPTION:

    Read about option ENCRYPTION in here:

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

    The problem is...

    _____________________________________________
    "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: Convert Existing Stored Procedure To CLR Stored Procedure

    There is another powerful feature which will make even viewing a stored procedure code a big hassle, it's called ENCRYPTION:

    Read about option ENCRYPTION in here:

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

    _____________________________________________
    "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: New Function

    I don't think that function should worry about time part of date of birth. In SQL2008 you better just to use DATE type so the time wouldn't be...

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