.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month

Home >> Forum >> ASP.Net >> Post New QuestionBookmark and Share Subscribe to Forum

Employee Name as primary key

Posted By: Naresh     Posted Date: September 09, 2010    Points:2   Category :ASP.Net
Hi All,

I am uploading excel data to databse.I dont have EmpId.Can i use EmpName as primary key.In excel file there ii first name and lastname column should i need to create two columns in database or its better to store in one column as EmpName with combination of first name and lastname.

Author: Deco             
Posted Date: September 12, 2010     Points: 5   

You can have lastname and first name in different column

form a composite primary key on firstname and lastname columns.

Author: Rajshree             
Posted Date: September 15, 2010     Points: 5   

Use Composite Primary key on first and Last Name

Post Reply

You must Sign In To post reply
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend