G
Guest
Hi,
Enviornment : Visual Studio .NET 2005 and SQL Server 2005
I created one stored procedure, let's say GetData()...Basically, what it
does is that it just returns data from table. (Select [A], from [Test]
where [email protected] like this...)
I created a strongly typed data set with that table, and set the GetData
procedure for Fill Query in table adapter....
It works fine....
there are two questions come to my mind...
1. When I tested to insert some records through generated dataset, it
worked.(I don't have any store procedure for insertion) It makes sense, but
is this insertion done by store procedure or just SQL text?...I guess SQL
query text...It seems to me that insert query automatically was created based
on the selected data(from GetData proceudre)....Does it mean that if I use
strongly typed data set with stored proceudre, am I losing some benefit of
store procedure?.....or insertion store procedure just created on the fly???
2. Once schema has been generated, what if the underlying database changes
so that I need to update the schema to generate new class??....Only way I
found the easiest way is dropping the table again on the XSD designer after
removing the old one......That's not very desirable way..too much work...set
any parameters again....Is there any way to synchronize with the DB easy and
efficiently?
Thanks ,
...................................................TJ
Enviornment : Visual Studio .NET 2005 and SQL Server 2005
I created one stored procedure, let's say GetData()...Basically, what it
does is that it just returns data from table. (Select [A], from [Test]
where [email protected] like this...)
I created a strongly typed data set with that table, and set the GetData
procedure for Fill Query in table adapter....
It works fine....
there are two questions come to my mind...
1. When I tested to insert some records through generated dataset, it
worked.(I don't have any store procedure for insertion) It makes sense, but
is this insertion done by store procedure or just SQL text?...I guess SQL
query text...It seems to me that insert query automatically was created based
on the selected data(from GetData proceudre)....Does it mean that if I use
strongly typed data set with stored proceudre, am I losing some benefit of
store procedure?.....or insertion store procedure just created on the fly???
2. Once schema has been generated, what if the underlying database changes
so that I need to update the schema to generate new class??....Only way I
found the easiest way is dropping the table again on the XSD designer after
removing the old one......That's not very desirable way..too much work...set
any parameters again....Is there any way to synchronize with the DB easy and
efficiently?
Thanks ,
...................................................TJ