Click here to Skip to main content
15,900,258 members
Home / Discussions / C#
   

C#

 
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 
GeneralRe: TreeView and ImageList Pin
Anonymous22-Sep-05 20:56
Anonymous22-Sep-05 20:56 
GeneralRe: TreeView and ImageList Pin
Dave Kreskowiak23-Sep-05 2:26
mveDave Kreskowiak23-Sep-05 2:26 
QuestionIs remote machie alive Pin
Mazdak21-Sep-05 22:03
Mazdak21-Sep-05 22:03 
AnswerRe: Is remote machie alive Pin
Dave Kreskowiak22-Sep-05 5:13
mveDave Kreskowiak22-Sep-05 5:13 
Questionhow to get variable name. Pin
ab.hamad21-Sep-05 21:33
ab.hamad21-Sep-05 21:33 
AnswerRe: how to get variable name. Pin
lmoelleb21-Sep-05 22:04
lmoelleb21-Sep-05 22:04 
QuestionDatagrid Scrollbars - Enlarge Pin
toticow21-Sep-05 20:34
susstoticow21-Sep-05 20:34 
QuestionNeed help: FileInfo Class Pin
SikeMullivan21-Sep-05 19:28
SikeMullivan21-Sep-05 19:28 
GeneralRe: Need help: FileInfo Class Pin
Guffa22-Sep-05 0:53
Guffa22-Sep-05 0:53 
QuestionSimple office automation Pin
dotnetquery21-Sep-05 19:19
dotnetquery21-Sep-05 19:19 

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.