Click here to Skip to main content
15,913,587 members
Home / Discussions / C#
   

C#

 
QuestionCheck if user has admin rights Pin
Stefan_ Spenz22-Sep-05 1:24
Stefan_ Spenz22-Sep-05 1:24 
QuestionExplain DataSet.AcceptChanges and DataAdapter.Update methods. Pin
webC#22-Sep-05 1:17
webC#22-Sep-05 1:17 
AnswerRe: Explain DataSet.AcceptChanges and DataAdapter.Update methods. Pin
Ming Luo22-Sep-05 2:01
Ming Luo22-Sep-05 2:01 
AnswerRe: Explain DataSet.AcceptChanges and DataAdapter.Update methods. Pin
kundan.apiit15-Apr-12 4:19
kundan.apiit15-Apr-12 4:19 
QuestionLockout Pin
mikica1722-Sep-05 1:17
mikica1722-Sep-05 1:17 
AnswerRe: Lockout Pin
Guffa22-Sep-05 1:36
Guffa22-Sep-05 1:36 
GeneralRe: Lockout Pin
mikica1722-Sep-05 2:09
mikica1722-Sep-05 2:09 
GeneralRe: Lockout Pin
Guffa22-Sep-05 9:31
Guffa22-Sep-05 9:31 
QuestionInvoke without properties Pin
Yoyosch22-Sep-05 0:04
Yoyosch22-Sep-05 0:04 
AnswerRe: Invoke without properties Pin
Guffa22-Sep-05 1:04
Guffa22-Sep-05 1:04 
AnswerRe: Invoke without properties Pin
Yoyosch22-Sep-05 1:53
Yoyosch22-Sep-05 1:53 
GeneralRe: Invoke without properties Pin
Guffa22-Sep-05 9:29
Guffa22-Sep-05 9:29 
GeneralRe: Invoke without properties Pin
Yoyosch22-Sep-05 9:44
Yoyosch22-Sep-05 9:44 
QuestionEncryption/Decryption API in C#.NET Pin
Suseel kumar P22-Sep-05 0:02
Suseel kumar P22-Sep-05 0:02 
AnswerRe: Encryption/Decryption API in C#.NET Pin
Niklas Ulvinge22-Sep-05 1:13
Niklas Ulvinge22-Sep-05 1:13 
AnswerRe: Encryption/Decryption API in C#.NET Pin
hakervytas22-Sep-05 1:33
hakervytas22-Sep-05 1:33 
AnswerRe: Encryption/Decryption API in C#.NET Pin
Dave Kreskowiak22-Sep-05 5:21
mveDave Kreskowiak22-Sep-05 5:21 
QuestionInsert new record into MySQL problem Pin
Ming Luo22-Sep-05 0:01
Ming Luo22-Sep-05 0:01 
I am trying to write a windows application in C#. I met a problem when I try to use the OdbcCommandBuilder to update the database. The connection works fine. The code is like following:

OdbcDataAdapter adapter = new OdbcDataAdapter("select * from machine", _connection);
OdbcCommandBuilder cb = new OdbcCommandBuilder(adapter);
DataRow arow = _ds.Table["machine"].newrow();
arow["StockNo"] = "abc01";
_ds.Table["machine"].rows.add(arow);
adapter.Update(_ds, "machine");
_ds.Table["machine"].AcceptChanges();


When I try to run this code to insert a new machine record, it gives me an error message which says

"ERROR [07006] Restricted data type a attribute violation (SQL_C_NUMERIC)"

Could somebody solve this problem for me please???
Thanks in advance

Asura
AnswerRe: Insert new record into MySQL problem Pin
sreejith ss nair22-Sep-05 0:53
sreejith ss nair22-Sep-05 0:53 
GeneralRe: Insert new record into MySQL problem Pin
Ming Luo22-Sep-05 1:03
Ming Luo22-Sep-05 1:03 
GeneralRe: Insert new record into MySQL problem Pin
Guffa22-Sep-05 1:08
Guffa22-Sep-05 1:08 
GeneralRe: Insert new record into MySQL problem Pin
sreejith ss nair22-Sep-05 17:30
sreejith ss nair22-Sep-05 17:30 
QuestionRegd--Drag and Drop Pin
bmanohar21-Sep-05 23:37
bmanohar21-Sep-05 23:37 
QuestionTreeView and ImageList Pin
Anonymous21-Sep-05 23:35
Anonymous21-Sep-05 23:35 
AnswerRe: TreeView and ImageList Pin
Dave Kreskowiak22-Sep-05 5:16
mveDave Kreskowiak22-Sep-05 5:16 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.