Solved

increase table ID's to so next record is a larger ID (instead of next id 20  make it 2000)

Posted on 2016-09-29
2
36 Views
Last Modified: 2016-09-30
Bit of a random one this!

I basically need the next auto incremented identity seed ID of a table to goto something like 2000 instead of 20

the reason.....
We have a automated feature where users can sign up to a free trial
It inserts their details into a table, and uses that ROW ID as part of the domain name
i.e.
http:/20.mydomain.com

the next user who signs up gets
http:/21.mydomain.com

The problem is it makes us really small (we are a startup!) so we want to appear bigger
So,  we'd like to increase the primary key on this table so they boost up to the 1000s so the next record is
http:/2000.mydomain.com

this way it makes us look big as people will think 2000 people have signed up for the trial (and not 20!)

Is there an quick and easy way to do this?
0
Comment
Question by:websss
2 Comments
 
LVL 143

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 500 total points
ID: 41823075
use this command:
DBCC CHECKIDENT (yourtablename, RESEED, 2000) ;  
https://msdn.microsoft.com/en-us/library/ms176057.aspx
1
 

Author Closing Comment

by:websss
ID: 41823202
I always love it when I see you have replied!

Thanks!
0

Featured Post

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

840 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