Hi @Nitesh ,
We can use following url get json data of excel file by graph api first
https://graph.microsoft.com/beta/me/drive/items/{id}/workbook/tables('4')/Rows
https://graph.microsoft.com/beta/me/drive/root:/{item-path}:/workbook/tables('4')/Rows
Refer to the following link
https://learn.microsoft.com/en-us/graph/api/resources/excel?view=graph-rest-beta
Then we can use following code to insert data into the sqlserver
string sql = "INSERT INTO table (name) values (@name)";
conn.Open();
SqlCommand cmd = new SqlCommand(sql, conn);
cmd.Parameters.Add("@name", SqlDbType.VarChar);
cmd.Parameters["@name"].Value = test;
cmd.ExecuteNonQuery();
If an Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.