Results 1 to 7 of 7

Thread: Another select statement

Hybrid View

  1. #1
    A SQL Server fool GaryMazzone's Avatar
    Join Date
    Aug 2005
    Location
    Dover,NH
    Posts
    7,493

    Re: Another select statement

    If using ADO and VB6 test for recordset EOF and BOF if they are true then No records.

    If using ADO.Net and VB.Net for Datareaders check the .HasRows property. For DataSets test if the dataset.Table(#).Rows.RowCount() > 0
    Sometimes the Programmer
    Sometimes the DBA

    Mazz1

  2. #2

    Thread Starter
    Addicted Member
    Join Date
    Mar 2001
    Posts
    138

    Re: Another select statement

    Gary/L

    Thanks a bunch, here I am on my first application using .net and having this kind of problems, so thanks for battling with me here

    I was trying to get the same prop or meth from datatable.

    I am using sqlclient to connect to the sql server


    so I have a sqladapter.fill(ds) where ds is my datatable object
    then I populate my datagrid with my ds

    But before I do all this I would like to know if the select statement comes back with something or not

    Thanks again

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width