• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 305
  • Last Modified:

Unable to drag-and-drop stored procedures from VB Server Explorer

I am trying to create a SqlCommand for a stored procedure in VB 2008. I have SQL server running on another box. The database is visible in Server Explorer. When I drag and drop a stored procedure I created, nothing is created and no wizard appears. I want the parameters collection to be initialised automatically.

What should I check?

Thanks
0
smtwkla
Asked:
smtwkla
1 Solution
 
Kevin CrossChief Technology OfficerCommented:
You may be thinking about SqlDataSource.  You can drag and drop that from the ToolBox within VS and then using its wizard will allow you to pick from database connection and will write some code for you.  I don't think you can drag and drop from the database explorer to page and generate code you are trying to.

http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.sqldatasource.aspx

Regards,
Kevin
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now