Welcome to dbFreaks.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Export DB source help

 
   Database Help (Home) -> Programming RSS
Next:  Easy SQL Query (Problems with JOINS)  
Author Message
simon

External


Since: Oct 27, 2006
Posts: 2



(Msg. 1) Posted: Fri Oct 27, 2006 12:39 am
Post subject: Export DB source help
Archived from groups: microsoft>public>sqlserver>programming (more info?)

Hello,
i am looking to make a full scripted backup of my sql server 2000
database
using various free tools, i can easily export the table structures and
stored procs into my script, but i have not found anything to help
with:
- indexes
- users/logins
- roles
- functions
- jobs
(anything else you can suggest)

have done many searches for utils or system tables that holds this
info, have not been successful.
could you please help me with how i can extract this info into scripts
if needed, i don't mind writing a proc that will gen the scripts, but
do need help with what tables hold this info

thanks very much for you help..... kinda desperate.... Smile

 >> Stay informed about: Export DB source help 
Back to top
Login to vote
Dmitriy Antonov

External


Since: Mar 19, 2004
Posts: 52



(Msg. 2) Posted: Fri Oct 27, 2006 1:06 am
Post subject: Re: Export DB source help [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"simon" wrote in message

> Hello,
> i am looking to make a full scripted backup of my sql server 2000
> database
> using various free tools, i can easily export the table structures and
> stored procs into my script, but i have not found anything to help
> with:
> - indexes
> - users/logins
> - roles
> - functions
> - jobs
> (anything else you can suggest)
>
> have done many searches for utils or system tables that holds this
> info, have not been successful.
> could you please help me with how i can extract this info into scripts
> if needed, i don't mind writing a proc that will gen the scripts, but
> do need help with what tables hold this info
>
> thanks very much for you help..... kinda desperate.... Smile
>

Enterprise Manager does it all.
Right-Click on the DB. Select All Tasks -> Generate SQL Scripts...
Click the button Show All.

Now examine all tabs (General, Formatting and Options). You will find
Triggers, Logins, Indexes and even DB itself. You can script them into
separate files per object or create just one big file. You can choose
different formatting options (e.g. to include Drop statements).
The only thing - jobs are scripted separately, because they are not part of
particular DB. You can script them in similar way by clicking on Job node in
the treeview.

You can automate the process yourself using DMO - well, it's gonna take some
time.

Dmitriy.

 >> Stay informed about: Export DB source help 
Back to top
Login to vote
simon

External


Since: Oct 27, 2006
Posts: 2



(Msg. 3) Posted: Fri Oct 27, 2006 10:40 am
Post subject: Re: Export DB source help [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

>> Hello,
>> i am looking to make a full scripted backup of my sql server 2000
>> database
>>
>
>Enterprise Manager does it all.
>Right-Click on the DB. Select All Tasks -> Generate SQL Scripts...
>

thanks for the reply. that is basically what i'm looking for. thanks!

i have another question for you (or anyone), i'm also running a copy
of sqlserver on my laptop and don't have enterprise manager loaded,
just core db files and then access the DB via toad.

is there anything out there besides enterprise manger that can gen
scripts for objects other than tables/procs?

also does anyone know the tables that hold this information, possibly
within the master database?

thanks again!
 >> Stay informed about: Export DB source help 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
sql2005 Import/Export wizard VS sql2000 Import/Export wiza.. - I created a tab delimited textfile in a vb.net app. I was then able to read the contents of this textfile from the vb.net app and write the contents to a sql2000 DB. I was also able to import the contents of this textfile to the same sql2000 DB usin...

How to: Use Data Source Object and Data Source View Object? - Hi, I can't possibly find any information of actually how to use a data source object or a data source view object in a package. After I've added a SQL Server data source object and a data source view object to my project I can't use any of them in..

Source Safe - Hi, We desperately need to have some Source Control for version maintaining and to enable quick replication of chenges done to development server to say staging server or QA server... or a production server Any tools, that can plug in to sql server,....

How to find source of Error - Hi, I get this exception reported when tracing, Error: 547, Severity: 16, State: 0. How can I find what caused the error? Thanks, Lasse

Fucntion/View field source - Hi guys, I'll try to explain the problem. I have a function/view with returning fields A, B, C, D. A and B token from Table1. C and D token from Table2. Is it any way to check from wich table the function/view gets value of the result field? I can get..
   Database Help (Home) -> Programming All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]