SunQuest
           MS SQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesMS SQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today!
  #1  
Old April 23rd, 2004, 07:45 AM
Scatt-Neko Scatt-Neko is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Location: East Hartford, CT
Posts: 65 Scatt-Neko User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 17 m 59 sec
Reputation Power: 6
Backup database

Hi,

I want to backup my MSSQL database using a script, but here lies the problem: The MSSQL is on its own dedicated server seperated from the dedicated WebServer.

I tried to run a script with this sql command:
Code:
BACKUP DATABASE <dbname>
TO DISK = 'drive:\path\to\file\filename'

But, of course, this won't work because the script will try to write on the MS SQL server instead of where the WebServer where my account is.

Is there anyway I can do this? I just want to have the backup saved on the folders in my account in the WebServer instead of the MSSQL server.

Thanks in advance!
__________________
Scatt-Neko

Reply With Quote
  #2  
Old April 23rd, 2004, 09:08 AM
punkisdead's Avatar
punkisdead punkisdead is offline
Moron
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Location: Michigan, USA
Posts: 170 punkisdead User rank is Private First Class (20 - 50 Reputation Level)punkisdead User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 10 h 31 m 37 sec
Reputation Power: 5
If you have access to both the webserver and sqlserver, you could share a folder out on the webserver and map a drive on the sql server to that share.....

Reply With Quote
  #3  
Old April 23rd, 2004, 09:16 AM
Scatt-Neko Scatt-Neko is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Location: East Hartford, CT
Posts: 65 Scatt-Neko User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 17 m 59 sec
Reputation Power: 6
Quote:
Originally Posted by punkisdead
If you have access to both the webserver and sqlserver, you could share a folder out on the webserver and map a drive on the sql server to that share.....


The thing is... I don't So, I am hoping I can do all this using a script.

Reply With Quote
  #4  
Old April 23rd, 2004, 11:47 AM
cleverpig cleverpig is offline
Contributing User
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jul 2003
Posts: 1,152 cleverpig User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
Send a message via MSN to cleverpig
Hi,Scatt-Neko!If u have not db master's privilege to control db,u wouldn't run this sql script on the db server..Although u have a account on the web server,u can't control the db..It's my mind..
__________________
Being a Code Headman !

Reply With Quote
  #5  
Old April 23rd, 2004, 02:01 PM
punkisdead's Avatar
punkisdead punkisdead is offline
Moron
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Location: Michigan, USA
Posts: 170 punkisdead User rank is Private First Class (20 - 50 Reputation Level)punkisdead User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 10 h 31 m 37 sec
Reputation Power: 5
You could probably create a DTS package to run the backup and then FTP it to your webserver.....

Reply With Quote
  #6  
Old April 23rd, 2004, 11:54 PM
cleverpig cleverpig is offline
Contributing User
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jul 2003
Posts: 1,152 cleverpig User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
Send a message via MSN to cleverpig
Thumbs up

Quote:
Originally Posted by punkisdead
You could probably create a DTS package to run the backup and then FTP it to your webserver.....

Hi,punkisdead!I'm a newer to ms sql server manage.Can u tell me hwo to create DTS package for backup?

Reply With Quote
  #7  
Old April 24th, 2004, 12:07 AM
cleverpig cleverpig is offline
Contributing User
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jul 2003
Posts: 1,152 cleverpig User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
Send a message via MSN to cleverpig
Ok,I find this introduce about it on microsoft msdn site:http://msdn.microsoft.com/library/d...pkgmng_7uat.asp
And How to use it as backup tools-DTS Import/Export Wizard:http://msdn.microsoft.com/library/d...ls_wiz_8vsj.asp

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesMS SQL Development > Backup database


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 

IBM developerWorks




© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway