Drop Table

Support Forum for database administrators and web based access to important newsgroups related to databases
Register on Database Support Forum Edit your profileCalendarFind other Database Support forum membersFrequently Asked QuestionsSearch this forum -> 
For Database admins: Free Database-related Magazines Now Free shipping to Texas


Post New Thread










Thread
Author

UNC path for backups
I have a GUI (MS Access Application) which allows the user to choose the
backup path (network or local) for the database (SQL Server 200 SP4). If it
is a mapped drive, then that value (which is a "drive" not "UNC" path) gets
stored in the table and a stored procedure accesses this value to do the
backup.

From all the postings, I have learnt that this is not a good way to do
backups to network. So here is my question: How can I store the UNC value in
the database table from the GUI? All I can see from the GUI is the mapped
drive and not the UNC. Can this be done in SQL Server itself? Any help is
appreciated. Thanks

Report this thread to moderator Post Follow-up to this message
Old Post
KMP
03-30-06 01:23 AM


Re: UNC path for backups
http://support.microsoft.com/kb/555128

The concepts should translate directly.  If you can't enter a UNC name
directly, then you need to update/replace the application.

--
Geoff N. Hiten
Senior Database Administrator
Microsoft SQL Server MVP


"KMP" <KMP@discussions.microsoft.com> wrote in message
news:139B45E1-F4D0-4514-BBDF- D4D5A5CE379C@microso
ft.com...
>
> I have a GUI (MS Access Application) which allows the user to choose the
> backup path (network or local) for the database (SQL Server 200 SP4). If
> it
> is a mapped drive, then that value (which is a "drive" not "UNC" path)
> gets
> stored in the table and a stored procedure accesses this value to do the
> backup.
>
> From all the postings, I have learnt that this is not a good way to do
> backups to network. So here is my question: How can I store the UNC value
> in
> the database table from the GUI? All I can see from the GUI is the mapped
> drive and not the UNC. Can this be done in SQL Server itself? Any help is
> appreciated. Thanks



Report this thread to moderator Post Follow-up to this message
Old Post
Geoff N. Hiten
03-30-06 01:23 AM


Re: UNC path for backups
A UNC path can be stored in a database table like any other character
string.  You can use WMI to enumerate drives on the remote SQL Server as
well as list servers and shares on your network.  I don't know much about
Access but I presume there are techniques to render this information for
backup folder selection.

--
Hope this helps.

Dan Guzman
SQL Server MVP

"KMP" <KMP@discussions.microsoft.com> wrote in message
news:139B45E1-F4D0-4514-BBDF- D4D5A5CE379C@microso
ft.com...
>
> I have a GUI (MS Access Application) which allows the user to choose the
> backup path (network or local) for the database (SQL Server 200 SP4). If
> it
> is a mapped drive, then that value (which is a "drive" not "UNC" path)
> gets
> stored in the table and a stored procedure accesses this value to do the
> backup.
>
> From all the postings, I have learnt that this is not a good way to do
> backups to network. So here is my question: How can I store the UNC value
> in
> the database table from the GUI? All I can see from the GUI is the mapped
> drive and not the UNC. Can this be done in SQL Server itself? Any help is
> appreciated. Thanks



Report this thread to moderator Post Follow-up to this message
Old Post
Dan Guzman
03-30-06 02:23 PM


RE: UNC path for backups
Use UNC not mapped drives, and ensure MSSQLSERVER is running under a service
account that is in your domain and has the ACL (NTFS privileges dialog) set
appropriately on folders, or parents, you need to write to. Without the
service account with the approprate folder permissions, you will not be able
to write to the said network folders.

--
Andy Price,
Sr. Database Administrator,
MCDBA 2003


"KMP" wrote:

>
> I have a GUI (MS Access Application) which allows the user to choose the
> backup path (network or local) for the database (SQL Server 200 SP4). If i
t
> is a mapped drive, then that value (which is a "drive" not "UNC" path) get
s
> stored in the table and a stored procedure accesses this value to do the
> backup.
>
> From all the postings, I have learnt that this is not a good way to do
> backups to network. So here is my question: How can I store the UNC value 
in
> the database table from the GUI? All I can see from the GUI is the mapped
> drive and not the UNC. Can this be done in SQL Server itself? Any help is
> appreciated. Thanks

Report this thread to moderator Post Follow-up to this message
Old Post
Andy Price
03-30-06 02:23 PM


RE: UNC path for backups
Thank you all for your suggestions. It was very useful.

"Andy Price" wrote:

> Use UNC not mapped drives, and ensure MSSQLSERVER is running under a servi
ce
> account that is in your domain and has the ACL (NTFS privileges dialog) se
t
> appropriately on folders, or parents, you need to write to. Without the
> service account with the approprate folder permissions, you will not be ab
le
> to write to the said network folders.
>
> --
> Andy Price,
> Sr. Database Administrator,
> MCDBA 2003
>
>
> "KMP" wrote:
> 

Report this thread to moderator Post Follow-up to this message
Old Post
KMP
03-31-06 06:23 PM


Sponsored Links





Last Thread Next Thread
Post New Thread

MS SQL Server archive

Show a Printable Version Email This Page to Someone! Receive updates to this thread
Microsoft SQL Server
Access database support
PostgreSQL Replication
SQL Server ODBC
FoxPro Support
PostgreSQL pgAdmin
SQL Server Clustering
MySQL ODBC
Web Applications with dBASE
SQL Server CE
MySQL++
Sybase Database Support
MS SQL Full Text Search
PostgreSQL Administration
SQL Anywhere support
DB2 UDB Database
Paradox Database Support
Filemaker Database
Berkley DB
SQL 2000/2000i database
ASE Database
Forum Jump:
All times are GMT. The time now is 08:01 PM.

 
Mobile devices forum | Database support forum archive




Copyrights DropTable.com Database Support Forum 2004 - 2006