TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Abolfazl
NA
184
80.9k
how to set primary key after delete a record ?
Mar 23 2014 3:43 PM
hi
i have a table with a column set to primary key and is identify as yes.when i delete a record from table, primary key field deleted but primary key steel start from where old data has primary key.for example a record with primary key set to 1,i delete it but new record primary key set to 2.
i need to set it automatically to 1.
i use linq to sql for connect to database and i don't know sql server commands.i want to set it with linq to sql and c#.
thanks
Reply
Answers (
4
)
how to load database in a listview with linq to sql?
How to Store Current Data Time To Database automatically.