As Cor said (I think), even if you could change it, the results would be
less than desirable. Consider that the entire class is generated code based
on the CommandText. Unlike an untyped DataSet, the strongly typed
TableAdapter assumes that the SQL used to fetch the rowset is unchanged. If
you simply want to change the WHERE clause, then you need to create another
Fill method (using the TableAdapter UI) that returns a different set of rows
but with the same signature (column schema).
hth
--
__________________________________________________________________________
William R. Vaughn
President and Founder Beta V Corporation
Author, Mentor, Dad, Grandpa
Microsoft MVP
(425) 556-9205 (Pacific time)
Hitchhiker’s Guide to Visual Studio and SQL Server (7th Edition)
http://betav.com http://betav.com/blog/billva
____________________________________________________________________________________________
"John" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> There is no way to achieve this? How does one change the existing SQL?
>
> "Cor Ligthert[MVP]" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> John,
>>
>> This is one of the main reasons why I don't like the TableAdapter.
>>
>> Cor
>>
>>
>> "John" <(E-Mail Removed)> wrote in message
>> news:(E-Mail Removed)...
>>> Hi
>>>
>>> I have a strongly typed dataset in my winform app. I need to access a
>>> specific command of a specific query of a specific table adapter of a
>>> specific table in the dataset in my code in one of the forms? How can I
>>> achieve this?
>>>
>>> I need something like this;
>>>
>>> x = MyDataset.MyTable.MyTableTableAdapter.MyQueryOne.CommandText
>>>
>>> Thanks
>>>
>>> Regards
>>>
>>
>
>