Click here to Skip to main content
15,902,635 members
Home / Discussions / Database
   

Database

 
AnswerRe: Shifting over a string Pin
Eric Dahlvang4-Aug-06 9:12
Eric Dahlvang4-Aug-06 9:12 
GeneralRe: Shifting over a string Pin
Tom Wright7-Aug-06 4:26
Tom Wright7-Aug-06 4:26 
GeneralRe: Shifting over a string Pin
Eric Dahlvang7-Aug-06 5:05
Eric Dahlvang7-Aug-06 5:05 
GeneralRe: Shifting over a string Pin
Tom Wright7-Aug-06 5:15
Tom Wright7-Aug-06 5:15 
GeneralRe: Shifting over a string Pin
Eric Dahlvang7-Aug-06 5:24
Eric Dahlvang7-Aug-06 5:24 
GeneralRe: Shifting over a string Pin
Tom Wright7-Aug-06 7:00
Tom Wright7-Aug-06 7:00 
GeneralRe: Shifting over a string Pin
Eric Dahlvang7-Aug-06 7:20
Eric Dahlvang7-Aug-06 7:20 
GeneralRe: Shifting over a string Pin
Tom Wright7-Aug-06 7:21
Tom Wright7-Aug-06 7:21 
Eric, mind if I ask you another question.

I'm calling a SP like this from my code:
myConnection.Open();
SqlCommand myCommand = new SqlCommand("EXEC LA_SP_NYSPINRESPONSE '"+ recType +"', 'P', '"+ Encoding.UTF8.GetString(ByteBuffer, 0, ByteBuffer.Length) +"', " + TrackNumber, myConnection);
myCommand.Connection = myConnection;
myCommand.ExecuteNonQuery();

This works great however on one of repsonses that I'm writing out there is a single quote in the data, thus causing a problem when passing this data to my SP. It thinks it's end quote to a string. Would parameters be better, to pass data that way then to concante it like I'm doing?

Thanks


Tom Wright
tawright915@gmail.com

GeneralRe: Shifting over a string Pin
Eric Dahlvang7-Aug-06 8:04
Eric Dahlvang7-Aug-06 8:04 
QuestionMultiple Tables and Reltionships Pin
klayalloy4-Aug-06 5:16
klayalloy4-Aug-06 5:16 
AnswerRe: Multiple Tables and Reltionships Pin
Rob Graham4-Aug-06 5:26
Rob Graham4-Aug-06 5:26 
QuestionRollback? Pin
psamy4-Aug-06 3:05
psamy4-Aug-06 3:05 
AnswerRe: Rollback? Pin
Ennis Ray Lynch, Jr.4-Aug-06 3:54
Ennis Ray Lynch, Jr.4-Aug-06 3:54 
AnswerRe: Rollback? [modified] Pin
Eric Dahlvang4-Aug-06 3:55
Eric Dahlvang4-Aug-06 3:55 
QuestionRead Table structure of Access Pin
p00kie3-Aug-06 23:38
p00kie3-Aug-06 23:38 
AnswerRe: Read Table structure of Access Pin
WillemM4-Aug-06 4:21
WillemM4-Aug-06 4:21 
AnswerRe: Read Table structure of Access Pin
Rob Graham4-Aug-06 5:11
Rob Graham4-Aug-06 5:11 
Questionconnection Pin
santhoshmohan3-Aug-06 23:26
santhoshmohan3-Aug-06 23:26 
AnswerRe: connection Pin
Ed.Poore4-Aug-06 0:03
Ed.Poore4-Aug-06 0:03 
GeneralRe: connection Pin
Paul Conrad4-Aug-06 7:16
professionalPaul Conrad4-Aug-06 7:16 
GeneralRe: connection Pin
Ed.Poore4-Aug-06 13:33
Ed.Poore4-Aug-06 13:33 
GeneralRe: connection Pin
Paul Conrad4-Aug-06 14:11
professionalPaul Conrad4-Aug-06 14:11 
GeneralOT Pin
Ed.Poore5-Aug-06 0:33
Ed.Poore5-Aug-06 0:33 
GeneralRe: OT Pin
Paul Conrad5-Aug-06 7:09
professionalPaul Conrad5-Aug-06 7:09 
AnswerRe: connection Pin
WillemM4-Aug-06 4:33
WillemM4-Aug-06 4:33 

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.