|
-
Jan 9th, 2008, 08:33 AM
#1
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
-
Jan 9th, 2008, 10:01 AM
#2
Thread Starter
Addicted Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|