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
 SQL Server 2005 Forums
 Transact-SQL (2005)
 Sorry!Tough request (At least for me!)

Author  Topic 

cmspot
Starting Member

44 Posts

Posted - 2007-10-18 : 01:56:49
Hello everybody again.
Your valueable help is going to be useful for me once again.
I think my request is a little bit hard this time.Maybe only for my head.

This is what i Want.I want to test the performance of my application using big amount of data so i need something that will fill my tables with random rows.Is there anything?

f.e My customers table:
Custid Identity
CustLName QWERTY
CustFname ASDFGH
................


Thank you very much for your precious time.

I sell my mother in law.Is anybody interested?

nr
SQLTeam MVY

12543 Posts

Posted - 2007-10-18 : 06:04:51
I usually write queries to do it using rand()
You probably don't want just random data but would include a weighting to give a bias towards some values.

==========================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Go to Top of Page

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2007-10-18 : 06:31:54
To get CHAR/VARCHAR values, you can try

SELECT CONVERT(CHAR(36), NEWID())



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

cmspot
Starting Member

44 Posts

Posted - 2007-10-18 : 10:23:55
Thank you Guys!
You are a real help

I sell my mother in law.Is anybody interested?
Go to Top of Page
   

- Advertisement -