Mapped Drives On SQL Server

Aug 6, 2001

Hi,

I mapped a drive on to my SQL Server box. It points to another server from the same domain. When I try to backup or restore a database, I can't see this mapped drive through my SQL Server. Even if I type the entire path, SQL Server wouldn't take it. I don't have a clue about why it is not working. Can anyone throw some light on this. Your help is grately appreciated.

Thanks,
Varma

View 2 Replies


ADVERTISEMENT

Service User Accounts, Mapped Drives, Backups Question

Jun 26, 2007

This has been extremely confusing for me.



I want to just make a simple backup.

first of all when i choose the pick a folder to backup, no mapped drives I make are even THERE.



I realize this is probably related to the account being used, okay I thought let me change the user account to a network admin account... I still cannot see the drive.



Can't this thing just accept whatever I tell it to access like any other program??

You would think they would at least keep the standard Open File dialog so we can use the network browser or something...



I've changed my accounts all to NETWORK SERVICE, then LOCAL SYSTEM, then a DOMAIN ADMIN...

I can't get this to work correctly on this freshly installed server... can someone please help?



I'm at the point where I don't care if i have to just re-install the damn thing...

Just someone please tell me what to pick for the accounts.





Bonus: I have this same issue with reporting services and Services for Unix NFS Mapped drives.

How can I map a drive with NETWORK SERVICE Credentials so it finds the datasource path?



I've only been able to do something like this with psexec and Local System.

When logged in as Domain Admin it will show a disconnected network drive that you cant get rid of but system account can use.

View 3 Replies View Related

HELP. Back Up Problem When Backing Up To A Mapped Drive On Another Server

Mar 20, 2002

Hi,

I have a rather odd problem that hopefully you'll be able to shed some light on.

We want to back up the databases to a hard drive held on another server so I mapped the drive in explorer to the drive then went into Enterprise manager and tried to create a backup device and it won't see the mapped drive.

I've tried mapping to my PC and I can see that via enterprise managers backup stuff (infact any PC in the office works) but it won't see any of the servers even though we can map to them and access them via windows explorer.

I've tried when logged on via sa and the windows NT administrator and still no luck. In fact no matter what I type or do it fails and keeps telling me device error or device off line which it isn't.

On our test instance of SQL Sever we can backup to other servers but not the new live version!

Any thoughts on what might cause this to happen and how to fix it?

Help much appriciated.
Thanks Helen

View 1 Replies View Related

HELP. Back Up Problem When Backing Up To A Mapped Drive On Another Server

Mar 20, 2002

Hi,

I have a rather odd problem that hopefully you'll be able to shed some light on.

We want to back up the databases to a hard drive held on another server so I mapped the drive in explorer to the drive then went into Enterprise manager and tried to create a backup device and it won't see the mapped drive.

I've tried mapping to my PC and I can see that via enterprise managers backup stuff (infact any PC in the office works) but it won't see any of the servers even though we can map to them and access them via windows explorer.

I've tried when logged on via sa and the windows NT administrator and still no luck. In fact no matter what I type or do it fails and keeps telling me device error or device off line which it isn't.

On our test instance of SQL Sever we can backup to other servers but not the new live version!

Any thoughts on what might cause this to happen and how to fix it?

Help much appriciated.
Thanks Helen

View 1 Replies View Related

SQL 2012 :: Attaching MDF / LDF Hosted On Another Server / Mapped Drive

Mar 20, 2015

Although clearly not best practice for a produciton DB, is it supported to attach MDF/LDF files that are hosted on a network drive?

I have been exploring options to host a read only archive database that we need to access on a very short term adhoc basis.

View 2 Replies View Related

SQL Server/Windows 2003 Mapped Drive Limit.

May 22, 2006



I am setting up 4 Windows 2003 server with SQL server 2005 .

I am using a new SAN device and I am setting up over 37 separate devices.

Three of the machines will be the production machines. The fourth machine will

contains log shipped copies of 37 databases.

I would like to keep each the 37 databases on its own device on the new SAN device.

The problem that I am running into is that I can only map drives up to the letter Z .

Is it possible to map more than 26 drives on a Windows 2003 server ?



View 1 Replies View Related

SQL Server Not Showing The Drives

Mar 13, 2006

My sql server is not showing all of my drives in server. Please help me

View 5 Replies View Related

Drives On Server And How To Define Raid For Them

Jan 25, 2008

Hello! I hope that I have posted in the right spot.
We are looking for advise. I know that there is no right or wrong answer. "It depends."

