.NET Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgramming.NET Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old April 14th, 2003, 05:05 PM
smorrison smorrison is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Posts: 2 smorrison User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Missing SqlDataReader

Just doing some experimenting with Webservices and I seem to have run into a snag. <br><div class="msgQuoteWrap"><div class="msgCode"><br> Dim dr As SqlDataReader = oHours.FetchTOEmpHoursMax(sEmp, oCnn)<br> While dr.Read<br> mxSick = dr("sicktime")<br> mxVac = dr("vacationtime")<br> End While<br></div></div><br>for some reason, my dr is coming back as nothing. here's the FetchTOEmpHoursMax code<br><div class="msgQuoteWrap"><div class="msgCode"><br> Public Function FetchTOEmpHoursMax(ByVal sEmp As String, ByVal oCnn As SqlConnection) As SqlDataReader<br> Dim sPArray(0) As SqlParameter<br> Try<br> sPArray(0) = New SqlParameter("@emp", sEmp)<br> FetchTOEmpHoursMax = SqlHelper.ExecuteReader(oCnn.ConnectionString, CommandType.StoredProcedure, "Fetch_Emp_HoursMax", sPArray)<br> Catch ex As Exception<br> ExceptionManager.Publish(ex)<br> Throw ex<br> End Try<br> End Function<br></div></div><br><br>I know my sproc is ok, as i've tested in and it works. In fact this function has been cut and pasted from another page that works fine. Yet for some reason this function only returns nothing. Anybody got any ideas? <img border="0" src="/forum/emoticons/sad.gif" height="15" width="15" alt="sad" />

Reply With Quote
  #2  
Old April 14th, 2003, 05:22 PM
smorrison smorrison is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Posts: 2 smorrison User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
It's amazing, apparently I still managed to copy the storedproc name incorrectly. <br>I've been staring at this too long, time for a break.

Reply With Quote
Reply

Viewing: ASP Free ForumsProgramming.NET Development > Missing SqlDataReader


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT