• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Select Statement Stored Procedures in MS sql server not returning anything...

 
Ranch Hand
Posts: 802
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
ok,

here is my 'driver class' :



the SqlComand.Fill() method:



and finally, here is the stored procedure....



ok the problem is, when i take the 'where itemnumber = @Itemnumber' out of the
sproc, the resultset gets filled fine and I see it print, but if i uncomment/put the
'where itemnumber = @itemnumber' then the resultset doesn't get filled for some
reason...

Am I missing something?

Thanks,

Justin Fox>
 
Ranch Hand
Posts: 405
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

Are you able to call stored procedure directly without using the application ?

 
Justin Fox
Ranch Hand
Posts: 802
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I don't really understand what you mean. I can call the stored procedure from the MS Sql management studio in a query,
but I need to call it from the app.

And like I said before, if i take out the 'where itemnumber = @itemnumber' then the resultset gets filled if I leave it in there
it doesn't get filled.

its weird too because the parameter is always there, but when i use it, it doesn't work.

thanks,

Justin
 
Nothing? Or something? Like this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic