Posted my problem in another forum (GP), and no luck. Try here.
Python 2.7
ArcGIS 10.1 (sp1)
ArcSDE 10.1 (sp1)
SQL Server 2008 R2 Standard (sp2)
Windows Server 2008 R2 Standard (sp1)
Run a batch file, which calls a python script, as SQL Server scheduled job. If the python script includes "import arcpy" statement, the script will fail without leaving any error message. The script works fine without the "import arcpy" statement. Tried same thing as a system scheduled task, the results are same.
While running the batch file from command line, it works fine with or without the "import arcpy" statement.
Anyone ever experienced same thing, and have a clue?
Thanks in advanced!