473,386 Members | 2,050 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Backup SQL Server to script file in code?

Lee


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.

--
Warm Regards,
Lee

"Upon further investigation it appears that your software is missing
just one thing. It definitely needs more cow bell..."
Feb 12 '06 #1
5 3355
Well not exactly. However, you could query each table and return the data to
a local storage, either xml or sql.
--
Terry Burns
http://TrainingOn.net
"Lee" <lu*************@yahoo.com> wrote in message
news:Of**************@TK2MSFTNGP11.phx.gbl...


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.

--
Warm Regards,
Lee

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

Feb 12 '06 #2
Lee
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.

--
Warm Regards,
Lee

"Upon further investigation it appears that your software is missing
just one thing. It definitely needs more cow bell..."
Feb 13 '06 #3
The Microsoft Sql Web Data Administrator Web app has an Export function that
does this very nicely.
Peter

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


"Lee" wrote:


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.

--
Warm Regards,
Lee

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

Feb 13 '06 #4
Lee
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.

--
Warm Regards,
Lee

"Upon further investigation it appears that your software is missing
just one thing. It definitely needs more cow bell..."
Feb 13 '06 #5
You need to contact your service provider for details of what you need to do
in order to get access to the server.

--
Terry Burns
http://TrainingOn.net
"Lee" <lu*************@yahoo.com> wrote in message
news:e8****************@TK2MSFTNGP10.phx.gbl...
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.

--
Warm Regards,
Lee

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

Feb 14 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: James | last post by:
HI, I'm looking for a script that will allow users/admins to have a one click backup solution for a MYSQL Database.. 'BACK DATABASE' button, click and its done... The a restore option, that...
4
by: Neil | last post by:
Hi, I hope this question isn't too far off topic....I'm almost at my wits end trying to figure this out. I have a Mysql database and I wish to automate the backup of the database because I...
1
by: Andrew E | last post by:
I just took over DBA responsibilities for an Oracle 8i database running on Linux. Although I've been working with relational databases for some time, I'm a bit green on Oracle so forgive me. My...
2
by: jwbeaty | last post by:
Here's a weird one. I'm running SQL Server 7 and when I run a backup something weird happens. When I perform the backup via Enterprise Manager by right clicking on the database I want to...
3
by: Tim Morrison | last post by:
MSDE2000 I have an application in which I am running a TSQL command of BACKUP DATABASE and RESTORE DATABASE for the backup and restore commands for my application. For testing purposes, i did the...
7
by: Dirk McCormick | last post by:
Hi, I am writing a remote update app, and I'd like to programmatically backup the SQL Server 2000 database before running the SQL files over it. Can anyone tell me a command that does a hot backup...
1
by: gcetti | last post by:
Can anyone recommend backup procedures for a SQL Server/MSDE product? We have upgraded our program from Access to SQL & before we could just tell our customers what .mdb files to include on their...
3
by: ChrisWinterscheid | last post by:
We are running DB2 8.1 on AIX 5.2. DB2level shows: DB21085I Instance "db2inst1" uses "32" bits and DB2 code release "SQL08016" with level identifier "02070106". Informational tokens are "DB2...
2
by: m19peters | last post by:
We have a script that I had to rework a little bit for 2005 that does a full backup for every database on the server... For some reason on some nights the script does not backup all databases......
0
by: glubber | last post by:
I have a cronned perl script that runs on a different server. when I try to restore it to the server below things dont copy across correctly. the target server is described below. debian 4.0...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.