Forum Replies Created

Viewing 13 posts - 241 through 254 (of 254 total)

  • RE: Up The Wall

    I havent checked the entire sql but a quick glance tells me you should single quotes and not double quotes in sql.
     
    WHERE [H4CURR]= 'CHF'
     
    EDIT : I assumed CHF is...

    ******************
    Dinakar Nethi
    Life is short. Enjoy it.
    ******************

  • RE: a trigger question

    You dont need to use a trigger for this particular situation. You can fix it from the ASP.NET application itself. When you are passing in a value from the front-end...

    ******************
    Dinakar Nethi
    Life is short. Enjoy it.
    ******************

  • RE: Return identity inserted

    Yes. You can also use @@IDENTITY but that will not always guarantee you about the integrity of the IDentity value where as SCOPE_IDENTITY() is more reliable.

    ******************
    Dinakar Nethi
    Life is short. Enjoy it.
    ******************

  • RE: Changing color of comments in Query Analyzer

    Do you mean formatting it from a front-end application ? or just in QA ? If its the latter you can right click on the selected portion and use the...

    ******************
    Dinakar Nethi
    Life is short. Enjoy it.
    ******************

  • RE: variable drop down lists

    >> Also the @Operator variable is going to be operators (=,<,etc) what data type is that?
     
    It would be varchar or even char though I'd recommend varchar.

    >> I've been working...

    ******************
    Dinakar Nethi
    Life is short. Enjoy it.
    ******************

  • RE: Return identity inserted

    You can use a autogenerated identity column and use SCOPE_IDENTITY() to get the identity value from the last insert within the current scope. Check Booksonline for more info.

    ******************
    Dinakar Nethi
    Life is short. Enjoy it.
    ******************

  • RE: difference between two resultsets

    You can get both the resultsets into 2 table variables ( or temp tables) and do a select from tableA where NOT IN...tableB ( or viceverca)

    ******************
    Dinakar Nethi
    Life is short. Enjoy it.
    ******************

  • RE: SQL Server DBA/Developer - Chicago

    And how do we contact you Mr Andrew ? Can you also tell us the location of the position ?

    ******************
    Dinakar Nethi
    Life is short. Enjoy it.
    ******************

  • RE: Better way to Update only those values changed?

    you can do something like :

    select @a=col1, @b-2=col2,@c=col3 from yourtable

    update YourTable

    set col1 = case when @a = @newA then @a

    else @newA

    end

    where col1 = @a and col2=@b and col3...

    ******************
    Dinakar Nethi
    Life is short. Enjoy it.
    ******************

  • RE: Msg 242 When Validating Date Value

    may be the value thats coming in is not right..check that.besides that i dont see anything wrong with the code..

    hth

    ******************
    Dinakar Nethi
    Life is short. Enjoy it.
    ******************

  • RE: Query to Post Results to View

    ALTER      VIEW [dbo].YourView AS

    SELECT [id],Child1 FROM Table1

     

    ******************
    Dinakar Nethi
    Life is short. Enjoy it.
    ******************

  • RE: Nested Stored Procedures and Variables???

    can you post the line where he is calling the other stored proc? its most likely a syntax error and nothing to do with variables..the variables have scope of the...

    ******************
    Dinakar Nethi
    Life is short. Enjoy it.
    ******************

  • RE: What is the maximum length for a varchar field?

    i think its up to 8000.

    ******************
    Dinakar Nethi
    Life is short. Enjoy it.
    ******************

Viewing 13 posts - 241 through 254 (of 254 total)