We currently have a server with the OS as Windows Server 2003 SP2 and SQL Server 2000 SP3. This Server has 6 physical drives; only 3 of these physical drives are being used. These 3 physical drives are 1 container with Raid 5. This 1 container is divided into 3 logical drives.

We would like to fill the other 3 physical drive slots and create another container. We were thinking of making this Raid 1.

I should put in my disclaimer that Raid 10 is out of the question and so is SAN.

Is Raid 1 the best choice? This is my first question.

Next is how should we split up the files among the containers.

For example, OS, log and swap file on container 1 with Raid 1 and datafiles on container 2 with Raid 5?

What are most people doing? Is there a standard? Can people provide examples of what they are doing or provide suggestions?

View 11 Replies View Related

SQL Server Admin 2014 :: Configure Agent Access To A Mapped Drive?

Oct 16, 2014

I'm trying to create a job that will copy a backup file from a mapped network drive to a local folder however it keeps failing due to a privilege.

The command is:
copy 10.10.10.5f$ est.nightly H:MSSQLBackup est.nightly

I can run the command successfully from the command prompt, however using the same command in a SQL Server job it fails with "Access is denied".

How do I configure the mapped network drive to allow the Sql Server Agent to get access to it?

View 1 Replies View Related

SQL Server 2008 :: Separate Drives For MDF / LDF On Same Storage?

Apr 14, 2015

I'm aware that it's best practice to separate mdf and ldf files onto separate drives.

However, I see a lot of servers where the underlying disk array is the same for drives on the server.

Is there still any performance benefit to separating mdf and ldf files in this situation?

For example, a single virtual server running SQL Server, with multiple drives attached.All of the drives are connected to a shared storage via iSCSI.There drives C:, D:, E: etc are all actually sharing the same underlying disks.

Obviously, there are some benefits from an administration perspective whereby individual drives can be reconfigured without affecting the others.

View 6 Replies View Related

SQL Server 2008 :: Command For Adding New Drives?

Aug 26, 2015

Currently we're running everything on C: but I've convinced management to split out, what's the command to add drives?

View 9 Replies View Related

Swapping Out Drives On Our Production SQL Server This Weekend

Jul 20, 2005

All,To make a long story short, we are swapping out the "knock-off" drivesthat the NA purchased on E-Bay in one of our production SQL Servers(SQL Server 2000 Enterprise) this weekend for brand new ones (Compaq15K RPM 32GB drives). We are currently experiencing ASR almost on adaily basis and it is really causing a disription in service. SO, TheNetwork Admin ahs made this decison to replace these drives in attemptto solve this. These new drives will be imaged with ALL of the currentdata on the "knock-off' drives and will be plugged back in to thisdatabase server and brought back up .This Server also happens tocurrently be a subscriber in Merge Replication as well. Besidesstopping replication to this subscriber is there any other tasks thatI need to do or concerns that I need to be knowledgable about or lookfor when we bring this database server backup on line this weekend?Thanks Travis. :)

View 1 Replies View Related

Backing Up The SQL Server 2000 Database Using Tape Drives

Jun 9, 2006

Dear sir/madam,

I am from NTU, Singapore and we have a windows 2003 server edition installed on a DELL server and it also runs MS SQL server 2000 for a project of ours. We have installed a HP tape drive on the dell server and it works fine if ntbackup is used at the command prompt but then the SQL enterprise manager does not recognize the tape drive and backing up of our database is of high priority as it contains sensitive information. But the tape drive is installed properly as the device manager does not show any error and ntbackup also recognizes it. I cant seem to figure out why SQL server 2000 cannot recognize it. It would be very helpful if you could kindly guide me on this issue.

Thanking you

Regards

Lavanya Janardhanan



View 1 Replies View Related

Show Mapped Connections

May 31, 2001

Hi, Everyone,

Can any one tell me how to monitor the users connected (by mapping) to my windows 2000 machine? Thank.

View 1 Replies View Related

Help With Mapped Or Linked Database

May 3, 2007

Is there a way to setup a mapped database between ms sql servers? I have 2 mssql servers, however, if someone connects to sql1 and tires to use a database that son sql2, i want it to map to that without giving an error that the database doesnt existst.

I tried linking them but it still says "xxx database doesnt exists" since it recides on the other server.

View 1 Replies View Related

DTS Not Running On A Mapped Drive

Nov 15, 2005

