Export/Import Data using BCP - SQL Server on Linux

  • Comments posted to this topic are about the item Export/Import Data using BCP - SQL Server on Linux

    Carlos Robles  

    DBA Mastery
    Data Platform MVP | MCSE, MCSA, MCTS, MCP | ITIL v3

    w: www.dbamastery.com

    e: crobles@dbamastery.com

     

  • : before Arguments:"select * from DBNmae.dbo.InsertTemp queryout /home/Copient/Import/filename.csv - S server - U s

    May 06 13:54:50 pesueha-vm1 testapp-service[24599]: info: testapp.Worker[0]

    May 06 13:54:50 pesueha-vm1 testapp-service[24599]: Exception at processCMDLinux StackSt: at System.Diagnostics.Process.ForkAndExecProcess(String filename, String[] argv, String[] envp, S

    May 06 13:54:50 pesueha-vm1 testapp-service[24599]: at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo)

    May 06 13:54:50 pesueha-vm1 testapp-service[24599]: at System.Diagnostics.Process.Start()

    May 06 13:54:50 pesueha-vm1 testapp-service[24599]: at testapp.Worker.processCMDLinux(String fileName, String arguments, ILogger`1 _logger)

    May 06 13:54:50 pesueha-vm1 testapp-service[24599]: info: testapp.Worker[0]

    May 06 13:54:50 pesueha-vm1 testapp-service[24599]: Exception at processCMDLinux innerEx:

    May 06 13:54:50 pesueha-vm1 testapp-service[24599]: info: testapp.Worker[0]

    May 06 13:54:50 pesueha-vm1 testapp-service[24599]: Exception at processCMDLinux Err at:System.Diagnostics.Process And Message:No such file or directory

     System.Diagnostics.Process proc = new System.Diagnostics.Process();
    proc.StartInfo.FileName = fileName;
    proc.StartInfo.Arguments = arguments;
    _logger.LogInformation("before start Proat cessCMDLinux():"+ proc.StartInfo.FileName);
    _logger.LogInformation("before Arguments:" + proc.StartInfo.Arguments);
    proc.Start();
    _logger.LogInformation("after Start processCMDLinux():");
    string result = proc.StandardOutput.ReadToEnd();
    _logger.LogInformation("End Start:" + result);
    proc.WaitForExit();
  •  System.Diagnostics.Process proc = new System.Diagnostics.Process();
    proc.StartInfo.FileName = fileName;
    proc.StartInfo.Arguments = arguments;
    _logger.LogInformation("before start Proat cessCMDLinux():"+ proc.StartInfo.FileName);
    _logger.LogInformation("before Arguments:" + proc.StartInfo.Arguments);
    proc.Start();
    _logger.LogInformation("after Start processCMDLinux():");
    string result = proc.StandardOutput.ReadToEnd();
    _logger.LogInformation("End Start:" + result);
    proc.WaitForExit();

    at System.Diagnostics.Process.ForkAndExecProcess(String filename, String[] argv, String[] envp, S

    at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo)

    at System.Diagnostics.Process.Start()

    Err at:System.Diagnostics.Process And Message:No such file or directory

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply