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]
-
(E-Mail Removed)
"Manikandan" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> On May 1, 12:02 pm, "Jon Skeet [C# MVP]" <s...@pobox.com> wrote:
>> On May 1, 11:50 am, Manikandan <plmanikan...@gmail.com> 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
>
>