Re: problem with restoring DB using vc++

From: Frank Hickman (fhickman_NOSP_at_M_noblesoft.com)
Date: 12/01/04


Date: Tue, 30 Nov 2004 22:35:07 -0500

The only problem I see is your using an administrative share and the
permissions cannot be altered. You have a couple of options that I can
think of trying.

1. Give the SQL Server account Administrative permissions on the workstation
(not really a great solution!).

2. Create a share and give the SQL Server account access to it.

-- 
============
Frank Hickman
NobleSoft, Inc.
============
Replace the _nosp@m_ with @ to reply.
"venAdder" <venAdder@discussions.microsoft.com> wrote in message 
news:48D61BB9-5DE9-47DC-ABF4-4F0A95BB31E8@microsoft.com...
> Hi,
>
> I have this scenerio:-
>
> 1) The Sql server has database mydb. Server can be remote or local. The
> problem is when it's remote so will mention only that case(remote means on
> LAN ).
>
> 2) I have a app which allows user to back up and restore mydb.
>
> 3) If the user wants to restorte the Db he is shown windows common file
> open dialog box, the user selects the file from some location and hit 
> open.
>
> 4)this location could be on the server or the machine running the app. Now
> if the file is on server everything goes well, but if the file is on the
> machine running the app SQL Server comes back with the error saying device
> error of device offline.
>
> The restore is doen by using a stored proc on the database which basically
> executes somehiting like
> restore datatbase mydb from disk =
> '\\machinename\driveletter$\......\mydbbkp.dat'
>
> Now I imagine this could be due to the fact that the server might not have
> access to the machine running the app. Is there a way to overcome this
> hurdle??
>
> Please help!! Have worked too long on all this to be stuck at this thing. 


Relevant Pages

  • Re: SQL 2000 Windows Authentication - Same User Multiple Groups
    ... functionality using our WinForm app and read-only functionality using ... SQL Server permissions are not application-aware. ... App1 contains CRUD functionality using stored procs (EXEC perms on ...
    (microsoft.public.sqlserver.security)
  • Re: login security question
    ... > I have an application which connects to the SQL server. ... Use Enterprise Manager to access the database / roles. ... Give the Application Role the appropriate permissions. ... what the stored proc is called) using the secret password for the App Role ...
    (microsoft.public.sqlserver.server)
  • Re: Performance issue after coverting from Framework 1.1 to 2.0
    ... I think that I encountered the same problem: A large program with Framework ... the SQL Server for the dev database. ... when you deploy the app on a different machine where the SQL Server is no ... app was fine on the dev machine. ...
    (microsoft.public.dotnet.framework.performance)
  • Re: C5 woes. How stable is VFP really?
    ... After that I close the SQL server cursor and work with my manual cursor instead. ... a VFP9 app on a really old machine ... app was under more "pressure", VFP showed ...
    (microsoft.public.fox.programmer.exchange)
  • Re: DTS package to copy database
    ... Why not BACKUP and RESTORE and then apply scripts to change any owners, ... Create a SQL Script to remove the constraints ... >> Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP) ... >>> The DB permissions are set for local users on each machine (including ...
    (microsoft.public.sqlserver.dts)