Greetings, I am trying to bcp in data into a table from inside a perl script. Though the data gets inserted into the table but still I am getting following error :
sh: Starting: execute permission denied sh: 8: execute permission denied sh: syntax error at line 4: `(' unexpected sh: Starting: execute permission denied sh: 8: execute permission denied sh: syntax error at line 4: `(' unexpected Code looks like : sub bcp_data{ print "bcp $dest_table in $file_out -c -t '|' -U $source_username -P $source_passwd -S $source_server -e $log \n"; my $returncode = `bcp $dest_table in $file_out -c -t "|" -U $source_username -P $source_passwd -S $source_server -e $log`; # backticks system "$returncode"; exec "$returncode"; } TIA. Regards, Rajpreet -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/