By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,152 Members | 2,039 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,152 IT Pros & Developers. It's quick & easy.

adding a stored procedure

P: n/a
I'm trying to add a stored procedure to my Visual C# Express project, but it
won't add, I try to drag it from the database explorer and drop it onto the
form like I've seen done before and it won't work. Can someone tell me a
manual way or a better method of referencing a stored procedure in C#
Express?

Thanks,

--
Luke Davis, MCSE: Security
DEM Networks - Senior Systems Architect
7225 N First, Suite 105
Fresno, CA 93720
Office: 1 (559) 439-1000
Fax: 1 (866) 640-2041
www.demnetworks.com
Jul 17 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a

You cannot drag & drop a storred procedure object onto a form in .NET. If
you want to use the results from a stored procedure you have to write some
code to call one from the database and specify where the results should go
into. Here is an example:

http://www.csharp-station.com/Tutori.../Lesson07.aspx

Adrian.
----
[Please mark my answer if it was helpful to you]

"Luke Davis" wrote:
I'm trying to add a stored procedure to my Visual C# Express project, but it
won't add, I try to drag it from the database explorer and drop it onto the
form like I've seen done before and it won't work. Can someone tell me a
manual way or a better method of referencing a stored procedure in C#
Express?

Thanks,

--
Luke Davis, MCSE: Security
DEM Networks - Senior Systems Architect
7225 N First, Suite 105
Fresno, CA 93720
Office: 1 (559) 439-1000
Fax: 1 (866) 640-2041
www.demnetworks.com
Jul 17 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.