Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
sharc
Starting Member
8 Posts |
Posted - 2011-02-15 : 09:46:34
|
| I was given the following to fix, but am stuck. .. . {MCSL.Framework.Data.DataSvc svc = new DataSvc();SqlParameter[] sqlParams = new SqlParameter[2];sqlParams[0] = this.getInputGuidParameter(Note.PNID, PARAM_P_N_ID);sqlParams[1] = this.getInputIntParameter(Note.NTID, PARAM_N_T_ID);MCSL.Framework.Data.DataObject dataObject = svc.ExecuteNonQuery(this.ConnectionString, System.Data.CommandType.StoredProcedure, SP_INSERT, sqlParams);Note.PNID = new Guid(dataObject.SQLParam[PARAM_P_N_ID].Value.ToString());return Note;}I get the following error:KeyNotFoundExcepetion was unhandled.The given key was not present in the dictionary.I'm so horrible with this stuff. Can anyone lend a hint please? |
|
|
|
|
|