[已关闭问题]
<P mce_keep="true">一个很奇怪的问题,将存储过程中的参数的顺序变了之后,存储的数据库中的数据的值也变了<BR>有谁能告诉我这是为什么??非常急!!</P>
<P mce_keep="true">//掉用存储的方法</P>
<P mce_keep="true">public void SavePersonToPosition(DataSet TempDataSet)<BR>{</P>
<P mce_keep="true"> TempDataSet.Tables[0].Columns.Remove("abc");//人员功能表中没有该字段,我将他从<BR> // TempDataSet中移出</P>
<P mce_keep="true"> SaveDataSetByStorageProcess(strConn, TempDataSet, "ID", PositionPersonMap_ADD", </P>
<P mce_keep="true"> "PositionPersonMap_Delete", "PositionPersonMap_Update", strClientIP);</P>
<P mce_keep="true">//传人的TempDataSet .Table[0]中 PositionID = 11 PersonID =22</P>
<P mce_keep="true">}</P>
<P mce_keep="true"> </P>
<P mce_keep="true">//数据存储方法</P>
<P mce_keep="true">public void SaveDataSetByStorageProcess(string strConn, DataSet dsObject, string strKey, </P>
<P mce_keep="true">string strStoredProcInsertCommand, string strStoredProcDeleteCommand, string </P>
<P mce_keep="true">strStoredProcupdateCommand)<BR>{</P>
<P mce_keep="true"> Database db = DatabaseFactory.CreateDatabas(strConn);<BR> String columnName = "";<BR> System.Type columnType;<BR> int columnsCount = 0;<BR> DataSet ds = new DataSet();<BR> ds = dsObject;<BR> DataTable table = new DataTable();<BR> table = ds.Tables[strTableName];<BR> columnsCount = table.Columns.Count;<BR> DbCommand insertCommand = db.GetStoredProcCommand(strStoredProcInsertCommand);<BR> for (int i = 0; i < columnsCount; i++)<BR> {<BR> &nbs