Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / February 2006

Tip: Looking for answers? Try searching our database.

Backup SQL Server to script file in code?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Lee - 12 Feb 2006 22:06 GMT
Is there anyway to backup a SQL server database to a .sql script file
through code?  My provider charges me 5.00 to perform backups.  I'd
like to do it on my own through code.  I don't have access to the
database server machine however.

Thank you.

Signature

Warm Regards,
Lee

"Upon further investigation it appears that your software is missing
just one thing.  It definitely needs more cow bell..."

Terry Burns - 12 Feb 2006 22:50 GMT
Well not exactly. However, you could query each table and return the data to
a local storage, either xml or sql.

Signature

Terry Burns
http://TrainingOn.net

>
> Is there anyway to backup a SQL server database to a .sql script file
[quoted text clipped - 3 lines]
>
> Thank you.
Lee - 13 Feb 2006 01:08 GMT
Terry Burns enlightened me by writing:

> Well not exactly. However, you could query each table and return the
> data to a local storage, either xml or sql.

That's what I figured.  I need to also backup the database schema as
well. I guess I could manually iterate over all the objects and create
scripts for all that as well...

Thanks for the response.

Signature

Warm Regards,
Lee

"Upon further investigation it appears that your software is missing
just one thing.  It definitely needs more cow bell..."

Peter Bromberg [C# MVP] - 13 Feb 2006 01:38 GMT
The Microsoft Sql Web Data Administrator Web app has an Export function that
does this very nicely.
Peter

Signature

Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com

> Is there anyway to backup a SQL server database to a .sql script file
> through code?  My provider charges me 5.00 to perform backups.  I'd
> like to do it on my own through code.  I don't have access to the
> database server machine however.
>
> Thank you.
Lee - 13 Feb 2006 22:49 GMT
Peter Bromberg [C# MVP] enlightened me by writing:

> Microsoft Sql Web Data Administrator Web app

I've tried this by installing it locally and trying to connect to the
sql server over the net: no go.

I've also tried uploading the web app to my server but only get
"Required permissions cannot be acquired"

I've tried setting up the web config, but I'm not that familiar with
everything yet and am just blundering around.

Thanks anyway.

Signature

Warm Regards,
Lee

"Upon further investigation it appears that your software is missing
just one thing.  It definitely needs more cow bell..."

Terry Burns - 14 Feb 2006 07:15 GMT
You need to contact your service provider for details of what you need to do
in order to get access to the server.

Signature

Terry Burns
http://TrainingOn.net

> Peter Bromberg [C# MVP] enlightened me by writing:
>
[quoted text clipped - 10 lines]
>
> Thanks anyway.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.