Solved

Error 7321 while changing the output path - Reg.

Posted on 2014-04-21
8
216 Views
Last Modified: 2014-05-15
I have a stored procedure which generates a few files and stores it in a particular location. When I change the location to another drive I get this error.

THE ERROR NUMBER IS 7321
 THE ERROR MESSAGE IS:An error occurred while preparing the query "select * from \\VM_FILESERVER\it$\SFPC FL Citizens Takeout Data\SFPC FEB 2014 TAKEOUT4_21_2014_51218357\SFPC_FEB_2014_TAKEOUT_4_21_2014_POLICY_DETAILS.TXT" for execution against OLE DB provider "MSDASQL" for linked server "(null)".


Can some one help me out with what might be the reasons that are causing this ?

Thanks ...
0
Comment
Question by:aaronzw
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
8 Comments
 
LVL 22

Expert Comment

by:Steve Wales
ID: 40013158
Does the user that owns the SQL Server service have permissions on the new path ?
0
 

Author Comment

by:aaronzw
ID: 40013206
Yes Steve !!
0
 
LVL 22

Expert Comment

by:Steve Wales
ID: 40013220
The other thing that is suspect is that it says linked server (null) - I'm no expert in this particular area, but you seem to be reading a flat file as your input as an external table or something like that via a linked server ?

Did you update the definition of your linked server as well to point to the new location ?
0
Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

 

Author Comment

by:aaronzw
ID: 40013257
Hey Steve,

The procedure uses an access database as its input and outputs the data read in the form of text files to a particular location. Now when I try changing that output location I get this error, and the linked server location is updated every time you run the procedure. And the problem is not with reading the file ... it is all about writing the output file in a new location ...
0
 
LVL 22

Expert Comment

by:Steve Wales
ID: 40013328
Beyond that Service not having access to the new location, I'm out of ideas, I'm afraid.  Hopefully someone else has a bright idea.
0
 
LVL 42

Accepted Solution

by:
pcelba earned 500 total points
ID: 40067177
"select * from \\VM_FILESERVER\it$\SFPC FL Citizens Takeout Data\SFPC FEB 2014 TAKEOUT4_21_2014_51218357\SFPC_FEB_2014_TAKEOUT_4_21_2014_POLICY_DETAILS.TXT"  does not seem to have input in Access database. Or do you have MS Access files with .TXT extension?

OK, you should post the real command you are executing and which reports the error. You should also try to use pathes without spaces otherwise SQL Server cannot recognize what is the filename and what is SQL clause.
0

Featured Post

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Oracle Date 6 42
Does INTERSECT return opposite from FULL OUTER JOIN? 4 41
T-SQL Query 9 37
Error converting data type varchar to numeric. 4 14
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
A Stored Procedure in Microsoft SQL Server is a powerful feature that it can be used to execute the Data Manipulation Language (DML) or Data Definition Language (DDL). Depending on business requirements, a single Stored Procedure can return differe…
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
Via a live example, show how to shrink a transaction log file down to a reasonable size.

710 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question