X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:date:message-id:subject:from:to :content-type; q=dns; s=default; b=fP4J2OPWm9OfNHG2sUcuxlVBhU9qP STwc5XG8QjOJ19sG64M07qs6xtk5PCKTfno/pC1yQoADpfCTphky7FgM19Mgni5p 8kzazWja8KkCb9OMs74IkG1lEe9GROikBpickvqiFd2bz3gZCo/L/DhfSK7wF0tn ZNMaoyqM7ry2ls= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:date:message-id:subject:from:to :content-type; s=default; bh=HqQlzypUyOUN9hgTGLZ16LQasgw=; b=qEr uJrCuZKKjzhZ2D7hGBWKncCz5Flz4pnOjuihA9Y+RFoMhnzgaostj81i9uFBMvjI gWXJp2xmbqQImDmUxD7iEkqExbZIcVDw8GgFGuaLu9pcDoEwBIJNSRBlDGDJlRrL +roNyogLoQ1OTVeBYl/M2kw4PSBIBezDLKJkKhV4= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com 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 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) Date: Mon, 31 Mar 2014 00:53:57 +0530 Message-ID: Subject: Re: SQL server utility not working when invoked(from a asp.net application) using cygwin From: "Afreen.." To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=ISO-8859-1 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