declare @sql varchar(8000)
select @sql = 'bcp netFrame..NET_PERSON out c:\bcp\sysobjects.txt -c -t, -T -S'+ servername
exec master..xp_cmdshell @sql</code>
{BR}
Verwenden eines anderen Feldbegrenzers (z.B ;):{br}
{BR}
<code sql>declare @sql varchar(8000)
select @sql = 'bcp netFrame..NET_PERSON out c:\bcp\sysobjects.txt -c –t; -T -S' +
servername
execmaster..xp_cmdshell@sql