Solved

Select Current ID on insert page of the tables current ID

Posted on 2008-10-11
2
221 Views
Last Modified: 2012-06-22
I want to display the current id from the table idea so on the content managment insert idea page, I can let the administrator create a unique link to the details page.

Select  from dbo.idea
0
Comment
Question by:vonfranzken
2 Comments
 
LVL 14

Accepted Solution

by:
Binuth earned 500 total points
ID: 22693505
If you want the last identity value generated for the table "idea" ,use

SELECT IDENT_CURRENT( 'idea' )
0
 

Author Comment

by:vonfranzken
ID: 22693525
anyway to add one to the end so that I can lessen the work for them?
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Suggested Solutions

Nowadays, some of developer are too much worried about data. Who is using data, who is updating it etc. etc. Because, data is more costlier in term of money and information. So security of data is focusing concern in days. Lets' understand the Au…
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now