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
23 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 142

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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Performance is the key factor for any successful data integration project, knowing the type of transformation that you’re using is the first step on optimizing the SSIS flow performance, by utilizing the correct transformation or the design alternat…
Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.

762 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

20 Experts available now in Live!

Get 1:1 Help Now