Re: BCP/ISQL Trusted connection? [NC]

Frediano Ziglio <[email protected]>
Newsgroups gmane.comp.db.tds.freetds
Message-ID <[email protected]>
2009/10/27 Cedric ROUVRAIS <[email protected]>:
> Just a FYI, when I try the following:
>
> bash-3.2$ bcp db..table out table.dat -S MSNYCACRT01 -U AME\\CRouvrai -P ''
> -c -t"|"
> Msg 18452, Level 14, State 1
> Server 'MPKASSQL02DV\MSNYCCRSD02', Line 1
>        Login failed. The login is from an untrusted domain and cannot be
> used with Windows authentication.
> Msg 18452, Level 14
> General SQL Server error: Check messages from the SQL Server
>
> Msg 20002, Level 9
> Adaptive Server connection failed
>
> Can't connect to server "MSNYCACRT01".
>
> Thanks,
>
> Cedric
>

If "AME" is your domain, "CRouvrai" is your username and "" is your
password should work. Keep mind that windows use the account stored
when you login. To get similar behaviour under Unix you have to
configure kerberos support with pam saving account in your store. The
command in this case will be

bash-3.2$ bcp db..table out table.dat -S MSNYCACRT01 -U '' -P ''

freddy77
_______________________________________________
FreeTDS mailing list
[email protected]
http://lists.ibiblio.org/mailman/listinfo/freetds
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.