BCP from SQL Azure
-
venerdì 19 marzo 2010 18:00
Hi All,
I am trying to BCP out from SQL Azure and found that BCP command doesnt take SQL Database name as a parameter and SQL Azure doesn;t like my Database.Schema.Table notations. Any ways to get through.
Thanks, Loonysan | http://mystutter.blogspot.com
Tutte le risposte
-
sabato 20 marzo 2010 20:25
Hello
BCP Out should work fine.
Here's a sample:
bcp database.dbo.Table out C:\Temp\testfile.dat -S server.windows.database.net -U admin@server -P pass@word
- Proposto come risposta ahs101Microsoft Employee martedì 23 marzo 2010 18:58
- Contrassegnato come risposta Allen Chen - MSFTMicrosoft Employee, Moderator venerdì 26 marzo 2010 09:02
-
mercoledì 24 marzo 2010 02:01FYI - QueryOut option with SQL Azure doesn't work - Might have to wait for the next release !!!
Thanks, Loonysan | http://mystutter.blogspot.com -
giovedì 29 aprile 2010 21:27
Any guess on why this error is produced while trying to BCP out from SQL Azure?
SQLState = S1000, NativeError = 0
Error = [Microsoft][SQL Server Native Client 10.0]Unable to open BCP host data-f
ile
mysorian -
giovedì 29 aprile 2010 21:36
Did you get this to work?
mysorian -
sabato 1 maggio 2010 01:03
You need to use
tcp:serrvername.database.windows.net
and
username like in username@servername
Dinakar's command will not work
mysorian -
martedì 4 maggio 2010 18:24
Hi Jayaram
The sample code I posted should work. Are you seeing any errors?
-
mercoledì 5 maggio 2010 12:30
As I said earlier you need to use tcp: ahead of server.database.windows.net otherwise in Windows 7 you would get a tcp/ip related error. SQL Azure works thru' tcp.
And the username should be usrname@servername
Otherwise your code will work.
You may need to add the option -w if you are intereseted in getting the output in recognizable ascii.
mysorian -
mercoledì 5 maggio 2010 21:53
Hi Jayaram
Your username has to be in the format login@server (as I mentioned in my original reply) however the server name does not have to be prefixed with "tcp:".
-
giovedì 6 maggio 2010 18:07Thank you
Need Help -
mercoledì 23 giugno 2010 14:27
Hi Jayaram
Your username has to be in the format login@server (as I mentioned in my original reply) however the server name does not have to be prefixed with "tcp:".
Many thanks. It does work.

