Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Create a database with data

Status
Not open for further replies.

steveot

IS-IT--Management
Joined
Oct 27, 2003
Messages
1,635
Location
US
Im not a SQL person but is there any script or something that can be run to create a 10 gig or 20 gig database filed with bogus information. Just something to represent a database that large. I dont care it its all 1's and 0's.
 

Ok, you can do that in following way,

open Enterprise manager, create a new job

this job run following SQL on pubs database

insert into sales select * from sales

schedule this job running every minutes, after while you will get a big pubs database.


 

Don't forget disable the job when the database get to a satisfactory size. Also you need set the recovery mode to 'simple' and shrink the database at the end using following command :

dbcc shrinkdatabase('pubs', 10)


let me know what you get.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top