Home All Groups Group Topic Archive Search About

Update and delete sql not generated by wizard

Author
4 Mar 2007 2:26 AM
John
Hi

In my vb winform data app with sql server 2005 backend, when in dataset I
run the data adapter configuration wizard it generates insert and select sql
statements but not delete and update. As a result the data is not updated
when changed in form. What is the problem and how can I get the update and
delete statements generated?

Thanks

Regards

Author
4 Mar 2007 3:23 AM
RobinS
I could swear I've answered this before. Isn't your data table empty? Did
you try adding data to your tables and regenerating the dataset to see if
that was the problem?

Robin S.
--------------------------------
Show quote
"John" <John@nospam.infovis.co.uk> wrote in message
news:e90o4RgXHHA.1244@TK2MSFTNGP04.phx.gbl...
> Hi
>
> In my vb winform data app with sql server 2005 backend, when in dataset I
> run the data adapter configuration wizard it generates insert and select
> sql statements but not delete and update. As a result the data is not
> updated when changed in form. What is the problem and how can I get the
> update and delete statements generated?
>
> Thanks
>
> Regards
>
>
Author
4 Mar 2007 4:21 AM
John
Plenty of data in there. I can insert data just not update. Any ideas?

Thanks

Regards

Show quote
"RobinS" <RobinS@NoSpam.yah.none> wrote in message
news:K_ednYxYg8kkpnfYnZ2dnUVZ_r6vnZ2d@comcast.com...
>I could swear I've answered this before. Isn't your data table empty? Did
>you try adding data to your tables and regenerating the dataset to see if
>that was the problem?
>
> Robin S.
> --------------------------------
> "John" <John@nospam.infovis.co.uk> wrote in message
> news:e90o4RgXHHA.1244@TK2MSFTNGP04.phx.gbl...
>> Hi
>>
>> In my vb winform data app with sql server 2005 backend, when in dataset I
>> run the data adapter configuration wizard it generates insert and select
>> sql statements but not delete and update. As a result the data is not
>> updated when changed in form. What is the problem and how can I get the
>> update and delete statements generated?
>>
>> Thanks
>>
>> Regards
>>
>>
>
>
Author
4 Mar 2007 5:58 PM
RobinS
Does your table have a primary key?

Robin S.
-----------------------------
Show quote
"John" <John@nospam.infovis.co.uk> wrote in message
news:%23xJrXShXHHA.1296@TK2MSFTNGP02.phx.gbl...
> Plenty of data in there. I can insert data just not update. Any ideas?
>
> Thanks
>
> Regards
>
> "RobinS" <RobinS@NoSpam.yah.none> wrote in message
> news:K_ednYxYg8kkpnfYnZ2dnUVZ_r6vnZ2d@comcast.com...
>>I could swear I've answered this before. Isn't your data table empty? Did
>>you try adding data to your tables and regenerating the dataset to see if
>>that was the problem?
>>
>> Robin S.
>> --------------------------------
>> "John" <John@nospam.infovis.co.uk> wrote in message
>> news:e90o4RgXHHA.1244@TK2MSFTNGP04.phx.gbl...
>>> Hi
>>>
>>> In my vb winform data app with sql server 2005 backend, when in dataset
>>> I run the data adapter configuration wizard it generates insert and
>>> select sql statements but not delete and update. As a result the data
>>> is not updated when changed in form. What is the problem and how can I
>>> get the update and delete statements generated?
>>>
>>> Thanks
>>>
>>> Regards
>>>
>>>
>>
>>
>
>
Author
4 Mar 2007 4:11 PM
Earl
It's funny how the same questions get asked and answered repeatedly on the
forums. While some may say that this is the user's fault, I would say that
it is a failure by Microsoft to make the "obvious" truly obvious and to do a
better job of explaining the "obvious". Too often, the information being put
out is too disjointed.

Show quote
"RobinS" <RobinS@NoSpam.yah.none> wrote in message
news:K_ednYxYg8kkpnfYnZ2dnUVZ_r6vnZ2d@comcast.com...
>I could swear I've answered this before. Isn't your data table empty? Did
>you try adding data to your tables and regenerating the dataset to see if
>that was the problem?
>
> Robin S.
> --------------------------------
> "John" <John@nospam.infovis.co.uk> wrote in message
> news:e90o4RgXHHA.1244@TK2MSFTNGP04.phx.gbl...
>> Hi
>>
>> In my vb winform data app with sql server 2005 backend, when in dataset I
>> run the data adapter configuration wizard it generates insert and select
>> sql statements but not delete and update. As a result the data is not
>> updated when changed in form. What is the problem and how can I get the
>> update and delete statements generated?
>>
>> Thanks
>>
>> Regards
>>
>>
>
>
Author
4 Mar 2007 5:57 PM
RobinS
And some people, not getting a response, or not getting the response they
want, post their questions more than once.

Robin S.
----------------------------------------
Show quote
"Earl" <brikshoe@newsgroups.nospam> wrote in message
news:uba%23tenXHHA.4396@TK2MSFTNGP06.phx.gbl...
> It's funny how the same questions get asked and answered repeatedly on
> the forums. While some may say that this is the user's fault, I would say
> that it is a failure by Microsoft to make the "obvious" truly obvious and
> to do a better job of explaining the "obvious". Too often, the
> information being put out is too disjointed.
>
> "RobinS" <RobinS@NoSpam.yah.none> wrote in message
> news:K_ednYxYg8kkpnfYnZ2dnUVZ_r6vnZ2d@comcast.com...
>>I could swear I've answered this before. Isn't your data table empty? Did
>>you try adding data to your tables and regenerating the dataset to see if
>>that was the problem?
>>
>> Robin S.
>> --------------------------------
>> "John" <John@nospam.infovis.co.uk> wrote in message
>> news:e90o4RgXHHA.1244@TK2MSFTNGP04.phx.gbl...
>>> Hi
>>>
>>> In my vb winform data app with sql server 2005 backend, when in dataset
>>> I run the data adapter configuration wizard it generates insert and
>>> select sql statements but not delete and update. As a result the data
>>> is not updated when changed in form. What is the problem and how can I
>>> get the update and delete statements generated?
>>>
>>> Thanks
>>>
>>> Regards
>>>
>>>
>>
>>
>
>
Author
4 Mar 2007 4:42 AM
Cor Ligthert [MVP]
John,

I thought that it was when you was using timestamps, because in the other
situations I have tried it and it went well, however that was a while ago
that I did something with these generated statements.

Cor

Show quote
"John" <John@nospam.infovis.co.uk> schreef in bericht
news:e90o4RgXHHA.1244@TK2MSFTNGP04.phx.gbl...
> Hi
>
> In my vb winform data app with sql server 2005 backend, when in dataset I
> run the data adapter configuration wizard it generates insert and select
> sql statements but not delete and update. As a result the data is not
> updated when changed in form. What is the problem and how can I get the
> update and delete statements generated?
>
> Thanks
>
> Regards
>
>
Author
4 Mar 2007 4:08 PM
Earl
You need to have a primary key defined.

Show quote
"John" <John@nospam.infovis.co.uk> wrote in message
news:e90o4RgXHHA.1244@TK2MSFTNGP04.phx.gbl...
> Hi
>
> In my vb winform data app with sql server 2005 backend, when in dataset I
> run the data adapter configuration wizard it generates insert and select
> sql statements but not delete and update. As a result the data is not
> updated when changed in form. What is the problem and how can I get the
> update and delete statements generated?
>
> Thanks
>
> Regards
>
>

AddThis Social Bookmark Button