Forum Replies Created

Viewing 15 posts - 1 through 15 (of 275 total)

  • RE: Change SMO Connection string Dynamically

    All of the DB connections are configured to get the values from a table at runtime but this not being an OLEDB connection i am not sure how should i...

    Thanks,
    Chinna

    Its the Journey which gives you Happiness not the Destination-- Dan Millman

  • RE: Find Currently Running Query – T-SQL

    I find the query useful so published it so that it might be useful for everyone. I was unaware of an existing post :-).

    Thanks,
    Chinna

    Its the Journey which gives you Happiness not the Destination-- Dan Millman

  • RE: How to get Desired Out Put Like

    Try this..

    Select sum(Duration1) as Duration1,Sum(Duration2)as Duration2,

    Sum(Duration3) as Duration3, Case When Type = A then Math END as Math, Case When Type = A then Silver END as Silver

    From Table

    where...

    Thanks,
    Chinna

    Its the Journey which gives you Happiness not the Destination-- Dan Millman

  • RE: Query Result set explanation needed

    Thanks Luiz for the info.

    One last question on that why doesnt it fail when inserting a numeric field value to varchar() field?

    Insert into #temp

    Select * from #temp1

    Thanks,
    Chinna

    Its the Journey which gives you Happiness not the Destination-- Dan Millman

  • RE: Need help with a query

    Worked like a charm .Thank you

    Thanks,
    Chinna

    Its the Journey which gives you Happiness not the Destination-- Dan Millman

  • RE: Need help with Dynamic SQL

    It should go to where clause but how do i get those statements dynamically based on the above table structure without any hard coded script in the code.

    Thanks,
    Chinna

    Its the Journey which gives you Happiness not the Destination-- Dan Millman

  • RE: How to remove temporary tables in tempdb database

    Let me explain in more detail..

    I do have admin rights on the server.

    The temp table is being created by a stored procedure

    The stored proc is being executed by a sql...

    Thanks,
    Chinna

    Its the Journey which gives you Happiness not the Destination-- Dan Millman

  • RE: Need to Optimize Update Query

    There is a view which is built on dbo.customerdetail table.. Also attached the actual plan.

    Thanks,
    Chinna

    Its the Journey which gives you Happiness not the Destination-- Dan Millman

  • RE: Need help with creating unique constraint.

    Thanks Guys for the workarounds.. I will look into it and implement the one with less changes to my existing schema.

    Thanks,
    Chinna

    Its the Journey which gives you Happiness not the Destination-- Dan Millman

  • RE: Need help with creating unique constraint.

    Yes, I do have an identity field which i havent put in the example.. Can you please let me know the workaround.

    Thanks,
    Chinna

    Its the Journey which gives you Happiness not the Destination-- Dan Millman

  • RE: Need help with creating unique constraint.

    No, the ID column is not unique..

    i know we can create clause with sql 2008 and later versions

    Create unique index IDX_1 on Table1(Column) where column2 is null

    The above query...

    Thanks,
    Chinna

    Its the Journey which gives you Happiness not the Destination-- Dan Millman

  • RE: Need help with creating unique constraint.

    Hey Mate..

    Thanks for the response but my requirement is to have a unique constraint create when the Dateexpired field is null ..

    Let say below are my insert statements then...

    Thanks,
    Chinna

    Its the Journey which gives you Happiness not the Destination-- Dan Millman

  • RE: Help with writing case statement in a Query

    The logic already had an IF conditions and its a new functionality which i need to integrate into the solution so dont want to add up if else clause for...

    Thanks,
    Chinna

    Its the Journey which gives you Happiness not the Destination-- Dan Millman

  • RE: need help with case statement in Joins

    Thanks lutz.. It worked like a charm.

    I will look into optimizing it now .

    Thanks,
    Chinna

    Its the Journey which gives you Happiness not the Destination-- Dan Millman

  • RE: need help with case statement in Joins

    Thanks for the response..

    I need to add few more fields in the case statement based on the parameter ..I will test it .

    Thanks

    Thanks,
    Chinna

    Its the Journey which gives you Happiness not the Destination-- Dan Millman

Viewing 15 posts - 1 through 15 (of 275 total)