Click here to Skip to main content
15,905,316 members
Home / Discussions / Database
   

Database

 
GeneralRe: HP 6767 NoteBoOk sql sERVER 2005 Pin
blackjack21504-Apr-08 2:23
blackjack21504-Apr-08 2:23 
GeneralEdit multiple rows at once Pin
Yevgeny Efter3-Apr-08 20:38
Yevgeny Efter3-Apr-08 20:38 
GeneralRe: Edit multiple rows at once Pin
A Wong4-Apr-08 2:42
A Wong4-Apr-08 2:42 
Generalwhy it is not work Pin
tittly3-Apr-08 17:03
tittly3-Apr-08 17:03 
GeneralRe: why it is not work Pin
SimulationofSai3-Apr-08 18:29
SimulationofSai3-Apr-08 18:29 
GeneralRe: why it is not work Pin
tittly3-Apr-08 19:34
tittly3-Apr-08 19:34 
Generalslow updating Pin
Xmen Real 3-Apr-08 16:18
professional Xmen Real 3-Apr-08 16:18 
GeneralRe: slow updating [modified] Pin
Blue_Boy3-Apr-08 18:59
Blue_Boy3-Apr-08 18:59 
declare @i as int <br />
set @i=0<br />
declare @value as varchar(50)<br />
set @value='1100000'<br />
declare @newvalue as varchar(50)<br />
set @newvalue=''<br />
declare @Avalue as varchar(50)<br />
set @Avalue='A1100000'<br />
<br />
while @i<=1300 <br />
begin<br />
	set @i=@i+1<br />
	<br />
	set @newvalue = substring(@value,1,len(@value)-len(convert(varchar,@i)))+''+convert(varchar,@i)<br />
	set @Avalue = substring(@Avalue,1,len(@Avalue)-len(convert(varchar,@i)))+''+convert(varchar,@i)<br />
	select @newvalue<br />
	update mytable set id = @newvalue,deptid = 1, Cid = 1 where id = @Avalue<br />
end



I Love SQL

modified on Friday, April 4, 2008 1:20 AM

GeneralRe: slow updating [modified] Pin
Xmen Real 3-Apr-08 22:27
professional Xmen Real 3-Apr-08 22:27 
GeneralRe: slow updating Pin
Blue_Boy4-Apr-08 7:22
Blue_Boy4-Apr-08 7:22 
GeneralRe: slow updating Pin
Xmen Real 4-Apr-08 7:25
professional Xmen Real 4-Apr-08 7:25 
GeneralRe: slow updating Pin
Blue_Boy4-Apr-08 8:01
Blue_Boy4-Apr-08 8:01 
GeneralRe: slow updating Pin
Xmen Real 4-Apr-08 14:51
professional Xmen Real 4-Apr-08 14:51 
QuestionCalling Web Service From SQL Stored Procedures Pin
Adewale3-Apr-08 5:25
Adewale3-Apr-08 5:25 
GeneralRe: Calling Web Service From SQL Stored Procedures Pin
pmarfleet3-Apr-08 9:38
pmarfleet3-Apr-08 9:38 
QuestionPassing IN clause to SP via Parameter Pin
stuebbie3-Apr-08 3:53
stuebbie3-Apr-08 3:53 
GeneralRe: Passing IN clause to SP via Parameter Pin
Mark J. Miller3-Apr-08 4:13
Mark J. Miller3-Apr-08 4:13 
AnswerRe: Passing IN clause to SP via Parameter Pin
stuebbie3-Apr-08 21:57
stuebbie3-Apr-08 21:57 
GeneralRe: Passing IN clause to SP via Parameter Pin
SimulationofSai3-Apr-08 13:04
SimulationofSai3-Apr-08 13:04 
QuestionHow to register custom control Pin
lav naphade3-Apr-08 2:13
lav naphade3-Apr-08 2:13 
AnswerRe: How to register custom control Pin
pmarfleet3-Apr-08 9:34
pmarfleet3-Apr-08 9:34 
GeneralRegarding SQL Query Pin
sandhya143-Apr-08 1:28
sandhya143-Apr-08 1:28 
GeneralRe: Regarding SQL Query Pin
Rob Philpott3-Apr-08 2:37
Rob Philpott3-Apr-08 2:37 
QuestionWhat is the diffrence between CTE(Common Table Expression) and Derived table Pin
Krishnraj3-Apr-08 0:27
Krishnraj3-Apr-08 0:27 
GeneralRe: What is the diffrence between CTE(Common Table Expression) and Derived table Pin
Mark J. Miller3-Apr-08 4:50
Mark J. Miller3-Apr-08 4:50 

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.