Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

bcp select query

Oracle_MonkeyMay 16 2013 — edited May 16 2013
bcp "select a,b ,c from database.schema.SomeTable" queryout  
"c:\MyData.csv"  -c -t"," -r"\n" -S ServerName -T
when i am executing the above code i am getting an error
Error = [Microsoft][SQL Server Native Client 10.0]Named Pipes Provider: Could no
t open a connection to SQL Server [53].
SQLState = 08001, NativeError = 53
Error = [Microsoft][SQL Server Native Client 10.0]A network-related or instance-
specific error has occurred while establishing a connection to SQL Server. Serve
r is not found or not accessible. Check if instance name is correct and if SQL S
erver is configured to allow remote connections. For more information see SQL Se
rver Books Online.
SQLState = S1T00, NativeError = 0
Error = [Microsoft][SQL Server Native Client 10.0]Login timeout expired
How to solve the problem?

How can i execute oracle query from cmd and use it in bcp and generate .CSV file

Edited by: Oracle_Monkey on May 16, 2013 2:28 AM
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 13 2013
Added on May 16 2013
7 comments
1,087 views