Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Development Tools
 ASP.NET
 switch statement

Author  Topic 

shemayb
Posting Yak Master

159 Posts

Posted - 2007-07-24 : 03:02:09
can i insert a select statement in a switch?

Funnyfrog

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2007-07-24 : 03:09:12
No, a switch is an electrical device who routes network packages. It has nothing to do with databases.



Peter Larsson
Helsingborg, Sweden
Go to Top of Page

shemayb
Posting Yak Master

159 Posts

Posted - 2007-07-24 : 03:11:46
a switch statement..not an electrical device

Funnyfrog
Go to Top of Page

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2007-07-24 : 03:21:15
In SQL Server, I think you mean a CASE statement.
If so, yes it is possible.


Peter Larsson
Helsingborg, Sweden
Go to Top of Page

shemayb
Posting Yak Master

159 Posts

Posted - 2007-07-24 : 03:37:14
yes, a case statement..in C#..

Funnyfrog
Go to Top of Page
   

- Advertisement -