[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
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
Medium Priority
?
49 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 143

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 2000 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
It is possible to export the data of a SQL Table in SSMS and generate INSERT statements. It's neatly tucked away in the generate scripts option of a database.
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties

649 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