|
|
|
Помогите сделать Update
|
|||
|---|---|---|---|
|
#18+
Написала такой кусок программы: SqlCommand selectCommand2 = cn.CreateCommand(); selectCommand2.CommandText = "SELECT Id_Patient, Date_Investigation FROM Fact_Investigation GROUP BY Id_Patient, Date_Investigation"; SqlDataAdapter da4 = new SqlDataAdapter(selectCommand2); da4.MissingSchemaAction = MissingSchemaAction.AddWithKey; da4.Fill(tbSomeSet); foreach (DataRow rowFact in tbFact.Rows) { DataRow rowSomeSet = tbSomeSet.Rows.Find(new object[] { rowFact["Id_Patient"], rowFact["Date_Investigation"] }); rowSomeSet[rowFact["Id_Field"].ToString()] = rowFact["Value"]; } Теперь надо сделать Update. Но ничего не получается. Как лучше сделать? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 04.05.2012, 13:13 |
|
||
|
Помогите сделать Update
|
|||
|---|---|---|---|
|
#18+
ATkachenko, А зачем у вас Group By в селекте? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 04.05.2012, 14:59 |
|
||
|
|

start [/forum/topic.php?fid=16&msg=37781968&tid=1342280]: |
0ms |
get settings: |
11ms |
get forum list: |
19ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
168ms |
get topic data: |
9ms |
get forum data: |
2ms |
get page messages: |
32ms |
get tp. blocked users: |
1ms |
| others: | 224ms |
| total: | 474ms |

| 0 / 0 |
