N
news.microsoft.com
I have two database tables USER N - 1 PICTURE. (one picture can be
chosen by many users). A lot of users have not yet selected a picture,
so the foreign key pictureID in the USER-table is NULL.
I use typed datasets and use the VS.Net wizards to create dataadapters
and tables withing the datasets. I set the relationships myself and use
seed -1 and increment -1 and autoincrement true.
When I load my data into the datasets, I will have lots of children
(users) without parents (pictures). For one user I upload a picture, add
a new PictureRow in the myDataSet.Picture array and call
myDataAdapter.update(myDataSet, "PICTURE"). I then get this annoying
exception:
Prepared statement '(@username nvarchar(20),@password
nvarchar(20),@lastlogin date' expects parameter @username, which was not
supplied.
I dont understand this... Can anyone point me in the right direction so
i can help my orphanes get parents?
(I'm using SQL Server 2k, identity keys and db referential integrity)
chosen by many users). A lot of users have not yet selected a picture,
so the foreign key pictureID in the USER-table is NULL.
I use typed datasets and use the VS.Net wizards to create dataadapters
and tables withing the datasets. I set the relationships myself and use
seed -1 and increment -1 and autoincrement true.
When I load my data into the datasets, I will have lots of children
(users) without parents (pictures). For one user I upload a picture, add
a new PictureRow in the myDataSet.Picture array and call
myDataAdapter.update(myDataSet, "PICTURE"). I then get this annoying
exception:
Prepared statement '(@username nvarchar(20),@password
nvarchar(20),@lastlogin date' expects parameter @username, which was not
supplied.
I dont understand this... Can anyone point me in the right direction so
i can help my orphanes get parents?
(I'm using SQL Server 2k, identity keys and db referential integrity)