Click here to Skip to main content
15,920,896 members
Home / Discussions / Database
   

Database

 
AnswerRe: Left Right Table Pin
J4amieC8-Feb-09 23:14
J4amieC8-Feb-09 23:14 
AnswerRe: Left Right Table Pin
Muhammad Shahid Farooq8-Feb-09 23:58
professionalMuhammad Shahid Farooq8-Feb-09 23:58 
QuestionShrink DB using Maintenance Plan does not affect the log file size Pin
obarahmeh8-Feb-09 22:35
obarahmeh8-Feb-09 22:35 
AnswerRe: Shrink DB using Maintenance Plan does not affect the log file size Pin
Blue_Boy9-Feb-09 0:01
Blue_Boy9-Feb-09 0:01 
GeneralRe: Shrink DB using Maintenance Plan does not affect the log file size Pin
obarahmeh9-Feb-09 0:10
obarahmeh9-Feb-09 0:10 
QuestionSQL 2005 Reporting Services Pin
Elizma8-Feb-09 17:36
Elizma8-Feb-09 17:36 
AnswerRe: SQL 2005 Reporting Services Pin
εїзεїзεїз8-Feb-09 21:35
εїзεїзεїз8-Feb-09 21:35 
GeneralRe: SQL 2005 Reporting Services Pin
Elizma8-Feb-09 23:33
Elizma8-Feb-09 23:33 
GeneralRe: SQL 2005 Reporting Services Pin
εїзεїзεїз9-Feb-09 0:50
εїзεїзεїз9-Feb-09 0:50 
QuestionAb Initio Conundrums Pin
PoisonCreed8-Feb-09 12:06
PoisonCreed8-Feb-09 12:06 
QuestionProblem with sql server 2000 Pin
BESHOY MARKO8-Feb-09 6:36
BESHOY MARKO8-Feb-09 6:36 
AnswerRe: Problem with sql server 2000 Pin
Blue_Boy8-Feb-09 8:58
Blue_Boy8-Feb-09 8:58 
GeneralRe: Problem with sql server 2000 Pin
BESHOY MARKO8-Feb-09 11:23
BESHOY MARKO8-Feb-09 11:23 
GeneralRe: Problem with sql server 2000 Pin
Blue_Boy8-Feb-09 14:33
Blue_Boy8-Feb-09 14:33 
GeneralRe: Problem with sql server 2000 Pin
N a v a n e e t h8-Feb-09 15:29
N a v a n e e t h8-Feb-09 15:29 
GeneralRe: Problem with sql server 2000 Pin
Wendelius9-Feb-09 6:14
mentorWendelius9-Feb-09 6:14 
AnswerRe: Problem with sql server 2000 Pin
BESHOY MARKO10-Feb-09 1:58
BESHOY MARKO10-Feb-09 1:58 
QuestionHow to write this query? Pin
varshavmane7-Feb-09 21:31
varshavmane7-Feb-09 21:31 
AnswerRe: How to write this query? Pin
Blue_Boy8-Feb-09 2:49
Blue_Boy8-Feb-09 2:49 
GeneralRe: How to write this query? Pin
varshavmane8-Feb-09 4:15
varshavmane8-Feb-09 4:15 
GeneralRe: How to write this query? Pin
Blue_Boy8-Feb-09 4:22
Blue_Boy8-Feb-09 4:22 
GeneralRe: How to write this query? Pin
varshavmane8-Feb-09 4:35
varshavmane8-Feb-09 4:35 
GeneralRe: How to write this query? Pin
Blue_Boy8-Feb-09 8:50
Blue_Boy8-Feb-09 8:50 
hi,

Well based on your last post I have more clear your situation.
It seems that you dont have increament column in table and i make fast solution,maybe is not the best solution but it will work.

here is code down below,just copy-modify-paste and use in your real data


create table #TempTable <br />
(<br />
IdentValue int IDENTITY(1,1),<br />
Name1   varchar(255),<br />
Name2  varchar(255),<br />
ID  Int<br />
)<br />
<br />
insert into #TempTable <br />
select name1,name2,id from tabela<br />
<br />
<br />
declare @i as int<br />
set @i=0<br />
<br />
declare @startValue as int<br />
set @startValue =2200<br />
<br />
declare @endValue as int<br />
set @endValue=3200<br />
<br />
while @i<(select count(*) from #temptable)<br />
begin<br />
	set @i=@i+1<br />
	set @startValue=@startValue+1<br />
	update #tempTable set ID=@startValue where identValue=@i<br />
end<br />
<br />
delete from tabela<br />
insert into  tabela <br />
select name1,name2,id from #temptable<br />
<br />
drop table #temptable<br />
select * from tabela



I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.


QuestionUpdating Field Length of a Fields in Sql Server 2005 Pin
εїзεїзεїз7-Feb-09 20:36
εїзεїзεїз7-Feb-09 20:36 
AnswerRe: Updating Field Length of a Fields in Sql Server 2005 Pin
Mycroft Holmes8-Feb-09 16:56
professionalMycroft Holmes8-Feb-09 16:56 

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.