Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.1
|
ASP.NET 1.1 As of 10/6/2005, this forum is locked as part of the reorganization described here: http://p2p.wrox.com/topic.asp?TOPIC_ID=35394. No posts have been deleted. Open ongoing discussions from the last week have been moved to either ASP.NET 1.0 and 1.1 Beginners http://p2p.wrox.com/asp-net-1-0-1-1-basics-60/ or ASP.NET 1.0 and 1.1 Professional. http://p2p.wrox.com/forum.asp?FORUM_ID=50. See my sticky post inside for more.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.1 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 May 16th, 2005, 01:34 PM
Friend of Wrox
 
Join Date: Mar 2005
Posts: 264
Thanks: 0
Thanked 0 Times in 0 Posts
Default Data adapter configureation error

Data adapter configureation error

Hi everybody. I got a db in sql server and it has 6 tables inside it .One of
the table that i want to create a datagrid using visual studio .net 2003 is
called matches. Unfortunetly when i try Right-click on the DataAdapter and choose Generate DataSet
i get the following errors.The table matches exist in sql server 2000 with data inside it but
i do not know why i get these error. I be happy if some one help me fix this problem.Thanks

1)Data adapter configureation error

Generated INSERT statement
Could not determine which columns uniquely identify the rows for "MATCHES"

Generated Delete statement

Cold not determine which columns uniquely identify the rows for " MATCHES"

2)date adaper configuration wizard

The wizard detected the following problems when configurng the data adapter
"sqlDataAdapter1"

Details:

Generated SELECT statement
invalid object name " matches"

3)
sqlDataAdpater1.The data adapter could not return the data from the
data source.

Invalid objet name "MATCHES"

4)
Retrieving the schema for SqlDataAdpater1 failed.
Invalid object name "MATCHES"
 
Old May 16th, 2005, 01:42 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

Errors 1 and 2 indicate that you don't have any primary key specified for the table. Establish a primary key and try again.

-Peter
 
Old May 16th, 2005, 02:06 PM
Friend of Wrox
 
Join Date: Mar 2005
Posts: 264
Thanks: 0
Thanked 0 Times in 0 Posts
Default

thank u for u reply. Do u mean should i declare a column in sql server as a primary key? since i am new to sql server. could u guide me where i can declare a column as primary key?thanks

 
Old May 16th, 2005, 04:42 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

Yes, you need to define a column in your table as the primary key. This can be done with transact SQL (CREATE TABLE... script) or with the SQL enterprise manager.

-Peter





Similar Threads
Thread Thread Starter Forum Replies Last Post
Data Adapter Configuration Wizard martyO VS.NET 2002/2003 1 February 2nd, 2005 03:00 AM
Data Adapter Configuration Wizard martyO BOOK: Beginning VB.NET 2nd Edition/Beginning VB.NET 2003 0 February 1st, 2005 06:35 PM
Data Adapter k_kosaraju ADO.NET 1 October 31st, 2004 09:51 AM
SQL Data Adapter jbenson001 ASP.NET 1.x and 2.0 Application Design 6 December 18th, 2003 12:13 PM





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