Solved

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

Posted on 2008-10-04
1
297 Views
Last Modified: 2013-12-25
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
Comment
Question by:smtwkla
1 Comment
 
LVL 59

Accepted Solution

by:
Kevin Cross earned 250 total points
ID: 22643071
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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to use odbc in vb to connect to ms sql 14 52
Run a batch file when a Crystal Report is opened 5 27
Email Notifications for SQL 2005 9 27
Sql server insert 13 28
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
In this article I will describe the Copy Database Wizard method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

785 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question