Update database with a dataset
- From: "shmeian" <shmeian@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 28 Apr 2005 15:38:01 -0700
I have a dataset which contains data to replace (most of) the data in an
sqlserver database.
Currently I'm doing this by truncating the tables, and then using a
dataadapter.update() method call to insert the new data having instantiated a
SqlCommandBuilder object.
This works fine but I have to have insert permissions set on all the tables
in the db.
Is there some way of using one stored proc to facilitate the same end
result? Ideally I want all access to the database to go through stored procs
but I don't want to write a stored proc for every table that needs to be
updated (there's more than 50 tables).
Thanks
.
- Follow-Ups:
- Re: Update database with a dataset
- From: Val Mazur \(MVP\)
- Re: Update database with a dataset
- Prev by Date: ORACLE CLOBS IN ORACLE STORED PROCEDURE
- Next by Date: Re: Update database with a dataset
- Previous by thread: ORACLE CLOBS IN ORACLE STORED PROCEDURE
- Next by thread: Re: Update database with a dataset
- Index(es):
Relevant Pages
|
|