Avatar of hidrau
hidrau
Flag for Brazil asked on

How can I get the entire database script?

Hello guys

I need to get all tables, views, store procedures, functions etc from my Database to run it in another database placed into another machine.

How can I do that?

thanks
Alexandre
Microsoft SQL Server 2008

Avatar of undefined
Last Comment
hidrau

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Éric Moreau

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
SOLUTION
Patrick Bogers

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
hidrau

ASKER
Sorry my mistake when I wrote. Another server
Éric Moreau

have you tried to script it?
Patrick Bogers

Ok same database on another server.

Then both remarks are valid, just generate scripts as 'create to' not like 'drop and create'

Sql toolbelt does the same but easier to control.
Your help has saved me hundreds of hours of internet surfing.
fblack61
hidrau

ASKER
Éric, I am trying right now.

I didn't know that was possible with SSMS
hidrau

ASKER
Thanks a lot for your help