all groups > sql server connect > april 2005 >
You're in the

sql server connect

group:

Connect to MSDE by CMD


RE: Connect to MSDE by CMD Ash
4/21/2005 11:56:01 AM
sql server connect: Use BCP.EXE

http://www.microsoft.com/technet/prodtechnol/sql/2000/books/c07ppcsq.mspx#EGAA


[quoted text, click to view]
RE: Connect to MSDE by CMD Ash
4/21/2005 11:57:02 AM
use bcp.exe
http://www.microsoft.com/technet/prodtechnol/sql/2000/books/c07ppcsq.mspx#EGAA

[quoted text, click to view]
RE: Connect to MSDE by CMD Hari Prasad
4/21/2005 12:34:02 PM
Hi,

Execute the below command from command prompt

BCP mydb.dbo.tab1 OUT c:\table.txt -c -SServername -Usa -Ppassword

You can also load the data into table using "BCP IN" command.

BCP mydb.dbo.tab2 IN c:\table.txt -c -SServername -Usa -Ppassword

Replace a Database name, Table name, server name , password with actuals.

Thanks
Hari

[quoted text, click to view]
Re: Connect to MSDE by CMD Ash
4/21/2005 1:07:03 PM
I personally like to use a query to identify and know the sequence of fields
you are retrieving so try:

bcp "SELECT field1,field2..etc FROM Table" queryout export.txt -c -t,
-S<ServerName\INSTANCE> -Usa -P*****

Make sure you include server name and if you are connecting to a specific
instance
-Ash

[quoted text, click to view]
Connect to MSDE by CMD Jan
4/21/2005 8:48:49 PM
Hello,

is ther a way to connect to the command line for MSDE. I want to export data
from the MSDE database with a command line script!

How can I accomplish that???

Thanx,

M.J.

Re: Connect to MSDE by CMD Jan
4/21/2005 9:44:50 PM
Hello,
When using :
bcp db01.dbo.messages out export.txt -c -t, -Usa -P ****

I receive an error :
SQLState = S0002, NaviveError = 208
Error = [Microsoft][ODBC SQL Server Driver][SQL Server]Invalid object name
'db01'.

MJ
"Hari Prasad" <HariPrasad@discussions.microsoft.com> schreef in bericht
news:53CF5ED7-9278-4EAB-A726-36B02061B508@microsoft.com...
[quoted text, click to view]

Re: Connect to MSDE by CMD Jan
4/21/2005 9:57:36 PM
Thank you all it works!!

"Jan" <jan@msnews.com> schreef in bericht
news:ulK%23QqqRFHA.1564@TK2MSFTNGP09.phx.gbl...
[quoted text, click to view]

AddThis Social Bookmark Button