Forum Replies Created

Viewing 15 posts - 2,131 through 2,145 (of 2,894 total)

  • RE: Dynamic update query

    my typing ***...

    Post edited! 🙂

    _____________________________________________
    "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: Best approach for record comparison

    Could you please follow the link at the bottom of my signature to find out how to present this sort of question to the forum. I can promise you: you...

    _____________________________________________
    "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 to get the resultset datatypes of a stored procedure ?

    Koen Verbeeck (2/21/2012)


    The problem is that you have to execute the stored procedure first to know the data types. And what if the stored procedure has conditional logic, and 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: Update Trigger with Case statement

    You need to compare new value with previous one, which can be found in DELETED:

    UPDATE t1

    SET pricechange = case when D.price < i.price then 1 else...

    _____________________________________________
    "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: Dynamic update query

    Jeff Moden (2/19/2012)


    Eugene Elutin (2/19/2012)


    rajeev_vandakar-782919 (2/18/2012)


    It's not totally possible, and anyway you would still better to write normal sql and update all 30-40 columns.

    Not if you have triggers based on...

    _____________________________________________
    "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 to get the resultset datatypes of a stored procedure ?

    deepkt (2/21/2012)


    Thanks for the reply Eugene Elutin.

    Is there any other way without configuring Ad Hoc Distributed Queries option?

    Thanks

    No! There is none!

    But I still don't understand what you are trying 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: scripting all stored procedure through T-SQL

    can you please post a stored proc definition which causes problem. I've run the query for procs which contain /* comments and it looking just fine.

    _____________________________________________
    "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: Get the substring after second white space

    another way:

    select parsename(replace('0005 ganeshkumar A999',' ','.'),1)

    _____________________________________________
    "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: scripting all stored procedure through T-SQL

    Have you switched the output into Text?

    _____________________________________________
    "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 to get the resultset datatypes of a stored procedure ?

    What is the reason you want to do it?

    Very strange question... Why would you need to determine the datatypes for recordset returned by stored proc? You should know them 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: scripting all stored procedure through T-SQL

    You need to separate create proc statements with batch-end "GO"

    Switch query output to text and execute:

    select Definition

    from

    (

    SELECT SM.Object_ID o, 1 ord, SM.Definition

    FROM SYS.SQL_Modules As SM INNER JOIN SYS.Objects As...

    _____________________________________________
    "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: insert sp_executesql and quotes roblem

    To get full protection from SQL injection, you should use sp_executesql with parameters. Also, it will sort out your problems with quotes...

    _____________________________________________
    "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: Dynamic update query

    rajeev_vandakar-782919 (2/18/2012)


    ...

    Any method is there where in the query or stored procedure, we can find out which column(s) now affecting and use only those columns in the UPDATE query?

    Whatever you...

    _____________________________________________
    "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 to nvarchar

    Thank You, Gail!

    Finally OP can make fully qualified decision of what size he need for his nvarchar! :hehe:

    _____________________________________________
    "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: Query Help

    You will find answer here:

    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]

Viewing 15 posts - 2,131 through 2,145 (of 2,894 total)