Click here to Skip to main content
15,894,291 members
Home / Discussions / Database
   

Database

 
GeneralRe: MS SQL: how to reorganize identity column values? Pin
PIEBALDconsult8-Mar-10 12:01
mvePIEBALDconsult8-Mar-10 12:01 
GeneralRe: MS SQL: how to reorganize identity column values? Pin
Mycroft Holmes8-Mar-10 13:25
professionalMycroft Holmes8-Mar-10 13:25 
GeneralRe: MS SQL: how to reorganize identity column values? Pin
PIEBALDconsult8-Mar-10 17:34
mvePIEBALDconsult8-Mar-10 17:34 
GeneralRe: MS SQL: how to reorganize identity column values? Pin
Mycroft Holmes8-Mar-10 18:32
professionalMycroft Holmes8-Mar-10 18:32 
GeneralRe: MS SQL: how to reorganize identity column values? Pin
michal.kreslik8-Mar-10 22:49
michal.kreslik8-Mar-10 22:49 
GeneralRe: MS SQL: how to reorganize identity column values? Pin
Mycroft Holmes8-Mar-10 23:41
professionalMycroft Holmes8-Mar-10 23:41 
AnswerRe: MS SQL: how to reorganize identity column values? Pin
Mycroft Holmes7-Mar-10 18:36
professionalMycroft Holmes7-Mar-10 18:36 
GeneralRe: MS SQL: how to reorganize identity column values? Pin
michal.kreslik8-Mar-10 1:06
michal.kreslik8-Mar-10 1:06 
hello, guys,

thanks much for your suggestions!

update: I have selected the 1.6 billion rows from the old table into a new table without any problems (it took a while, though). I did the cast to bigint on the way. the growth of the log file was nothing compared to me trying to change the Int32 to Int64 directly in the old table.

I scripted the constraints from the old table and now I'm adding them to the new table (will take a while I guess as after adding the constraints I'm re-checking them)

after that I'll take note what indexes were in the old table, I'll drop the old table, rename the new table and build the indexes on the new table.

I'll update you how it goes. obviously, I have a full backup of the last state of the database (file copy DB + LOG).

thanks again for you help so far!
Michal
GeneralRe: MS SQL: how to reorganize identity column values? Pin
michal.kreslik8-Mar-10 21:54
michal.kreslik8-Mar-10 21:54 
GeneralRe: MS SQL: how to reorganize identity column values? Pin
Mycroft Holmes8-Mar-10 22:27
professionalMycroft Holmes8-Mar-10 22:27 
GeneralRe: MS SQL: how to reorganize identity column values? Pin
michal.kreslik8-Mar-10 22:30
michal.kreslik8-Mar-10 22:30 
GeneralRe: MS SQL: how to reorganize identity column values? Pin
michal.kreslik8-Mar-10 23:57
michal.kreslik8-Mar-10 23:57 
GeneralRe: MS SQL: how to reorganize identity column values? Pin
michal.kreslik9-Mar-10 23:19
michal.kreslik9-Mar-10 23:19 
GeneralRe: MS SQL: how to reorganize identity column values? Pin
michal.kreslik15-Mar-10 0:53
michal.kreslik15-Mar-10 0:53 
QuestionSQL Query Pin
Wayne Gaylard5-Mar-10 22:20
professionalWayne Gaylard5-Mar-10 22:20 
AnswerRe: SQL Query Pin
Mycroft Holmes6-Mar-10 2:42
professionalMycroft Holmes6-Mar-10 2:42 
GeneralRe: SQL Query Pin
Wayne Gaylard6-Mar-10 6:25
professionalWayne Gaylard6-Mar-10 6:25 
GeneralRe: SQL Query Pin
Mycroft Holmes6-Mar-10 11:53
professionalMycroft Holmes6-Mar-10 11:53 
GeneralRe: SQL Query Pin
Wayne Gaylard6-Mar-10 14:30
professionalWayne Gaylard6-Mar-10 14:30 
QuestionStrength of MSAccess 2007. Pin
priyamtheone5-Mar-10 20:18
priyamtheone5-Mar-10 20:18 
AnswerRe: Strength of MSAccess 2007. Pin
Jörgen Andersson6-Mar-10 0:06
professionalJörgen Andersson6-Mar-10 0:06 
AnswerRe: Strength of MSAccess 2007. Pin
Mycroft Holmes6-Mar-10 2:37
professionalMycroft Holmes6-Mar-10 2:37 
QuestionSqlConnection - to keep around or dispose Pin
treefirmy5-Mar-10 18:49
treefirmy5-Mar-10 18:49 
AnswerRe: SqlConnection - to keep around or dispose Pin
Eddy Vluggen6-Mar-10 1:24
professionalEddy Vluggen6-Mar-10 1:24 
QuestionIs there a way to change a column property in a table without having to delete the entire table? Pin
tonyonlinux4-Mar-10 8:43
tonyonlinux4-Mar-10 8:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.