Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BCP - load data into SQLEXPRESS - localhost #14793

Closed
jimthereaper opened this issue Sep 11, 2018 · 6 comments
Closed

BCP - load data into SQLEXPRESS - localhost #14793

jimthereaper opened this issue Sep 11, 2018 · 6 comments

Comments

@jimthereaper
Copy link

jimthereaper commented Sep 11, 2018

Hello,

I'm using powershell to upload data into a database which is on a localhost server (SQLEXPRESS). Can someone help me with the bcp command? I keep getting the below error:
SQLState = 08001, NativeError = -1
Error = [Microsoft][ODBC Driver 13 for SQL Server]SQL Server Network Interfaces: Error Locating Server/Instance Specified [xFFFFFFFF].
SQLState = 08001, NativeError = -1
Error = [Microsoft][ODBC Driver 13 for SQL Server]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 connections. For more information see SQL Server Books Online.
SQLState = S1T00, NativeError = 0
Error = [Microsoft][ODBC Driver 13 for SQL Server]Login timeout expired

Thank you!


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

@Karishma-Tiwari-MSFT
Copy link
Member

@anonymousReaper Thanks for your question. Can you please share the url, if there is a particular Azure doc you have been following?

@jimthereaper
Copy link
Author

@Karishma-Tiwari-MSFT Hello Karishma, the MSFT documentation URL is https://docs.microsoft.com/en-us/azure/sql-database/sql-database-design-first-database#load-data-into-the-tables

The section which is named as Load data into the tables

@Karishma-Tiwari-MSFT
Copy link
Member

@anonymousReaper Thank you for sharing the document. I have updated the issue with the doc details.
We are currently investigating and will update you shortly.

@CarlRabeler
Copy link
Contributor

@anonymousReaper your question has nothing to do with this article. This said, I searched the internet and found this answer:

"You have to specify the Instance with SQL Express. It is installed by default into a named instance called Computername\SQLEXPRESS, or .\SQLEXPRESS or (local)\SQLEXPRESS, you probably have the point by now. So it makes alot of sense that when you do either of the following:

bcp eSpacePh1.dbo.UserProfile out UserProfile.txt -T -c -S localhost\sqlexpress
bcp eSpacePh1.dbo.UserProfile out UserProfile.txt -T -c -S mycomputername\sqlexpress"

I hope this helps.
Carl

@jimthereaper
Copy link
Author

jimthereaper commented Sep 12, 2018

@CarlRabeler got it. Thanks!

@xunaphi7895
Copy link

@anonymousReaper your question has nothing to do with this article. This said, I searched the internet and found this answer:

"You have to specify the Instance with SQL Express. It is installed by default into a named instance called Computername\SQLEXPRESS, or .\SQLEXPRESS or (local)\SQLEXPRESS, you probably have the point by now. So it makes alot of sense that when you do either of the following:

bcp eSpacePh1.dbo.UserProfile out UserProfile.txt -T -c -S localhost\sqlexpress
bcp eSpacePh1.dbo.UserProfile out UserProfile.txt -T -c -S mycomputername\sqlexpress"

I hope this helps.
Carl

Thanks so much!

@PRMerger8 PRMerger8 added the Pri2 label May 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants