Forum Replies Created

Viewing 15 posts - 11,611 through 11,625 (of 15,377 total)

  • RE: Query

    komal145 (6/18/2012)


    select '10704' as entry_id , '2012-05-18 14:17:20.710' as Start_time ,'2012-05-18 14:18:13.957' as End_time ,'test3' as USername

    Union all

    select '10704' as entry_id , '2012-05-18 14:24:45.057' as Start_time ,'2012-05-18 14:25:14.780' as End_time...

  • RE: Query

    Lynn Pettis (6/18/2012)


    komal145 (6/18/2012)


    select '10704' as entry_id , '2012-05-18 14:17:20.710' as Start_time ,'2012-05-18 14:18:13.957' as End_time ,'test3' as USername

    Union all

    select '10704' as entry_id , '2012-05-18 14:24:45.057' as Start_time ,'2012-05-18 14:25:14.780'...

  • RE: What does this code do?

    It is not really help to provide any actual details but it sounds like your insert/update is trying to do this on two tables at the same time. You can't...

  • RE: Try Catch

    Well if you rollback inside your other proc it will rollback all the "nested" transactions. Then your trancount will be off and it will fail. There are probably some other...

  • RE: Query

    OK now I am even more confused. I just realized that you tried to demonstrate output in your first post. There were two rows originally but now you say only...

  • RE: Query

    That didn't exactly make it very clear. Can you show what the expected output should be based on your sample data?

  • RE: Opinions requested - Select All in multi-valued parameter

    Given the code snippet I am guessing you are using some sort of looping splitter. I am already thinking you can vastly improve performance by reading the article in my...

  • RE: What does this code do?

    There is nowhere near enough information posted here to have any chance of helping. There are variable referenced and a lot of details that we don't know about. This is...

  • RE: Query

    Yeap clear as mud. So the query you said works doesn't work with the ddl and sample data provided. The ddl is full of typos.

    I don't quite understand why you...

  • RE: text field to image field

    Pretty sparse on details here. What does the VB code look like? What does the sql you are using look like?

    You will get lot more help if you can...

  • RE: Comparing execution time of table valued function.

    This is kind of like taking your car to the mechanic and telling them it doesn't run well. Imagine your response at the car repair shop with this conversation.

    You -...

  • RE: Conversion failed when converting varchar to int

    You can't use a variable like that. You should look at the link in my signature for splitting a string.

    --EDIT--

    Hint -- your query would end up something like this.

    select *...

  • RE: Try Catch

    To prove my point I altered my proc with yours above. Then to test the nested transactions is quite simple.

    begin transaction

    exec proc1

    commit transaction

    It doesn't work.

  • RE: Help needed to INSERT using a column values variable as a result of a SELECT

    If you want some real help, again read the first article in my signature and post ddl, sample data and desired output.

  • RE: Try Catch

    thadeushuck (6/18/2012)


    create table ProcTable1

    (

    ProcID int identity,

    ProcVal varchar(10)

    )

    go

    ...snip...

    exec Proc1

    select * from ProcTable1

    You really should read the article I posted above. Nested transactions are lie, myth, whatever you want to call it....

Viewing 15 posts - 11,611 through 11,625 (of 15,377 total)