Solved

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

Posted on 2008-10-04
1
298 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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
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…
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…

839 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