Skip to content

Give example program using array with database (odbc)

Durga Velusamy

Durga Velusamy

Asked Jun 29, 2015, 3:35 AM EDT1 answer
Share
LinkedInX
any give example program  using an array with store the data into database.
 
 
 
 if i have 3 field like date,name,department   now tell me how to declare array in webservice.
 
 var arr=new array();
 
pass the  3 field as array 
 
tell me how to insert the 3 field into database (odbc)

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • madhuri Gamane
    0
    you can use array index
    as
    arr[0]; // Date
    arr[1]; // Name
    arr[2]; // Department
    you can insert as
    insert into tbl(Date,Name,Ddepartment) values (Convert.Todatetime(arr[0]),arr[1].ToString(),arr[2].ToString())
    if it will help you please accept the solution 
    0