Click here to Skip to main content
15,909,193 members
Home / Discussions / Database
   

Database

 
AnswerRe: I have a problem in a SSIS solution !!! Pin
PIEBALDconsult11-Apr-12 3:15
mvePIEBALDconsult11-Apr-12 3:15 
GeneralRe: I have a problem in a SSIS solution !!! Pin
ma.amer11-Apr-12 3:24
ma.amer11-Apr-12 3:24 
GeneralRe: I have a problem in a SSIS solution !!! Pin
PIEBALDconsult11-Apr-12 14:38
mvePIEBALDconsult11-Apr-12 14:38 
GeneralRe: I have a problem in a SSIS solution !!! Pin
ma.amer24-Apr-12 13:02
ma.amer24-Apr-12 13:02 
GeneralRe: I have a problem in a SSIS solution !!! Pin
PIEBALDconsult24-Apr-12 13:29
mvePIEBALDconsult24-Apr-12 13:29 
AnswerRe: I have a problem in a SSIS solution !!! Pin
Mycroft Holmes11-Apr-12 12:50
professionalMycroft Holmes11-Apr-12 12:50 
GeneralRe: I have a problem in a SSIS solution !!! Pin
PIEBALDconsult11-Apr-12 14:39
mvePIEBALDconsult11-Apr-12 14:39 
QuestionWeird character conversion Pin
fd975010-Apr-12 22:21
professionalfd975010-Apr-12 22:21 
Hi,

Maybe somebody can explain a weird phenomenon I am, sometimes, seeing.

Using Microsoft SQL server (edition 2000) I have a stored procedure which returns a particular set of results. The result set is a simple SELECT from a temporary table, the odd result occurs in this returned column:
SQL


SQL
WC_Diff    = CASE WHEN EmpDiff > 0 AND WC_ID > 0 THEN
                '+' + CAST(EmpDiff AS VARCHAR(3)) + '  (' + CAST((NoOfEmp - EmpDiff) AS VARCHAR(3)) + ' » ' + CAST (NoOfEmp AS VARCHAR(3)) + ')'
               WHEN EmpDiff < 0 AND WC_ID > 0 THEN
                CAST (EmpDiff AS VARCHAR(3)) + '  (' + CAST((NoOfEmp - EmpDiff) AS VARCHAR(3)) + ' » ' + CAST(NoOfEmp AS VARCHAR(3)) + ')'
               ELSE NULL END,


The weird bit is the way the '»' character changes every now and again.
Using Microsoft's Query analyzer (or a variety of other client programs) the '»' character is sometimes modified to a '+' character. In the few cases it happens all I need to do to get the right output again is recompile the procedure without any change at all.
I first thought it was a problem with 8 bit ASCII to 7 bit ASCII conversion but that is not right: '»' has hex code 0xBB which would be converted to 0x3B (';') but it becomes 0x2b ('+').

I am baffled: anyone out there who knows what may be wrong ?

Any suggestions much appreciated.
AnswerRe: Weird character conversion Pin
fd975011-Apr-12 2:19
professionalfd975011-Apr-12 2:19 
Newsconnection to database Pin
Micah David10-Apr-12 7:18
Micah David10-Apr-12 7:18 
GeneralRe: connection to database Pin
Richard MacCutchan10-Apr-12 8:33
mveRichard MacCutchan10-Apr-12 8:33 
QuestionNative paging on Sql Server Pin
SSEAR10-Apr-12 6:13
SSEAR10-Apr-12 6:13 
AnswerRe: Native paging on Sql Server Pin
jschell10-Apr-12 8:54
jschell10-Apr-12 8:54 
GeneralRe: Native paging on Sql Server Pin
SSEAR10-Apr-12 18:37
SSEAR10-Apr-12 18:37 
GeneralRe: Native paging on Sql Server Pin
jschell11-Apr-12 10:03
jschell11-Apr-12 10:03 
AnswerRe: Native paging on Sql Server Pin
Mycroft Holmes10-Apr-12 12:59
professionalMycroft Holmes10-Apr-12 12:59 
GeneralRe: Native paging on Sql Server Pin
SSEAR10-Apr-12 18:41
SSEAR10-Apr-12 18:41 
AnswerRe: Native paging on Sql Server Pin
kalaisw11-Apr-12 21:52
kalaisw11-Apr-12 21:52 
Questionhow to insert mathematical and chemical formula in SQL server 2005 database Pin
pankaj30869-Apr-12 23:37
pankaj30869-Apr-12 23:37 
AnswerRe: how to insert mathematical and chemical formula in SQL server 2005 database Pin
Richard MacCutchan10-Apr-12 0:17
mveRichard MacCutchan10-Apr-12 0:17 
AnswerRe: how to insert mathematical and chemical formula in SQL server 2005 database Pin
jschell10-Apr-12 8:58
jschell10-Apr-12 8:58 
GeneralRe: how to insert mathematical and chemical formula in SQL server 2005 database Pin
pankaj308610-Apr-12 16:54
pankaj308610-Apr-12 16:54 
GeneralRe: how to insert mathematical and chemical formula in SQL server 2005 database Pin
jschell11-Apr-12 10:04
jschell11-Apr-12 10:04 
QuestionAppend data within XML file using form Pin
gdmoland9-Apr-12 8:56
gdmoland9-Apr-12 8:56 
AnswerRe: Append data within XML file using form Pin
Mycroft Holmes9-Apr-12 12:42
professionalMycroft Holmes9-Apr-12 12:42 

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.