Solved

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

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
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…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

863 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

25 Experts available now in Live!

Get 1:1 Help Now