On Wed, Jun 2, 2010 at 11:12 AM, Gururaj Balagar
<[email protected]> wrote:
>
>
> On 5/30/10, Puspa <[email protected]> wrote:
>>
>> Hi All,
>> I need to check data inside the table of sql server.If the data
>> exist,it show the existence  of data.Actually i used for loop for
>> checking,
>> but it didn't give proper result.so i need help from u that how to
>> check exist data in sql server using dataset?I need coding in c#.
>>
>> Thanks in advance
>
>
>  I have given 2 example  check
>  You can use foreach loop
----------------------

Why? You have .Count and when it is >0 you have data.

This person seems to have never supplied any indication of sharing
code on what they were doing.  When asked for a SQL statement they
went blank.

For people who want to learn they will read what is asked for and
comply.  As they give more we give a lot more.  But if you want us to
just do your work for you well I'll gladly help you waste all of our
time.  ;->

Whatever container your data will reside in has a .Count or a .Length
check that vale and act upon its outcome.

Iterate through data is foolish.  You can Linq a query when you are
dealing with complicated collections of collections.

This past weekend I saw a few of the movies and am reminded to repeat
the line.  "Use the force Luke."


-- 
Stephen Russell

Sr. Production Systems Programmer
CIMSgts

901.246-0159 cell

Reply via email to