|
|
|
Помогите сделать 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=37782746&tid=1342280]: |
0ms |
get settings: |
7ms |
get forum list: |
12ms |
check forum access: |
2ms |
check topic access: |
2ms |
track hit: |
146ms |
get topic data: |
8ms |
get forum data: |
2ms |
get page messages: |
34ms |
get tp. blocked users: |
1ms |
| others: | 209ms |
| total: | 423ms |

| 0 / 0 |
