Asad
Asad

Reputation: 21928

visual studio DataSet designer with stored-procedures ? what is this icon

What does this icon mean is Visual studio, visual Data Set designer. I have several stored procedures.

can you help me understand,

alt text

Thanks

Upvotes: 2

Views: 1418

Answers (2)

Carter Medlin
Carter Medlin

Reputation: 12495

Each table has a default query (The one on top with the check on it). When you dragged your tables in to the dataset to create the query, it wrote a SQL statement which it uses to schema your table. Keep that query simple, you might not actually use it in code, and you can always edit that query to update the table schema. In the picture you provided, your default query is actually a stored procedure.

Every time you open the default query it connects to your datasource and allows you to select new columns that weren't in there before. If you want to update your existing columns, delete all the columns out of the table before you attempt to open the query. When you save the query, your updated columns get added back.

Make sure your connection string has permissions to view column information.

Upvotes: 1

Jay Riggs
Jay Riggs

Reputation: 53603

Because that item contains the method(s) that define the schema of the table the TableAdapter is part of.

The default names are Fill and GetData. Looks like you renamed them.

Upvotes: 2

Related Questions