From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27343 invoked by alias); 30 Mar 2014 19:24:04 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 27310 invoked by uid 89); 30 Mar 2014 19:24:01 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=1.6 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-qa0-f68.google.com Received: from mail-qa0-f68.google.com (HELO mail-qa0-f68.google.com) (209.85.216.68) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Sun, 30 Mar 2014 19:23:59 +0000 Received: by mail-qa0-f68.google.com with SMTP id hw13so2115355qab.11 for ; Sun, 30 Mar 2014 12:23:57 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.224.115.142 with SMTP id i14mr23176174qaq.9.1396207437056; Sun, 30 Mar 2014 12:23:57 -0700 (PDT) Received: by 10.140.95.115 with HTTP; Sun, 30 Mar 2014 12:23:57 -0700 (PDT) Date: Mon, 31 Mar 2014 08:30:00 -0000 Message-ID: Subject: Re: SQL server utility not working when invoked(from a asp.net application) using cygwin From: "Afreen.." To: cygwin@cygwin.com Content-Type: text/plain; charset=ISO-8859-1 X-SW-Source: 2014-03/txt/msg00509.txt.bz2 Hi, Thanks for the response Chris.Really appreciate the help. Well,The return status for the sqlcmd command is 1. sqlcmd probably just does not get executed.The query is not executed nor is the output redirected to sql.log.It does not even give an error message if I pass an incorrect parameter. The same script (ie. Test.script here) & the sqlcmd command in it are executed correctly when directly invoked from the cygwin terminal. One more interesting thing here is that if I use the osql utility (It's a sql server utility similar to sqlcmd) instead of sqlcmd in the script,it works perfectly fine (even when the script is called from the asp.net application). Also, I'll upgrade to a more recent version of cygwin and check if it solves the issue. Thanks & Regards, Afreen T -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple