Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Urgent Requirement

Author  Topic 

ratheeshknair
Posting Yak Master

129 Posts

Posted - 2008-06-10 : 05:30:37
Hi Experts ,
I want to insert datas randomly to all columns of a table.The columns have different datatypes like int,varchar,datetime. What to do??? It is urgent so please help.


TIA

RKNAIR

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2008-06-10 : 05:40:45
What data? You just want to insert some random values?
Go to Top of Page

sunsanvin
Master Smack Fu Yak Hacker

1274 Posts

Posted - 2008-06-10 : 07:08:33
insert into your_table select '1','2','a','b'
go


copy paste for many times and run

Arnav
Even you learn 1%, Learn it with 100% confidence.
Go to Top of Page

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2008-06-10 : 07:14:45
For SQL Server 2005
insert your_table values ('1','2','a','b')
go 500000
will insert same record 500,000 times




E 12°55'05.25"
N 56°04'39.16"
Go to Top of Page

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2008-06-10 : 07:47:23
Cross post http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=104508



E 12°55'05.25"
N 56°04'39.16"
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2008-06-10 : 09:30:49
http://sqlserver-qa.net/blogs/t-sql/archive/2008/04/04/3976.aspx

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page

ratheeshknair
Posting Yak Master

129 Posts

Posted - 2008-06-10 : 23:36:26
Thankyou ALL :-)

RKNAIR
Go to Top of Page
   

- Advertisement -