Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
loiter99
Starting Member
38 Posts |
Posted - 2005-04-29 : 07:58:47
|
| Hello, I have a SP called from a web page, I want to avoid the EOF / BOF error message. How can I check for a null row count and return a message that the DS is empty? I would like the code in the SP, not on the ASP page.ThanksJ |
|
|
spirit1
Cybernetic Yak Master
11752 Posts |
Posted - 2005-04-29 : 08:04:29
|
well you can do if @@rowcount = 0 RAISERROR ('your error message', 16, 1)but why don't you simply check rs.RecordCount in ADO 3.0 or ds.Tables[0].Rows.Count in ado.net??Go with the flow & have fun! Else fight the flow |
 |
|
|
mfemenel
Professor Frink
1421 Posts |
Posted - 2005-04-29 : 08:46:57
|
| Or use if rs.eof or rs.bof in your asp page.Mike"oh, that monkey is going to pay" |
 |
|
|
loiter99
Starting Member
38 Posts |
Posted - 2005-04-29 : 12:13:06
|
| Thanks, I did the rs.eof and it worked, I was just doing if rs, I left off the .oef (rookie)J |
 |
|
|
|
|
|