I created a DTS local package on the SQL Server. It's basically importing a text file into a table in my database. This file resides in a mapped drive (X:) from another server. When I schedule the DTS as a job, it fails. It doesn't execute any of the workflow in the design.

However, when I copy the text file into a drive local to the SQL server (D:), it runs flawlessly.

What I do right now is I have a windows scheduled task that runs a batch file that copies the text file from X: to D: at certain time intervals. Then the job scheduler runs to import it.

What am I missing? How come the job scheduler can't read the file directly from the mapped drive?

Any info would be appreciated. TIA

View 2 Replies View Related

DTS From Mapped Drive Problem

Oct 16, 2007

Hey guys

I am having a problem with a DTS package that pulls from a flat file off a mapped drive. When the package is ran alone, it runs perfectly but the stored proc that I took from an example from the net will not execute the DTS properly and I am unsure as to why it will not do so.

CREATE PROC spExecuteDTS
@Server varchar(255),
@PkgName varchar(255), -- Package Name (Defaults to most recent version)
@ServerPWD varchar(255) = Null,-- Server Password if using SQL Security to load Package (UID is SUSER_NAME())
@IntSecurity bit = 0,-- 0 = SQL Server Security, 1 = Integrated Security
@PkgPWD varchar(255) = ''-- Package Password
AS

SET NOCOUNT ON
/*
Return Values
- 0 Successfull execution of Package
- 1 OLE Error
- 9 Failure of Package
*/
DECLARE @hr int, @ret int, @oPKG int, @Cmd varchar(1000)

-- Create a Pkg Object
EXEC @hr = sp_OACreate 'DTS.Package', @oPKG OUTPUT
IF @hr <> 0
BEGIN
PRINT '*** Create Package object failed'
EXEC sp_displayoaerrorinfo @oPKG, @hr
RETURN 1
END

-- Evaluate Security and Build LoadFromSQLServer Statement
IF @IntSecurity = 0
SET @Cmd = 'LoadFromSQLServer("' + @Server +'", "' + SUSER_SNAME() + '", "' + @ServerPWD + '", 0, "' + @PkgPWD + '", , , "' + @PkgName + '")'
ELSE
SET @Cmd = 'LoadFromSQLServer("' + @Server +'", "", "", 256, "' + @PkgPWD + '", , , "' + @PkgName + '")'

EXEC @hr = sp_OAMethod @oPKG, @Cmd, NULL

IF @hr <> 0
BEGIN
PRINT '*** LoadFromSQLServer failed'
EXEC sp_displayoaerrorinfo @oPKG , @hr
RETURN 1
END

-- Execute Pkg
EXEC @hr = sp_OAMethod @oPKG, 'Execute'
IF @hr <> 0
BEGIN
PRINT '*** Execute failed'
EXEC sp_displayoaerrorinfo @oPKG , @hr
RETURN 1
END

-- Check Pkg Errors
EXEC @ret=spDisplayPkgErrors @oPKG

-- Unitialize the Pkg
EXEC @hr = sp_OAMethod @oPKG, 'UnInitialize'
IF @hr <> 0
BEGIN
PRINT '*** UnInitialize failed'
EXEC sp_displayoaerrorinfo @oPKG , @hr
RETURN 1
END

-- Clean Up
EXEC @hr = sp_OADestroy @oPKG
IF @hr <> 0
BEGIN
EXEC sp_displayoaerrorinfo @oPKG , @hr
RETURN 1
END

RETURN @ret
GO


that is the stored proc that i am using along with a couple error trapping ones but this being the one that does the actual execution. Is there anything i can change about this in order for it to run the DTS properly from the mapped drive?

thank you

View 5 Replies View Related

Certificate-mapped Logins

Oct 20, 2007

Hello every body
what is certificate-mapped logins? and how we can authenticate with these logins?
thanks

View 1 Replies View Related

Restore Problem W/ UNC Or Mapped Drive

Jan 22, 2001

From my workstation (with SQL Server 7 Desktop Edition SP3), I seem unable to restore a database on my Server (SQL Server Standard Edition SP3). I am logged into both machines, and I am an Administrator on both machines. Using either a UNC or Mapped Drive (see below)

RESTORE DATABASE ogAEC FROM ogAECDump WITH REPLACE , RECOVERY , STATS
, MOVE 'AEC_Data' TO 'Og-sqlsrvrC-DriveMSSQL7DataogAEC_Data.MDF'
, MOVE 'AEC_Log' TO 'Og-sqlsrvrC-DriveMSSQL7DataogAEC_Log.LDF'

