Hi ,
i am using vs2010 .i have created web application using Asp.net c#. I am trying to import excel data in to Sql Table called assessment. Every thing imported fine except studentID column.
My Assessment table has following columns :
,[Date]
,[BestPlusScore]
,[BestLitScore]
,[BestPlusLevel]
,[BestLitLevel]
,[StudentName]
,[StudentID]
My Excel Has following Columns:
Date | BestPlusScore | BestLitScore | BestPlusLevel | BestLitLevel | Student Name |
8/12/2014 | 88 | | 0 | | Esam Agaiby |
I need to insert StudentID to assessment table based on StudentName in Student Table .
My Student table contains following columns:
[ID]
,[TimeSubmitted]
,[SocialSecurityNumber]
,[EnrollmentDate]
,[FirstName]
,[LastName]
Example:
my excel has StudentName = 'Esam Agaiby'
in Student Table Student_ID=258 for that student name
this StudentId 258 should be insert into Assessmet table StudentID column
Please help me to solve this problem as soon as possible :)