-----------------------------------------------------------
New Message on BDOTNET
-----------------------------------------------------------
From: sans
Message 1 in Discussion
All, I am using dataadapter.update method to insert bulk data into the sql
DB. i am using the code below.
sqlcommand =
(SqlCommand)ESDataAccessProvider.ConstructCommand("MAT","MATSaveCostCenter");
sqlcommand.Connection = (SqlConnection)esDataaccessprovider.FetchConnection();
sqlcommand.Parameters["@Country"].SourceColumn =
dsGeniData.Tables[0].Columns[0].ColumnName;
sqlcommand.Parameters["@CostCenter"].SourceColumn =
dsGeniData.Tables[0].Columns[1].ColumnName;
sqlcommand.Parameters["@Description"].SourceColumn =
dsGeniData.Tables[0].Columns[2].ColumnName;
sqlcommand.Parameters["@DataFrecuency"].SourceColumn=
dsGeniData.Tables[0].Columns[3].ColumnName;
sqlcommand.Parameters["@Flag"].Value= 'I';
sqlcommand.Parameters["@Error"].Direction = ParameterDirection.Output;
//sqlcommand.Parameters["@Return_value"].Direction = ParameterDirection.Output;
sqlDA.InsertCommand = sqlcommand;
int retvalue = sqlDA.Update(dsGeniData,dsGeniData.Tables[0].ToString());
This code runs without any problem but does not insert even 1 row inot the DB.
I am actually fetching the data from oracle and want to insert into SQL server.
the fetched data is in a dataset (dsGeniData) .I have checked the dataset and
it has records in it.
can any body please let me know if i am missing any code or any thing.
thnaks in advance.
Santosh
-----------------------------------------------------------
To stop getting this e-mail, or change how often it arrives, go to your E-mail
Settings.
http://groups.msn.com/BDotNet/_emailsettings.msnw
Need help? If you've forgotten your password, please go to Passport Member
Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help
For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact
If you do not want to receive future e-mail from this MSN group, or if you
received this message by mistake, please click the "Remove" link below. On the
pre-addressed e-mail message that opens, simply click "Send". Your e-mail
address will be deleted from this group's mailing list.
mailto:[EMAIL PROTECTED]