RESTORE DATABASE ogAEC FROM ogAECDump WITH REPLACE , RECOVERY , STATS
, MOVE 'AEC_Data' TO 'Q:MSSQL7DataogAEC_Data.MDF'
, MOVE 'AEC_Log' TO 'Q:MSSQL7DataogAEC_Log.LDF'

I get
Server: Msg 3156, Level 16, State 2, Line 1
The file 'Og-sqlsrvrC-DriveMSSQL7DataogAEC_Data.MDF' cannot be used by RESTORE. Consider using the WITH MOVE option to identify a valid location for the file.

But I am successful if I run the essentially command locally from the server:

RESTORE DATABASE ogAEC FROM ogAECDump WITH REPLACE , RECOVERY , STATS
, MOVE 'AEC_Data' TO 'C:MSSQL7DataogAEC_Data.MDF'
, MOVE 'AEC_Log' TO 'C:MSSQL7DataogAEC_Log.LDF'

What can I do to be able to restore DBs from my workstation?

View 1 Replies View Related

Mapped Names In Security Manager

Jul 21, 1999

Hi,

I am trying to grant users permissions to our database, but when I add the users through a local group, I receive a mapped name of DOMAIN_USERNAME.

We are using standard security, with the SSQL server in a resource domain. I have created a local group with the global group inside it from the accounts domain. This seems usual MS practice to me.

We do not want these long cumbersome login names, but I am slowly worrying that there may perhaps be no way around it. Can't they just login with their normal username?

Any light...
Jack.

View 1 Replies View Related

Creating A Database On A Mapped Drive

Mar 23, 2004

Is it possible to create a database (MSSQL2k) on a mapped drive which is not a SAN?

Thanks,
Peter Schauss

View 3 Replies View Related

SQL 2012 :: Mapped Credential Is Not Used In Any Query?

Jul 9, 2014

Due to a previous (mis)configuration, i need to grant readwrite permission on a share from a MSSQL DB User.The SQL user will launch t-sql queries on demand and they cannot be scheduled.

I've created a credential object in SSMS, configured it with the correct AD user and mapped it to the MSSQL DB user.Now, if i execute a simple t-sql backup:

BACKUP DATABASE [DB] TO DISK = N'IP.ADD.RE.SSshareDB.bak' WITH NOFORMAT, NOINIT, NAME = N'DB-Full Database Backup', SKIP, NOREWIND, NOUNLOAD, STATS = 10
GO

I get an access denied error, monitoring the sqlserv.exe process via procmon, i see that the Sql Server process is not impersonating the AD user configured in the credential, it still try to access using the local machine account .

View 1 Replies View Related

If User Is Mapped To Master - Can They Access All DBs

Mar 5, 2015

If a user is mapped to "master", (in login properties, user mapping) are they able to access all dbs, even though "master" is the only one with the check mark?

View 3 Replies View Related

Error 15185: There Is No Remote User 'sa' Mapped To Local User '(null)' From The Remote Server 'DTS_FSERVER'.

Nov 10, 2006

I am trying to add a linked server from a AMD x64 server (Windows 2003) with SQL Server 2005 64 bit to a Server running SQL 2000. These are not in the same domain.

I can create a linked server using the option "Be made using the login's current security context" but can not when trying to specify the security context, i.e. sa and the sa password. When I try I get the following message:

Msg 15185, Level 16, State 1, Procedure sp_addlinkedsrvlogin, Line 98
There is no remote user 'sa' mapped to local user '(null)' from the remote server 'DTS_FSERVER'.

I have several other x64 server that I have no problem creating a linked server and specifying sa and the sa password.

The problem with using "the login's current security context" option is that I get an error when trying to run any Jobs against the linked server. The job fails withe the following error:

Executed as user: NT AUTHORITYSYSTEM. Access to the remote server is denied because no login-mapping exists. [SQLSTATE 42000] (Error 7416). The step failed.

I'm sure the two errors are related. Any ideas what is going on?

View 7 Replies View Related

Different Drives

Feb 6, 2008

I am trying to run a program called NVivo7, which - when I install - also requires installation of SQL Server. Because my C drive is small (and nearly full), I am trying to run NVivo7 off my D drive, though SQL seems to install on C. Is it possible, do you think, to use 2 different drives in this way, or do both the program and the Server need to be on the same one? If so, is there any way to get them both on D?

View 3 Replies View Related

How To Restore Database From A Mapped Network Drived

