Click here to Skip to main content
15,890,186 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
how can i populate a database using a script instead of manually adding 1000 items to the database.
Posted
Comments
New Programmer 23 23-Nov-11 13:54pm    
And how is this to work for an excess of 1000 items...
New Programmer 23 23-Nov-11 13:58pm    
manually adding 1000 items means generating them instead of typing them.
[no name] 23-Nov-11 17:57pm    
If you want to ask a question about a solution that has been provided you must add the comment to that solutions. No one except yourself will be notified if you post it here, under your own question.
Amir Mahfoozi 23-Nov-11 23:58pm    
What do you mean about item ? item could be database schema or database data. Which of them do you mean ?
[no name] 24-Nov-11 9:08am    
Have a little common sence. 1000 database tables? Really?

Since this is your first post here I'll go easy.
INSERT INTO table (column1, column2, ...) VALUES(value1, value2, ...)


However, this question could easily have been answered with a very brief Google search.
 
Share this answer
 
Comments
Chris Meech 23-Nov-11 13:45pm    
I wonder what "manually adding 1000 items" really means if the OP isn't aware of INSERT.
fjdiewornncalwe 23-Nov-11 15:19pm    
Probably using management studio or such tool and entering manually into a grid display of some kind.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900