Re: DataTable.select problem with variables
- From: "Nicholas Paldino [.NET/C# MVP]" <mvp@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 1 May 2007 09:13:59 -0400
This is one of the things that has bugged me about the Select method on
the data set for the longest time. We have ways of parameterizing queries
to the database, and I always felt that we should have something similar for
datasets.
Fortunately, LINQ to DataSets will fix a lot of that.
--
- Nicholas Paldino [.NET/C# MVP]
- mvp@xxxxxxxxxxxxxxxxxxxxxxxxxxx
"Manikandan" <plmanikandan@xxxxxxxxx> wrote in message
news:1178019973.195673.179770@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
On May 1, 12:02 pm, "Jon Skeet [C# MVP]" <s...@xxxxxxxxx> wrote:
On May 1, 11:50 am, Manikandan <plmanikan...@xxxxxxxxx> wrote:
<snip>
I'm actually taking the values from database(sql server) and using in
select statement.
For demonstration only i used above code, is there any chance of
problem from sql server 2000
Possibly - it's hard to know for sure.
Could you post a short but complete program which demonstrates the
problem?
Seehttp://pobox.com/~skeet/csharp/complete.htmlfor more details.
Jon
Hi,
Thanks Jon
I found the mistake after adding the single quotes i gave a space and
then double quotes, while debugging it doesn't show the space(unable
to find the space while debugging, so i think it was correct)
mistaken one
string qry="s1= ' " + v1 + " ' AND s2=' " + v2 + " '" ;
Correct one
string qry="s1= '" + v1 + "' AND s2='" + v2 + "'" ;
Thank You,
Regards,
Mani
.
- References:
- DataTable.select problem with variables
- From: Manikandan
- Re: DataTable.select problem with variables
- From: Jon Skeet [C# MVP]
- Re: DataTable.select problem with variables
- From: Manikandan
- Re: DataTable.select problem with variables
- From: Jon Skeet [C# MVP]
- Re: DataTable.select problem with variables
- From: Manikandan
- DataTable.select problem with variables
- Prev by Date: Re: BinaryFormatter Serialization format? Is it documented?
- Next by Date: Re: C# or VB
- Previous by thread: Re: DataTable.select problem with variables
- Next by thread: What is the format of .imd file
- Index(es):
Relevant Pages
|