Click here to Skip to main content
15,900,818 members
Home / Discussions / Database
   

Database

 
GeneralRe: string truncation Pin
Mycroft Holmes13-Nov-11 6:13
professionalMycroft Holmes13-Nov-11 6:13 
GeneralRe: string truncation Pin
Luc Pattyn13-Nov-11 6:35
sitebuilderLuc Pattyn13-Nov-11 6:35 
QuestionTrying to get Pivot Table working in MS SQL 2005 Pin
VREntropy9-Nov-11 8:56
VREntropy9-Nov-11 8:56 
AnswerRe: Trying to get Pivot Table working in MS SQL 2005 Pin
Mycroft Holmes13-Nov-11 6:06
professionalMycroft Holmes13-Nov-11 6:06 
GeneralRe: Trying to get Pivot Table working in MS SQL 2005 Pin
VREntropy14-Nov-11 3:13
VREntropy14-Nov-11 3:13 
Questionhow to avoid this error? Pin
Jassim Rahma9-Nov-11 5:22
Jassim Rahma9-Nov-11 5:22 
AnswerRe: how to avoid this error? Pin
loyal ginger9-Nov-11 5:41
loyal ginger9-Nov-11 5:41 
AnswerRe: how to avoid this error? Pin
jschell9-Nov-11 11:25
jschell9-Nov-11 11:25 
jrahma wrote:
so how can I avoid the error?


The tick is a special character. You are ignoring that possibility.
That is the cause of the error.

There can be other special characters as well.

As noted in the other reply you should use parameter replacement, which many database APIs (different types, different programming languages) provide.

If you absolutely cannot do that then you would need to either
1. Determine what special characters exist for your database and deal with them yourself.
2. Limit all input to a known safe set of characters and verify each input value FIRST before attempting to use it in SQL.
QuestionCannot connect a remote SQL server 2005... Pin
Jun Du9-Nov-11 3:35
Jun Du9-Nov-11 3:35 
AnswerRe: Cannot connect a remote SQL server 2005... Pin
Luc Pattyn9-Nov-11 4:01
sitebuilderLuc Pattyn9-Nov-11 4:01 
GeneralRe: Cannot connect a remote SQL server 2005... Pin
Jun Du9-Nov-11 4:49
Jun Du9-Nov-11 4:49 
AnswerRe: Cannot connect a remote SQL server 2005... Pin
Luc Pattyn9-Nov-11 4:54
sitebuilderLuc Pattyn9-Nov-11 4:54 
GeneralRe: Cannot connect a remote SQL server 2005... Pin
Jun Du9-Nov-11 5:09
Jun Du9-Nov-11 5:09 
QuestionMS SQL Server Trigger help Pin
eddjusted9-Nov-11 3:18
eddjusted9-Nov-11 3:18 
AnswerRe: MS SQL Server Trigger help Pin
R. Giskard Reventlov9-Nov-11 3:49
R. Giskard Reventlov9-Nov-11 3:49 
GeneralRe: MS SQL Server Trigger help Pin
eddjusted9-Nov-11 3:56
eddjusted9-Nov-11 3:56 
AnswerRe: MS SQL Server Trigger help Pin
Corporal Agarn9-Nov-11 6:26
professionalCorporal Agarn9-Nov-11 6:26 
QuestionMySQL query help Pin
eddjusted9-Nov-11 3:02
eddjusted9-Nov-11 3:02 
AnswerRe: MySQL query help Pin
Blue_Boy9-Nov-11 3:18
Blue_Boy9-Nov-11 3:18 
GeneralRe: MySQL query help Pin
eddjusted9-Nov-11 3:20
eddjusted9-Nov-11 3:20 
AnswerRe: MySQL query help Pin
Bernhard Hiller9-Nov-11 20:56
Bernhard Hiller9-Nov-11 20:56 
QuestionProblem in query Pin
uspatel8-Nov-11 18:52
professionaluspatel8-Nov-11 18:52 
AnswerRe: Problem in query Pin
_Damian S_8-Nov-11 18:59
professional_Damian S_8-Nov-11 18:59 
GeneralRe: Problem in query Pin
uspatel8-Nov-11 19:28
professionaluspatel8-Nov-11 19:28 
AnswerRe: Problem in query Pin
Blue_Boy8-Nov-11 21:36
Blue_Boy8-Nov-11 21:36 

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.