Click here to Skip to main content
15,911,139 members
Home / Discussions / Database
   

Database

 
AnswerRe: Combining Columns In A ResultSet Pin
Private_Void1-Nov-06 5:20
Private_Void1-Nov-06 5:20 
AnswerRe: Combining Columns In A ResultSet Pin
Eric Dahlvang1-Nov-06 12:03
Eric Dahlvang1-Nov-06 12:03 
Questionconvert date without 0 Pin
yesu prakash31-Oct-06 20:11
yesu prakash31-Oct-06 20:11 
AnswerRe: convert date without 0 Pin
Mairaaj Khan1-Nov-06 0:36
professionalMairaaj Khan1-Nov-06 0:36 
QuestionMethod timer backup database in SQL server 2000! Pin
quynhnhi31-Oct-06 15:22
quynhnhi31-Oct-06 15:22 
AnswerRe: Method timer backup database in SQL server 2000! Pin
Rob Graham31-Oct-06 16:29
Rob Graham31-Oct-06 16:29 
QuestionCommit StoreProc From ASP.net App Pin
mahesh kukkadapu31-Oct-06 9:11
mahesh kukkadapu31-Oct-06 9:11 
QuestionCase statement issue Pin
VK-Cadec31-Oct-06 8:40
VK-Cadec31-Oct-06 8:40 
Hi,

Have the following case statement:
select
case
when upper(code) = 'TWASH' then (@t_wash = count(ISNULL(code,0)))
when upper(s5.code) = 'TT-WASH' then (@tt_wash = count(ISNULL(s5.code,0)))
end

from table

for some reason it keep coming back with "Incorrect syntax near '='." that would be the first "when" statement. Can we assign variables in case-statement?

Thanks.
AnswerRe: Case statement issue Pin
VK-Cadec31-Oct-06 8:58
VK-Cadec31-Oct-06 8:58 
GeneralRe: Case statement issue Pin
Mairaaj Khan1-Nov-06 1:02
professionalMairaaj Khan1-Nov-06 1:02 
AnswerRe: Case statement issue Pin
Rob Graham31-Oct-06 9:03
Rob Graham31-Oct-06 9:03 
GeneralRe: Case statement issue Pin
VK-Cadec31-Oct-06 9:05
VK-Cadec31-Oct-06 9:05 
QuestionSQL Server 2005 dialect Pin
WSonck31-Oct-06 7:40
WSonck31-Oct-06 7:40 
QuestionSQL Server access problem Pin
hasanali0031-Oct-06 3:34
hasanali0031-Oct-06 3:34 
AnswerRe: SQL Server access problem Pin
Aby Thomas Varghese31-Oct-06 6:32
Aby Thomas Varghese31-Oct-06 6:32 
AnswerRe: SQL Server access problem Pin
hasanali001-Nov-06 1:22
hasanali001-Nov-06 1:22 
QuestionNHibernate and Visual Studio 2005 Pin
WSonck31-Oct-06 2:10
WSonck31-Oct-06 2:10 
QuestionServers backup which are connected by VNP Pin
Amy200031-Oct-06 0:36
Amy200031-Oct-06 0:36 
QuestionHow to do a sequential select in a stored procedure? [modified] Pin
Belfast Child30-Oct-06 23:45
Belfast Child30-Oct-06 23:45 
AnswerRe: How to do a sequential select in a stored procedure? Pin
Belfast Child31-Oct-06 8:10
Belfast Child31-Oct-06 8:10 
AnswerRe: How to do a sequential select in a stored procedure? Pin
Eric Dahlvang31-Oct-06 11:45
Eric Dahlvang31-Oct-06 11:45 
GeneralRe: How to do a sequential select in a stored procedure? Pin
Belfast Child31-Oct-06 22:29
Belfast Child31-Oct-06 22:29 
GeneralRe: How to do a sequential select in a stored procedure? Pin
Eric Dahlvang1-Nov-06 3:00
Eric Dahlvang1-Nov-06 3:00 
AnswerRe: How to do a sequential select in a stored procedure? [modified] Pin
Damodar Periwal1-Nov-06 8:35
Damodar Periwal1-Nov-06 8:35 
QuestionInsert new rows from a dataset to Sql server database Pin
biglewy30-Oct-06 22:25
biglewy30-Oct-06 22:25 

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.