Solved

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

Posted on 2008-10-04
1
291 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
Comment Utility
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 run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

743 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now