Click here to Skip to main content
16,006,006 members
Home / Discussions / Database
   

Database

 
GeneralRe: How can i recover my database using LDF file .... Pin
koolprasad20036-Jul-07 19:21
professionalkoolprasad20036-Jul-07 19:21 
GeneralRe: How can i recover my database using LDF file .... Pin
Mike Dimmick7-Jul-07 2:17
Mike Dimmick7-Jul-07 2:17 
QuestionFreeText Search IN SQL SERVER 2005 Pin
adnanrafiq5-Jul-07 21:33
adnanrafiq5-Jul-07 21:33 
AnswerRe: FreeText Search IN SQL SERVER 2005 Pin
originSH5-Jul-07 22:02
originSH5-Jul-07 22:02 
GeneralRe: FreeText Search IN SQL SERVER 2005 Pin
adnanrafiq5-Jul-07 23:33
adnanrafiq5-Jul-07 23:33 
Questionhow to write switch case scenario in sp Pin
mohd imran abdul aziz5-Jul-07 20:29
mohd imran abdul aziz5-Jul-07 20:29 
AnswerRe: how to write switch case scenario in sp Pin
originSH5-Jul-07 22:03
originSH5-Jul-07 22:03 
AnswerRe: how to write switch case scenario in sp Pin
kubben6-Jul-07 2:09
kubben6-Jul-07 2:09 
sql actually has a very poor switch statement. It can only be used in select statements. It looks like this:

Select case
when col1 = 1 then 'true'
when col1 = 0 then 'false'
else 'false'
end -- case
from table1

You can also do:
Select case col1
when 1 then 'true'
when 2 then 'false'
else 'false'
end -- case
from table1

If you are just taking about program flow without select statements all you can use is if and else if statements.

Hope that helps.
Ben

QuestionCalculating the space occupied by each row in a table Pin
vijay25835-Jul-07 20:14
vijay25835-Jul-07 20:14 
AnswerRe: Calculating the space occupied by each row in a table Pin
Vishu Gurav6-Jul-07 11:13
Vishu Gurav6-Jul-07 11:13 
GeneralRe: Calculating the space occupied by each row in a table Pin
vijay25837-Jul-07 4:23
vijay25837-Jul-07 4:23 
AnswerRe: Calculating the space occupied by each row in a table Pin
Vishu Gurav7-Jul-07 13:26
Vishu Gurav7-Jul-07 13:26 
QuestionRe: Calculating the space occupied by each row in a table Pin
vijay25839-Jul-07 0:01
vijay25839-Jul-07 0:01 
AnswerRe: Calculating the space occupied by each row in a table Pin
Vishu Gurav9-Jul-07 6:44
Vishu Gurav9-Jul-07 6:44 
QuestionRe: Calculating the space occupied by each row in a table Pin
Vishu Gurav10-Jul-07 17:00
Vishu Gurav10-Jul-07 17:00 
QuestionProblem displaying colums as rows => need help Pin
masyarial5-Jul-07 16:09
masyarial5-Jul-07 16:09 
AnswerRe: Problem displaying colums as rows => revised Pin
masyarial5-Jul-07 21:36
masyarial5-Jul-07 21:36 
QuestionSQL Server 2005 Changing Table Names Pin
Richard Andrew x645-Jul-07 14:50
professionalRichard Andrew x645-Jul-07 14:50 
AnswerRe: SQL Server 2005 Changing Table Names Pin
originSH5-Jul-07 22:09
originSH5-Jul-07 22:09 
QuestionBind with an intermediate table Pin
Richard Blythe5-Jul-07 10:24
Richard Blythe5-Jul-07 10:24 
AnswerRe: Bind with an intermediate table Pin
Humble Programmer6-Jul-07 6:26
Humble Programmer6-Jul-07 6:26 
QuestionADO and MSACCESS [modified] Pin
AmirAlilou5-Jul-07 2:39
AmirAlilou5-Jul-07 2:39 
AnswerRe: ADO and MSACCESS Pin
martin_hughes5-Jul-07 3:11
martin_hughes5-Jul-07 3:11 
GeneralRe: ADO and MSACCESS Pin
AmirAlilou5-Jul-07 3:18
AmirAlilou5-Jul-07 3:18 
AnswerRe: ADO and MSACCESS Pin
martin_hughes5-Jul-07 5:49
martin_hughes5-Jul-07 5:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.