bcp error

  • Dear Experts

    I exported data table by bcp succesfully in txt file, I want to import this file in different sql server but this error occured

    C:\Users\Dell>bcp medica.dbo.patient in d:\patients.txt -c -t -Shome\mssqlserver -Usa -PP@ssw0rd

    SQLState = 08001, NativeError = 87

    Error = [Microsoft][SQL Server Native Client 11.0]SQL Server Network Interfaces: Connection string is not valid [87].

    SQLState = 08001, NativeError = 87

    Error = [Microsoft][SQL Server Native Client 11.0]A network-related or instance-specific error has occurred while establishing a connection

    to SQL Server. Server is not found or not accessible. Check if instance name is correct and if SQL Server is configured to allow remote conn

    ections. For more information see SQL Server Books Online.

    SQLState = S1T00, NativeError = 0

    Error = [Microsoft][SQL Server Native Client 11.0]Login timeout expired

    any help,thanks

  • when I wrote on -Shome not -Shome\mssqlserver

    this error occured

    C:\Users\Dell>bcp medica.dbo.patient in d:\patients.txt -c -t -Shome\mssqlserver -Usa -PP@ssw0rd

    SQLState = 08001, NativeError = 87

    Error = [Microsoft][SQL Server Native Client 11.0]SQL Server Network Interfaces: Connection string is not valid [87].

    SQLState = 08001, NativeError = 87

    Error = [Microsoft][SQL Server Native Client 11.0]A network-related or instance-specific error has occurred while establishing a connection

    to SQL Server. Server is not found or not accessible. Check if instance name is correct and if SQL Server is configured to allow remote conn

    ections. For more information see SQL Server Books Online.

    SQLState = S1T00, NativeError = 0

    Error = [Microsoft][SQL Server Native Client 11.0]Login timeout expired

  • Do you have a linked server set up and allowed remote connections to it?

    ______________________________________________________________________________Never argue with an idiot; Theyll drag you down to their level and beat you with experience

  • do you want to enter my server remotly?

    we can use program named by teamviewer

  • any help

  • Is SQL Server Browser runnning on the database machine?

    Greetz
    Query Shepherd

  • Did you get it resolved?

    A shot in the dark:

    You specified home\mssqlserver

    mssqlserver is the hidden instance name handed to default instances of some versions of SQL Server. Are you sure it is a named instance? Should you just be providing a server name in your bcp command line?

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • yes, the problem was that I configered that the bcp is a case sensetive , when I wrote -c -T capital T , it is solved

    Thanks for your concern

Viewing 8 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic. Login to reply