Click here to Skip to main content
15,889,863 members
Home / Discussions / Database
   

Database

 
GeneralRe: enisey data scripter Pin
maciekplewa26-Feb-08 4:23
maciekplewa26-Feb-08 4:23 
GeneralRe: enisey data scripter Pin
obs12322-Sep-10 21:25
professionalobs12322-Sep-10 21:25 
Questioninsert farsi into tables Pin
Shaahinm17-Nov-07 21:53
Shaahinm17-Nov-07 21:53 
AnswerRe: insert farsi into tables Pin
joemonvarghese18-Nov-07 18:44
joemonvarghese18-Nov-07 18:44 
GeneralRe: insert farsi into tables Pin
Shaahinm20-Nov-07 23:25
Shaahinm20-Nov-07 23:25 
AnswerRe: insert farsi into tables Pin
Mark Churchill19-Nov-07 14:37
Mark Churchill19-Nov-07 14:37 
QuestionRefreshing Identity Pin
Xmen Real 17-Nov-07 20:09
professional Xmen Real 17-Nov-07 20:09 
AnswerRe: Refreshing Identity Pin
Colin Angus Mackay18-Nov-07 2:53
Colin Angus Mackay18-Nov-07 2:53 
xmen_xwk wrote:
but i want to rearrange it, so is there any "sp" or any function in sql that
can do it?


For what purpose do you want to rearrange it. This is an expensive operation and if you want to hurt the performance of your SQL Server everytime you delete a row then go right ahead and renumber everything causing the relevant indexes to update, all foreign keys will need to be updated also (but you have to manage that) and so on. I would bet that it would take a lot of effort to do that correctly and the potential for getting it wrong somewhere is great.

So, unless you have an exceptionally good reason for renumbering your primary key* like that I'd suggest that you just ignore the "holes" in the number sequencing.

Well, I say primary key, although you didn't. I'm just assuming it is the primary key because identity columns are normally used as the primary key.


Upcoming FREE developer events:
* Developer! Developer! Developer! 6
* Developer Day Scotland

My website

AnswerRe: Refreshing Identity Pin
DQNOK19-Nov-07 12:29
professionalDQNOK19-Nov-07 12:29 
GeneralRe: Refreshing Identity Pin
Xmen Real 19-Nov-07 14:30
professional Xmen Real 19-Nov-07 14:30 
GeneralRe: Refreshing Identity Pin
DQNOK20-Nov-07 3:51
professionalDQNOK20-Nov-07 3:51 
GeneralRe: Refreshing Identity Pin
Xmen Real 20-Nov-07 14:33
professional Xmen Real 20-Nov-07 14:33 
GeneralRe: Refreshing Identity Pin
DQNOK21-Nov-07 3:49
professionalDQNOK21-Nov-07 3:49 
GeneralRe: Refreshing Identity Pin
Xmen Real 21-Nov-07 4:20
professional Xmen Real 21-Nov-07 4:20 
GeneralRe: Refreshing Identity [modified] Pin
Xmen Real 21-Nov-07 16:40
professional Xmen Real 21-Nov-07 16:40 
GeneralRe: Refreshing Identity Pin
DQNOK26-Nov-07 3:46
professionalDQNOK26-Nov-07 3:46 
GeneralRe: Refreshing Identity Pin
Xmen Real 26-Nov-07 4:33
professional Xmen Real 26-Nov-07 4:33 
QuestionExecute String sql Pin
SVb.net17-Nov-07 4:31
SVb.net17-Nov-07 4:31 
AnswerRe: Execute String sql Pin
andyharman17-Nov-07 10:52
professionalandyharman17-Nov-07 10:52 
AnswerRe: Execute String sql Pin
JM_G18-Nov-07 9:15
JM_G18-Nov-07 9:15 
Questionhow to fill DataAdapter when two tables are being used+ASP.Net Pin
mavii17-Nov-07 1:29
mavii17-Nov-07 1:29 
AnswerRe: how to fill DataAdapter when two tables are being used+ASP.Net Pin
pmarfleet17-Nov-07 2:50
pmarfleet17-Nov-07 2:50 
Questionfind the count(empid) from view and count(querriid) from tabel by using InnerJoins Pin
subbu.sk16-Nov-07 23:32
subbu.sk16-Nov-07 23:32 
AnswerRe: find the count(empid) from view and count(querriid) from tabel by using InnerJoins Pin
pmarfleet17-Nov-07 2:49
pmarfleet17-Nov-07 2:49 
QuestionReplication - suggesstions/links. [modified] Pin
GuyThiebaut16-Nov-07 22:21
professionalGuyThiebaut16-Nov-07 22:21 

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.