Re: Amazming....but curious...
- From: "Cowboy \(Gregory A. Beamer\)" <NoSpamMgbworld@xxxxxxxxxxxxxxxxxx>
- Date: Sat, 21 Apr 2007 09:13:40 -0500
One more thing:
If you are using stored procedures for all of your work, it should not matter, as you are explicitly choosing the columns. As long as you do not remove an item, you are in complete control. If you add to schema, you can still use the old method until you are ready to update the procs and the XSDs.
--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
http://gregorybeamer.spaces.live.com
*********************************************
Think outside the box!
*********************************************
"TJ" <TJ@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:BFDDCD8D-3A66-433C-8E8B-6A800F11A941@xxxxxxxxxxxxxxxx
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],[B] from [Test]
where id=@xxxxxxxxxxxxx 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
.
- Follow-Ups:
- Re: Amazming....but curious...
- From: TJ
- Re: Amazming....but curious...
- Prev by Date: Re: Amazming....but curious...
- Next by Date: Re: Amazming....but curious...
- Previous by thread: Re: Amazming....but curious...
- Next by thread: Re: Amazming....but curious...
- Index(es):
Relevant Pages
|
Loading