Click here to Skip to main content
15,906,816 members
Home / Discussions / Database
   

Database

 
Generaltransaction log in sql server 2000 Pin
sohne15-Apr-08 7:34
sohne15-Apr-08 7:34 
GeneralRe: transaction log in sql server 2000 Pin
Mark J. Miller15-Apr-08 12:02
Mark J. Miller15-Apr-08 12:02 
GeneralRe: transaction log in sql server 2000 Pin
sohne15-Apr-08 12:29
sohne15-Apr-08 12:29 
GeneralRe: transaction log in sql server 2000 Pin
GuyThiebaut16-Apr-08 1:09
professionalGuyThiebaut16-Apr-08 1:09 
GeneralImporting Excell to SQL Pin
Daniel_Logan15-Apr-08 2:57
Daniel_Logan15-Apr-08 2:57 
GeneralRe: Importing Excell to SQL Pin
DerekFL15-Apr-08 4:44
DerekFL15-Apr-08 4:44 
GeneralRe: Importing Excell to SQL Pin
Daniel_Logan16-Apr-08 23:56
Daniel_Logan16-Apr-08 23:56 
Generalwhere case statement Pin
markymark8215-Apr-08 0:57
markymark8215-Apr-08 0:57 
Hey all, Please help!

I have a delete statement that relys on data not being in another table, it is as follows:

delete MyTable
where substring(MyColumn, 1, charindex('/', MyColumn) - 1) not in (select MyOtherColumn from MyOtherTable)

The problem is that not all the rows contain a '/' so the statement will error as no int value is found for the length parameter coming from char index.

This needs to be done as a case statement I think, but I just can't find the correct syntax, I'm trying to avoid looping through each row as theres lots of them!

Any help would be greatly appreciated.

Many thanks in advance

Mark

Many divs make for very hard work
GeneralRe: where case statement Pin
Ashfield15-Apr-08 1:22
Ashfield15-Apr-08 1:22 
GeneralRe: where case statement Pin
markymark8215-Apr-08 1:30
markymark8215-Apr-08 1:30 
GeneralRe: where case statement Pin
Ashfield15-Apr-08 1:33
Ashfield15-Apr-08 1:33 
GeneralOuter join in sql2000 Pin
ramyasangeet14-Apr-08 20:45
ramyasangeet14-Apr-08 20:45 
GeneralRe: Outer join in sql2000 Pin
SomeGuyThatIsMe15-Apr-08 3:01
SomeGuyThatIsMe15-Apr-08 3:01 
GeneralRe: Outer join in sql2000 Pin
Ashfield15-Apr-08 3:20
Ashfield15-Apr-08 3:20 
QuestionDatabase Connection Pin
savitri14-Apr-08 20:28
savitri14-Apr-08 20:28 
GeneralRe: Database Connection Pin
Adeel Chaudhry21-Apr-08 23:28
Adeel Chaudhry21-Apr-08 23:28 
GeneralDelete can be rolled back Pin
.NET- India 14-Apr-08 20:11
.NET- India 14-Apr-08 20:11 
GeneralRe: Delete can be rolled back Pin
Ashfield14-Apr-08 21:47
Ashfield14-Apr-08 21:47 
GeneralSQL Server Stored Procedure Encryption Pin
Syed Mujtaba Hassan14-Apr-08 18:58
Syed Mujtaba Hassan14-Apr-08 18:58 
GeneralRe: SQL Server Stored Procedure Encryption Pin
SimulationofSai14-Apr-08 23:46
SimulationofSai14-Apr-08 23:46 
GeneralRe: SQL Server Stored Procedure Encryption Pin
Syed Mujtaba Hassan15-Apr-08 2:15
Syed Mujtaba Hassan15-Apr-08 2:15 
QuestionSQL If statement Pin
jonhbt14-Apr-08 7:20
jonhbt14-Apr-08 7:20 
GeneralRe: SQL If statement Pin
Blue_Boy14-Apr-08 7:31
Blue_Boy14-Apr-08 7:31 
AnswerRe: SQL If statement Pin
Zoltan Balazs14-Apr-08 7:48
Zoltan Balazs14-Apr-08 7:48 
AnswerRe: SQL If statement Pin
Ashfield15-Apr-08 1:32
Ashfield15-Apr-08 1:32 

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.