Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Invalid object name when doing a bulk insert.

Posted on 2014-04-03
7
Medium Priority
?
1,514 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 2000 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
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 

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

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

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

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…
Windocks is an independent port of Docker's open source to Windows.   This article introduces the use of SQL Server in containers, with integrated support of SQL Server database cloning.
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
Viewers will learn how the fundamental information of how to create a table.

609 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