W
W
wkololo_4ever2014-03-26 14:35:24
SQL
wkololo_4ever, 2014-03-26 14:35:24

What is the software tool for creating a sql script on an existing database?

There is a database created in Visual Studio (localdb). It has a couple of tables with data.
How can you save in one sql script the creation of a database and filling it with data?
In Management Studio, I found the creation of a database and tables in the Tasks tab > Generate scripts, but it is necessary that data be added as well.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander, 2014-03-26
@wkololo_4ever

You haven't looked at all the settings
joxi.ru/KewyU_3JTJAPdAemdiw

1
1001001 111, 2014-03-26
@IgorO2

try something like this
CREATE TABLE IF NOT EXISTS `actions1` (
`action_id` int(4) NOT NULL AUTO_INCREMENT,
`action_name` varchar(30) DEFAULT NULL,
PRIMARY KEY (`action_id`)
) ENGINE=MyISAM AUTO_INCREMENT=0 DEFAULT CHARSET= utf8;
INSERT INTO `actions` (`action_id`, `action_name`) VALUES
(1, 'actions'),
(3, 'registration'),
(5, 'index'),
(7, 'view'),
(11, 'index');

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question