|
|
|
Помогите сделать 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&gotonew=1&tid=1342280]: |
0ms |
get settings: |
7ms |
get forum list: |
13ms |
check forum access: |
3ms |
check topic access: |
3ms |
track hit: |
151ms |
get topic data: |
11ms |
get first new msg: |
5ms |
get forum data: |
2ms |
get page messages: |
54ms |
get tp. blocked users: |
1ms |
| others: | 190ms |
| total: | 440ms |

| 0 / 0 |
