Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / IDE / May 2006

Tip: Looking for answers? Try searching our database.

Can't drag-drop SQL objects

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
JT - 08 May 2006 17:24 GMT
Hi,
I am making the leap from VS2003 to 2005.  In the 03 version, I could open a
connection to a SQL 2000 database and drag a stored procedure to the form
designer and I would have created for me a sqlcommand and sqlconnection
object.  In VS2005, when I drop a stored procedure onto the designer, I get a
drag-drop cursor, but no object appears on Mouse-Up.  What I now have to do
is add a SQLCommand object from the toolbar, drop this onto the designer, set
its connection, indicate that it is a stored procedure.  After all of this, I
am able to use a VERY SMALL drop down to choose which stored procedure or
function to use.  After choosing my sproc, the parameters collection is NOT
populated.  To get that to happen, I have to rename the sproc with the prefix
dbo.  I am then asked to regenerate the parameters, which works.

I can't imagine that this behavior of the IDE is by design.  Have I got
something in my environment that is not right?  When I originally installed
VS2005, I had the release version of SQL Server 2005 on the box.  I then
uninstalled SQL 2005, and installed SQL 2000 in its place.  Could this be the
problem?

Thanks.
Signature

John

"Gary Chang[MSFT]" - 09 May 2006 07:12 GMT
Hi John,

Thank you posting!

>I can't imagine that this behavior of the IDE is by design.  
>Have I got something in my environment that is not right?

You still can drag-drop SQL SP object in Visual Studio 2005 IDE, but unlike
VS2003, you need to create a dataset at first, then drag-drop a SP object
into its corresponding dataset's designer. You cannot add it to the Winform
designer directly. This new feature is by design in VS2005.

Thanks for your understanding.

Best regards,

Gary Chang
Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.