Results 1 to 11 of 11

Thread: [Resolved] CASE and SPROCS

Threaded View

  1. #1

    Thread Starter
    Frenzied Member yrwyddfa's Avatar
    Join Date
    Aug 2001
    Location
    England
    Posts
    1,253

    Resolved [Resolved] CASE and SPROCS

    I am trying to do this and that damn thing won't let me

    VB Code:
    1. select @Something
    2.    case SomethingElse
    3.       when 2 then proc_AProc2
    4.       when 3 then proc_AProc3
    5.    end

    Is there something endemically wrong in this? I can't use a UDF because the proc has a transaction in it. I can't lift the transaction outside, because other places use the sproc on its own.

    Is it just a syntactic balls-up on my part?

    [edit] I am using SQL Server 2000 [/edit]
    Last edited by yrwyddfa; Dec 22nd, 2006 at 06:09 AM.
    "As far as the laws of mathematics refer to reality, they are not certain; and as far as they are certain, they do not refer to reality." - Albert Einstein

    It's turtles! And it's all the way down

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width