Wrox Programmer Forums
|
VB.NET 2002/2003 Basics For coders who are new to Visual Basic, working in .NET versions 2002 or 2003 (1.0 and 1.1).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB.NET 2002/2003 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 26th, 2006, 03:46 PM
Registered User
 
Join Date: Jan 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default SqlDataAdapter Issue

I've just installed to Sql2005 Express (MSDE is also running on the same machine). Now when I try to add a SqlDataAdapter (running the wizard) using VB.Net 2003, I get a message that only the SELECT statement can be generated; that there are errors (unspecified) generating the INSERT/UPDATE/DELETE statements. Is there an issue here I'm missing? And a solution?

Thanks.

 
Old January 27th, 2006, 11:31 AM
Registered User
 
Join Date: Jan 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

It's been awhile, so I could be wrong but IIRC you 2003 couldn't generate insert/Update/delete code when it involved multiple tables.


Try to work without the wizards (once you feel comfortable), you'll learn alot more. :)


 
Old February 6th, 2006, 01:43 PM
Registered User
 
Join Date: Feb 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Make sure there is a "primary key" in the table you are selecting from, and that this is included in your SQL statement.






Similar Threads
Thread Thread Starter Forum Replies Last Post
sqldataadapter vgsgowrisankar C# 2005 7 April 23rd, 2008 04:32 PM
SqlDataAdapter DanRoche .NET Framework 1.x 3 August 20th, 2007 04:04 AM
SqlDataAdapter does not have its properties thaopham215 ASP.NET 2.0 Basics 13 December 6th, 2006 05:15 PM
sqlDataAdapter [email protected] ADO.NET 1 April 8th, 2004 12:28 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.