Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
masterdineen
Aged Yak Warrior
550 Posts |
Posted - 2008-03-26 : 08:55:00
|
I am have trouble configuring developer edition when trying to run a Bulk Copy through Command Prompt. I have configured remote connections within the surface area configuration and have created a firewall exceptionI enter and runbcp FileImportDB..Exam in "c:\FileImportPractice\ExamImportFile.txt" -T -cthen i get the following error messageMicrosoft Windows [Version 6.0.6000]Copyright (c) 2006 Microsoft Corporation. All rights reserved.C:\Users\Dineen>bcp FileImportDB.Exam in "c:\FileImportPractice\ExamImportFile.txt" -T -cSQLState = 08001, NativeError = 2Error = [Microsoft][SQL Native Client]Named Pipes Provider: Could not open a connection to SQL Server [2].SQLState = HYT00, NativeError = 0Error = [Microsoft][SQL Native Client]Login timeout expiredSQLState = 08001, NativeError = 2Error = [Microsoft][SQL Native Client]An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure maybe caused by the fact that under the default settings SQL Server does not allow remote connections.I am running developer edition on vista and Service pack 2, iam connecting to my instance with no problem.Can someone please helpKind regardsRob |
|
RickD
Slow But Sure Yak Herding Master
3608 Posts |
Posted - 2008-03-26 : 10:10:22
|
Can you run this with a SQL User rather than a trusted login? |
|
|
masterdineen
Aged Yak Warrior
550 Posts |
Posted - 2008-03-26 : 10:15:31
|
I only using a trusted login at the moment because i am going through my MCTS course.could you tell where i am going wrong at all please |
|
|
nr
SQLTeam MVY
12543 Posts |
Posted - 2008-03-26 : 13:22:11
|
Looks like you don't have the correct servertry adding-S<machineame>\<instanstancename> to the command==========================================Cursors are useful if you don't know sql.DTS can be used in a similar way.Beer is not cold and it isn't fizzy. |
|
|
masterdineen
Aged Yak Warrior
550 Posts |
Posted - 2008-03-26 : 14:21:47
|
THank you NRI have amended the command with computerName and Instance nameand it looks like a connection is made, but i get the following message insteadC:\Users\Dineen>bcp FileImportDB..Exam in "c:\FileImportPractice\ExamImportFile.txt" -T -c -S DINEENPC\NEWMANSLANESQLState = HY000, NativeError = 0Error = [Microsoft][SQL Native Client]Unable to open BCP host data-fileis there something i have to do with the text file??Kind RegardsRob |
|
|
nr
SQLTeam MVY
12543 Posts |
Posted - 2008-03-26 : 14:31:53
|
It means the txt file isn't there.Check for mispellings.The c drive will be the machine on which you are running the command. If it's actually on the server then use xp_cmdshell to run it.==========================================Cursors are useful if you don't know sql.DTS can be used in a similar way.Beer is not cold and it isn't fizzy. |
|
|
masterdineen
Aged Yak Warrior
550 Posts |
Posted - 2008-03-26 : 14:54:16
|
THank you very much NigelI am teaching myself SQL SERVER 2005 to get my MCTS, and the microsoft book has a few mistakes with syntax sometimesDo you know anyone who need a trainee / Junior SQL DBAJust to be cheekySo thank you very much.RegardsRob |
|
|
|
|
|