Solved

Invalid object name when doing a bulk insert.

Posted on 2014-04-03
7
1,354 Views
Last Modified: 2014-04-03
When I run the code below, I get the error seen below the code. As far as I can tell _gpg_filenames is a valid object. I could be wrong. COuld some please help with this.
Thanks in advance.

code...
use Direxxis

BULK
INSERT _gpg_filesnames_test
FROM 'C:\Documents and Settings\sritsick\My Documents\jsr\Erie_Master\ErieTest\filelist_test.txt'
WITH
(
FIELDTERMINATOR = '|',
ROWTERMINATOR = '\n'
)
GO

messages...
Msg 208, Level 16, State 82, Line 3
Invalid object name '_gpg_filesnames_test'.
0
Comment
Question by:tesla764
[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
  • 4
  • 3
7 Comments
 
LVL 11

Expert Comment

by:Simone B
ID: 39975393
Is the name _gpg_filesnames or _gpg_filesnames_test ? You are using _gpg_filesnames_test
0
 

Author Comment

by:tesla764
ID: 39975439
I am using _gpg_filenames_test
I just noticed the "s" in filesnames. I changed that to filenames and get the following error...
Msg 4861, Level 16, State 1, Line 3
Cannot bulk load because the file "C:\Documents and Settings\sritsick\My Documents\jsr\Erie_Master\ErieTest\filelist_test.txt" could not be opened. Operating system error code 3(The system cannot find the path specified.).

This path does exist.
0
 
LVL 11

Accepted Solution

by:
Simone B earned 500 total points
ID: 39975502
Hmmm ... could it be an access issue? How are you running this, in mgmt studio using Windows authentication? Are you sritsick, running this on your local machine, or is it run from a job or procedure? The only other thing I can think of is perhaps a typo.
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:tesla764
ID: 39975557
yes I am running management studio using windows authentication, no I am mbergman which should have all privs needed. I am testing this from the studio management query (New Query). I have looked thoroughly for typos. I can't find any.
0
 
LVL 11

Expert Comment

by:Simone B
ID: 39975608
I'm running out of ideas, yet it still somehow seems an access or path issue. The machine you're using is a Windows OS version that uses "Documents and Settings?"
0
 

Author Comment

by:tesla764
ID: 39975761
I think this is a permissions issue. Thanks for your help.
0
 

Author Closing Comment

by:tesla764
ID: 39975762
Thanks.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

In this article we will learn how to fix  “Cannot install SQL Server 2014 Service Pack 2: Unable to install windows installer msi file” error ?
Recently we ran in to an issue while running some SQL jobs where we were trying to process the cubes.  We got an error saying failure stating 'NT SERVICE\SQLSERVERAGENT does not have access to Analysis Services. So this is a way to automate that wit…
Via a live example, show how to shrink a transaction log file down to a reasonable size.
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

688 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