A general question about SQL statement
From: Michael (m_at_m.com)
Date: 08/13/04
- Next message: JohnM: "Re: RichTextBox and Hyperlinks"
- Previous message: kate sporks: "DrawString and WhiteSpace"
- Next in thread: Jon Skeet [C# MVP]: "Re: A general question about SQL statement"
- Reply: Jon Skeet [C# MVP]: "Re: A general question about SQL statement"
- Reply: Bob Grommes: "Re: A general question about SQL statement"
- Reply: Tim Holgerson: "Re: A general question about SQL statement"
- Reply: Nick Malik: "Re: A general question about SQL statement"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 12 Aug 2004 17:10:13 -0700
Hi all,
I would like to get people's opinion about executing SQL statements in C#
(or any other .NET language really). I used to create my SQL statement by
building a string and replacing single quote with two single quotes.
Sometimes, I used SqlParameter. Maybe, I'm a bit lazy when I build the SQL
string. Should I always use SqlParameters? What are the
advantages/disadvantages between building SQL string and using SqlParameter?
Does one perform better than the other?
Thanks.
Michael
- Next message: JohnM: "Re: RichTextBox and Hyperlinks"
- Previous message: kate sporks: "DrawString and WhiteSpace"
- Next in thread: Jon Skeet [C# MVP]: "Re: A general question about SQL statement"
- Reply: Jon Skeet [C# MVP]: "Re: A general question about SQL statement"
- Reply: Bob Grommes: "Re: A general question about SQL statement"
- Reply: Tim Holgerson: "Re: A general question about SQL statement"
- Reply: Nick Malik: "Re: A general question about SQL statement"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|