Re: re:SQL Insert Command - Field with Punctuation
From: W.G. Ryan eMVP (WilliamRyan_at_NoSpam.gmail.com)
Date: 10/27/04
- Next message: CT: "Re: ADO.NET timeout"
- Previous message: Douglas Buchanan: "Re: Cannot define the DataMember in code"
- In reply to: jbardrof: "re:SQL Insert Command - Field with Punctuation"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 27 Oct 2004 00:20:56 -0400
Add a Semicolon at the end of each line and just change the declaration ie
SqlCommand cmd = new SqlCommand(sqlInsert, connection);
Definitely want to avoid the dynamic sql - nothing but drama if you're not
using parameters.
-- W.G. Ryan MVP (Windows Embedded) TiBA Solutions www.tibasolutions.com | www.devbuzz.com | www.knowdotnet.com "jbardrof" <jbardrof@gmail-dot-com.no-spam.invalid> wrote in message news:417ef1e8$1_2@Usenet.com... > how would i do that in c#? > > *-----------------------* > Posted at: > www.GroupSrv.com > *-----------------------*
- Next message: CT: "Re: ADO.NET timeout"
- Previous message: Douglas Buchanan: "Re: Cannot define the DataMember in code"
- In reply to: jbardrof: "re:SQL Insert Command - Field with Punctuation"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|