Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

When you use a DataSource in VS.05, it creates a DataTableAdapter in the [datasource] components part of your toolbox.

THis is great, as it already has all the tables, connection string etc.

 

However, if i want to retrieve only one record from the table rather than the entire table, how can i adjust the select command so taht i can add something like " ... where ID = 123" ? (this is something you could do by adjusting the select command of a normal oledbDataAdapter

 

Also am i wise to use the update method of the adapter or should i be performing the update another way?

 

 

Thanks

Posted

Thanks.

 

Can this adjustment be done in code at run time?

i'm wanting to adjust the adapter at run time so as to retrieve certain results based on a particular field.

 

I know this can be done by writing my own dataadapter, however i would like if i can adjust the code on the adapter component at run to try change it's select statement.

 

 

Thanks

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...