Aug 24, 2000

How to Restore database from a Mapped Network Drived where i have taken
backup from a production server and want to restore in Development server, without copying it to local harddrive. I do not have enough space on my local Drive. I am trying Following command, but i get error, saying cannot recognize 'g:mssql7ackupProduction.bak'.

RESTORE DATABASE TestRestore
FROM disk ='g:mssql7ackupProduction.bak'
WITH REPLACE,
MOVE 'TestRestore' TO 'c:mssql7dataNewNwind.mdf',
MOVE 'TestRestore_log' TO 'c:mssql7dataNewNwind.ldf'

Where g is my mapped drive Pavilion$h

View 6 Replies View Related

Sp_attach_db Failed On Mapped Remote Drive

Mar 1, 2001

Hi,all.
I tried to issue:
sp_attach_db pubs,'F:anthonypubs.mdf','F:anthonypubs.ldf'

where the pubs.mdf and pubs.ldf are on a remote mapped drive F:,
I got error:

Server: Msg 5105, Level 16, State 4, Line 1
Device activation error. The physical file name 'f:anthonypubs.ldf' may
be incorrect.

Is attaching a database ONLY supported for local servers ??
What about creating database on remote drive? (I have same error msg back)
Thx
Anthony

View 1 Replies View Related

Backing Up Data To Network Drive Mapped

Aug 6, 2003

I am new to the DB Administration.

How do i back up the data to a network drive mapped on a day to day basis.

View 4 Replies View Related

Access Limitation Of Memo Field Mapped

Jan 23, 2014

Our company is migrating a Microsoft Access 2010 backend database to a SQL Server 2008 database. One of the memo fields in the Access backend can store up to 150 Kb of Unicode data. To store this data in SQL server, we found that we can use the following data types:

ntext = (2^30) - 1 = 1,073,741,823 bytes.
nvarchar(max) = (2^31) - 1 = 2,147,483,647 bytes.

Because ntext will be deprecated in future releases of SQL Server, the only good alternative to store an Access memo field in SQL server is to use nvarchar(max), which is what Microsoft recommends for large Unicode texts.Storing a large amount of text like 150 Kb in an nvarchar(max) field using only SQL server works as expected. However, if Access is used to store the data in a table linked to SQL server, the maximum number of characters allowed is only 4000. We found that this limitation is imposed by the ODBC driver that limits nvarchar(max) to 4000 characters.

The connection string we are currently using to link a table to SQL server is this:

ODBC;DRIVER={SQL Server Native Client 10.0};SERVER= SQLEXPRESS;DATABASE=TestDB;Trusted_Connection=No;UID=uid;PWD=pwd;

Any solution for this limitation storing large amounts of data in a Microsoft Access memo field mapped to an nvarchar(max) data field in a SQL Server database?

View 2 Replies View Related

Do Mapped Columns Need To Be In Exact Order Everytime?

Jan 23, 2008

In my SSIS package I have a text file source that I am mapping to a destination table. I have an error component that logs any row level errors and have noticed that it is not logging the correct field. I know this because I have a few different sources that submit the same files and have looked at the source of both. THE ONLY DIFFERENCE in the one that works versus the one that does not is that 2 of the 25+ columns are switched. I would not think this would matter because field A in the text file is mapped to field A in the database.

Does the order in which the fields come into the SSIS package matter?

Thanks

View 5 Replies View Related

DB Engine :: Selecting Credential That Are Mapped To Login?

Nov 23, 2015

is any way to select SQL logins that are Mapped To Credentials as using this query I get only NULL:

SELECT credential_id FROM sys.server_principals WHERE name = 'test_login'

I see the list of Mapped Credentials in SQL login properties with GUI, but can not select this option. 

View 6 Replies View Related

DB Engine :: What Is The Use Of Mapped To Certificate / Asymmetric Key / Credentials

Jul 23, 2015

1) what is the use of mapped to certificate/asymmetric key/credentials

2) how to use mapped to certificate/asymmetric key/credentials

3) in which conditions we can use mapped to certificate/asymmetric key/credentials which is present on login properties page

[URL]

View 3 Replies View Related

How To Change What LOGIN Is Mapped To A Db USER (windows Not SQL)

Aug 17, 2007



Is there a form of ALTER USER or other option that would allow me to change the Windows-based login associated with a user account?

According to BOL, I cannot use the sp_change_users_login trick since I want to rewire up to a Windows login, not a SQL Server login.

-- Margo

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved