Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Dang nab it..is there a way to auto fill the parameter collection with the parameters from a stored procedure?

 

I could eliminate so many lines of code...

 

I have a program that uses about 300 SP's and it would be so much easier if i could auto fill those values..I am writing a class that bascially has a method for each sp that fills the collection..tedious though...

 

thanks

 

:D

Posted
Take a look at the SqlCommandBuilder class' DeriveParameters method. It will supposedly do what you want, but I couldn't get it to work properly. In fact, I found the SqlCommandBuilder in general to be a knee-haltered piece of crap.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...