Click here to Skip to main content
15,889,931 members
Home / Discussions / Database
   

Database

 
GeneralRe: I want that whenever i perform any insertion,updation or deletion on a table,... same operation would be performed in another table located at different server . Pin
Aman786Singh17-Jan-09 7:51
Aman786Singh17-Jan-09 7:51 
GeneralRe: I want that whenever i perform any insertion,updation or deletion on a table,... same operation would be performed in another table located at different server . Pin
Wendelius17-Jan-09 7:53
mentorWendelius17-Jan-09 7:53 
QuestionCASE / LIKE code will not compile. Pin
dptalt16-Jan-09 7:00
dptalt16-Jan-09 7:00 
AnswerRe: CASE / LIKE code will not compile. Pin
Wendelius16-Jan-09 8:24
mentorWendelius16-Jan-09 8:24 
GeneralRe: CASE / LIKE code will not compile. Pin
dptalt19-Jan-09 3:15
dptalt19-Jan-09 3:15 
GeneralRe: CASE / LIKE code will not compile. Pin
Wendelius19-Jan-09 6:50
mentorWendelius19-Jan-09 6:50 
QuestionTSQL Case error Pin
dptalt16-Jan-09 6:56
dptalt16-Jan-09 6:56 
AnswerRe: TSQL Case error Pin
Wendelius16-Jan-09 8:08
mentorWendelius16-Jan-09 8:08 
dptalt wrote:
Syntax error converting the varchar value '4,25' to a column of data type int


decimal separator in SQL is dot. If you're unable to modify it on the calling side, you can use replace function to modify it in the stored procedure or in the statement.

Also integer cannot handle decimals so you should use for example real as datatype:
tLD.idClientDeptNumb IN (
   CASE 
     WHEN @ciDept <> '' 
         THEN CONVERT(REAL, REPLACE(@ciDept, ',', '.')) 
      ELSE tLD.idClientDeptNumb 
   END...

But if you can, prefer using numeric variables if they contain numeric data.

The need to optimize rises from a bad design.My articles[^]

GeneralRe: TSQL Case error Pin
dptalt19-Jan-09 3:14
dptalt19-Jan-09 3:14 
GeneralRe: TSQL Case error Pin
Wendelius19-Jan-09 6:51
mentorWendelius19-Jan-09 6:51 
Questionsdf VS mdf Pin
Mohammad Dayyan16-Jan-09 2:34
Mohammad Dayyan16-Jan-09 2:34 
AnswerRe: sdf VS mdf Pin
Steve Hansen16-Jan-09 2:54
Steve Hansen16-Jan-09 2:54 
GeneralRe: sdf VS mdf Pin
Mohammad Dayyan16-Jan-09 2:58
Mohammad Dayyan16-Jan-09 2:58 
GeneralRe: sdf VS mdf Pin
Steve Hansen16-Jan-09 3:00
Steve Hansen16-Jan-09 3:00 
QuestionFalse Result at a SQLite Query [modified] Pin
Marty Glaubitz16-Jan-09 2:24
Marty Glaubitz16-Jan-09 2:24 
GeneralRe: False Result at a SQLite Query Pin
Luc Pattyn16-Jan-09 2:36
sitebuilderLuc Pattyn16-Jan-09 2:36 
QuestionGetting Count(*) ,SQL Server query for below requirement.. Pin
K V Sekhar15-Jan-09 23:13
K V Sekhar15-Jan-09 23:13 
AnswerRe: Getting Count(*) ,SQL Server query for below requirement.. Pin
Caio Kinzel Filho15-Jan-09 23:51
Caio Kinzel Filho15-Jan-09 23:51 
GeneralRe: Getting Count(*) ,SQL Server query for below requirement.. Pin
K V Sekhar16-Jan-09 0:05
K V Sekhar16-Jan-09 0:05 
QuestionDatabase Restore Error TSQL Pin
Vimalsoft(Pty) Ltd15-Jan-09 21:33
professionalVimalsoft(Pty) Ltd15-Jan-09 21:33 
AnswerRe: Database Restore Error TSQL Pin
Wendelius15-Jan-09 22:02
mentorWendelius15-Jan-09 22:02 
GeneralRe: Database Restore Error TSQL Pin
Vimalsoft(Pty) Ltd15-Jan-09 22:24
professionalVimalsoft(Pty) Ltd15-Jan-09 22:24 
GeneralRe: Database Restore Error TSQL Pin
Wendelius15-Jan-09 22:59
mentorWendelius15-Jan-09 22:59 
GeneralRe: Database Restore Error TSQL Pin
Vimalsoft(Pty) Ltd15-Jan-09 23:01
professionalVimalsoft(Pty) Ltd15-Jan-09 23:01 
GeneralRe: Database Restore Error TSQL Pin
Wendelius15-Jan-09 23:11
mentorWendelius15-Jan-09 23:11 

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.