Author |
Message |
Tom Batema #1 / 15
|
 Whats wrong with BCP syntax ?
Y W, bcp database..table in c:\test\test.txt /c You might check for the other "flags" that may be used in "Books Online" or other help on BCP.
|
Mon, 22 May 2000 03:00:00 GMT |
|
 |
Y W Won #2 / 15
|
 Whats wrong with BCP syntax ?
I am trying to import a text file by using the following command :- bcp employee in c:\test\test.txt /c However it reports :- Msg 156, Level 15, State 1 Incorrect syntax near the Keyword 'in'. What is the correct syntax ? Y W Wong
|
Mon, 22 May 2000 03:00:00 GMT |
|
 |
steve Robinso #3 / 15
|
 Whats wrong with BCP syntax ?
Y W Wong, I can not replicat your problem here. I presume you have typed in an example of the command you used rather than the actual command as the first message you would have received would have been the prompt for a password. Please can you post up the exact example, the table structure and some sample data and I will have another go Steve Robinson
|
Mon, 22 May 2000 03:00:00 GMT |
|
 |
Y W Won #4 / 15
|
 Whats wrong with BCP syntax ?
This time the error message is :- Msg 170, Level 15, State 1 Incorrect syntax near '.'. Any idea ? Y W Wong Quote:
> Y W, > bcp database..table in c:\test\test.txt /c > You might check for the other "flags" that may be used in "Books Online" or > other help on BCP.
|
Tue, 23 May 2000 03:00:00 GMT |
|
 |
Y W Won #5 / 15
|
 Whats wrong with BCP syntax ?
This time the error message is :- Msg 170, Level 15, State 1 Incorrect syntax near '.'. Any idea ? Y W Wong Quote:
> Y W, > bcp database..table in c:\test\test.txt /c > You might check for the other "flags" that may be used in "Books Online" or > other help on BCP.
|
Tue, 23 May 2000 03:00:00 GMT |
|
 |
Y W Won #6 / 15
|
 Whats wrong with BCP syntax ?
This time the error message is :- Msg 170, Level 15, State 1 Incorrect syntax near '.'. Any idea ? Y W Wong Quote:
> Y W, > bcp database..table in c:\test\test.txt /c > You might check for the other "flags" that may be used in "Books Online" or > other help on BCP.
|
Tue, 23 May 2000 03:00:00 GMT |
|
 |
Y W Won #7 / 15
|
 Whats wrong with BCP syntax ?
This time the error message is :- Msg 170, Level 15, State 1 Incorrect syntax near '.'. Any idea ? Y W Wong Quote:
> Y W, > bcp database..table in c:\test\test.txt /c > You might check for the other "flags" that may be used in "Books Online" or > other help on BCP.
|
Tue, 23 May 2000 03:00:00 GMT |
|
 |
Y W Won #8 / 15
|
 Whats wrong with BCP syntax ?
Now it reply :- Msg 170, Level 15, State 1 Incorrect syntax near '.'. Any more idea ? Y W Wong Quote:
> Y W, > bcp database..table in c:\test\test.txt /c > You might check for the other "flags" that may be used in "Books Online" or > other help on BCP.
|
Tue, 23 May 2000 03:00:00 GMT |
|
 |
Y W Won #9 / 15
|
 Whats wrong with BCP syntax ?
This time the error message is :- Msg 170, Level 15, State 1 Incorrect syntax near '.'. Any idea ? Y W Wong Quote:
> Y W, > bcp database..table in c:\test\test.txt /c > You might check for the other "flags" that may be used in "Books Online" or > other help on BCP.
|
Tue, 23 May 2000 03:00:00 GMT |
|
 |
Y W Won #10 / 15
|
 Whats wrong with BCP syntax ?
This time the error message is :- Msg 170, Level 15, State 1 Incorrect syntax near '.'. Any idea ? Y W Wong Quote:
> Y W, > bcp database..table in c:\test\test.txt /c > You might check for the other "flags" that may be used in "Books Online" or > other help on BCP.
|
Tue, 23 May 2000 03:00:00 GMT |
|
 |
Y W Won #11 / 15
|
 Whats wrong with BCP syntax ?
This time the error message is :- Msg 170, Level 15, State 1 Incorrect syntax near '.'. Any idea ? Y W Wong Quote:
> Y W, > bcp database..table in c:\test\test.txt /c > You might check for the other "flags" that may be used in "Books Online" or > other help on BCP.
|
Tue, 23 May 2000 03:00:00 GMT |
|
 |
Y W Won #12 / 15
|
 Whats wrong with BCP syntax ?
This time the error message is :- Msg 170, Level 15, State 1 Incorrect syntax near '.'. Any idea ? Y W Wong Quote:
> Y W, > bcp database..table in c:\test\test.txt /c > You might check for the other "flags" that may be used in "Books Online" or > other help on BCP.
|
Tue, 23 May 2000 03:00:00 GMT |
|
 |
Al Froehl #13 / 15
|
 Whats wrong with BCP syntax ?
Hi Check out the BCP help by typing "BCP /?" at the command prompt. The dbtable is database.owner.table. Also check out the /S switch (server) if you are executing this command from a machine other than the SQL Server host. ie:: bcp MyDatabase.dbo.Postal_Codes in e:\datafile\dlpost /c /t ~ /m 500 /U xx /P ***** /S Server Al -------------------------------------------
Quote: >I am trying to import a text file by using the following command :- >bcp employee in c:\test\test.txt /c >However it reports :- >Msg 156, Level 15, State 1 >Incorrect syntax near the Keyword 'in'. >What is the correct syntax ? >Y W Wong
|
Tue, 23 May 2000 03:00:00 GMT |
|
 |
Kalen Delane #14 / 15
|
 Whats wrong with BCP syntax ?
You are trying to run bcp from a SQL Query window. BCP is not a SQL Command, it must be run from an operating system (DOS) command prompt. -- Kalen Delaney MCSE, SQL Server MCT, MVP
Quote: > I am trying to import a text file by using the following command :- > bcp employee in c:\test\test.txt /c > However it reports :- > Msg 156, Level 15, State 1 > Incorrect syntax near the Keyword 'in'. > What is the correct syntax ? > Y W Wong
|
Wed, 24 May 2000 03:00:00 GMT |
|
 |
Kalen Delane #15 / 15
|
 Whats wrong with BCP syntax ?
You are trying to run bcp from a SQL Query window. BCP is not a SQL Command, it must be run from an operating system (DOS) command prompt. -- Kalen Delaney MCSE, SQL Server MCT, MVP
Quote: > I am trying to import a text file by using the following command :- > bcp employee in c:\test\test.txt /c > However it reports :- > Msg 156, Level 15, State 1 > Incorrect syntax near the Keyword 'in'. > What is the correct syntax ? > Y W Wong
|
Wed, 24 May 2000 03:00:00 GMT |
|
|