Click here to Skip to main content
15,898,035 members
Home / Discussions / Database
   

Database

 
Questionselect statement to display name 1000 times Pin
arun_pk30-Nov-09 23:16
arun_pk30-Nov-09 23:16 
AnswerRe: select statement to display name 1000 times [modified] Pin
Niladri_Biswas30-Nov-09 23:27
Niladri_Biswas30-Nov-09 23:27 
GeneralRe: select statement to display name 1000 times Pin
arun_pk30-Nov-09 23:31
arun_pk30-Nov-09 23:31 
GeneralRe: select statement to display name 1000 times Pin
Niladri_Biswas30-Nov-09 23:35
Niladri_Biswas30-Nov-09 23:35 
GeneralRe: select statement to display name 1000 times Pin
arun_pk30-Nov-09 23:42
arun_pk30-Nov-09 23:42 
GeneralRe: select statement to display name 1000 times Pin
Niladri_Biswas30-Nov-09 23:52
Niladri_Biswas30-Nov-09 23:52 
GeneralRe: select statement to display name 1000 times Pin
arun_pk1-Dec-09 0:20
arun_pk1-Dec-09 0:20 
AnswerRe: select statement to display name 1000 times Pin
Blue_Boy30-Nov-09 23:38
Blue_Boy30-Nov-09 23:38 
One of the ways is:
create table #tblname ( 
col1 varchar(200)
)

declare @i as int
set @i=0
while @i<=1000
begin
set @i=@i+1
insert into #tblname  values ('abc')
end

select * from #tblname

drop table #tblname



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.

www.aktualiteti.com

GeneralRe: select statement to display name 1000 times Pin
arun_pk30-Nov-09 23:42
arun_pk30-Nov-09 23:42 
AnswerRe: select statement to display name 1000 times Pin
Ashfield1-Dec-09 0:09
Ashfield1-Dec-09 0:09 
GeneralRe: select statement to display name 1000 times Pin
arun_pk1-Dec-09 0:22
arun_pk1-Dec-09 0:22 
GeneralRe: select statement to display name 1000 times Pin
Ashfield1-Dec-09 0:25
Ashfield1-Dec-09 0:25 
GeneralRe: select statement to display name 1000 times Pin
Shameel1-Dec-09 7:05
professionalShameel1-Dec-09 7:05 
GeneralRe: select statement to display name 1000 times Pin
Mycroft Holmes1-Dec-09 17:04
professionalMycroft Holmes1-Dec-09 17:04 
GeneralRe: select statement to display name 1000 times Pin
Ashfield1-Dec-09 21:37
Ashfield1-Dec-09 21:37 
GeneralRe: select statement to display name 1000 times Pin
Mycroft Holmes1-Dec-09 21:55
professionalMycroft Holmes1-Dec-09 21:55 
QuestionHow to Group By all columns but have Rollup only on few columns Pin
guydebell30-Nov-09 23:10
guydebell30-Nov-09 23:10 
AnswerRe: How to Group By all columns but have Rollup only on few columns [modified] Pin
Niladri_Biswas30-Nov-09 23:33
Niladri_Biswas30-Nov-09 23:33 
GeneralRe: How to Group By all columns but have Rollup only on few columns Pin
guydebell1-Dec-09 1:05
guydebell1-Dec-09 1:05 
QuestionHow to connect/disconnect users in sql server. Pin
Ashish Kumar Vyas30-Nov-09 20:13
Ashish Kumar Vyas30-Nov-09 20:13 
AnswerRe: How to connect/disconnect users in sql server. Pin
Ashfield30-Nov-09 20:57
Ashfield30-Nov-09 20:57 
Questioninserting multiple rows Pin
arun_pk30-Nov-09 18:07
arun_pk30-Nov-09 18:07 
AnswerRe: inserting multiple rows Pin
_Damian S_30-Nov-09 18:18
professional_Damian S_30-Nov-09 18:18 
GeneralRe: inserting multiple rows Pin
arun_pk30-Nov-09 18:21
arun_pk30-Nov-09 18:21 
GeneralRe: inserting multiple rows Pin
dan!sh 30-Nov-09 18:32
professional dan!sh 30-Nov-09 18:32 

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.