| <class 'pyodbc.ProgrammingError'> | Python 2.7.12: /usr/bin/python Thu Dec 11 07:33:15 2025 |
A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.
| /home/sandbox/public_html/cgi-bin/Cesium/Apps/Sandcastle/dhlab/CesiumSpaceV2.py in |
| 143 condition='' |
| 144 |
| 145 displayResults("templateCesiumV2.htm", db, project, condition ) |
| 146 |
| => 147 main() |
| main = <function main> |
| /home/sandbox/public_html/cgi-bin/Cesium/Apps/Sandcastle/dhlab/CesiumSpaceV2.py in main() |
| 143 condition='' |
| 144 |
| => 145 displayResults("templateCesiumV2.htm", db, project, condition ) |
| 146 |
| 147 main() |
| global displayResults = <function displayResults>, db = 'Class2020', project = 'tour', condition = "complex='tour2011-3'' or id like 'tour2011-3'%'" |
| /home/sandbox/public_html/cgi-bin/Cesium/Apps/Sandcastle/dhlab/CesiumSpaceV2.py in displayResults(template='templateCesiumV2.htm', db='Class2020', project='tour', condition="complex='tour2011-3'' or id like 'tour2011-3'%'") |
| 116 if not line: break |
| 117 if( '#YourData' == line.strip()): |
| => 118 displayData( db, project, condition ) |
| 119 else: |
| 120 print line |
| global displayData = <function displayData>, db = 'Class2020', project = 'tour', condition = "complex='tour2011-3'' or id like 'tour2011-3'%'" |
| /home/sandbox/public_html/cgi-bin/Cesium/Apps/Sandcastle/dhlab/CesiumSpaceV2.py in displayData(database='Class2020', project='tour', condition="complex='tour2011-3'' or id like 'tour2011-3'%'") |
| 89 command = comstring |
| 90 |
| => 91 cur.execute(unicode(command, "utf-8")) |
| 92 # cur.execute( command ) #when you do not use Hangeul |
| 93 |
| cur = <pyodbc.Cursor object>, cur.execute = <built-in method execute of pyodbc.Cursor object>, builtin unicode = <type 'unicode'>, command = "select id, complex, site, label, latitude, longi...e complex='tour2011-3'' or id like 'tour2011-3'%'" |
<class 'pyodbc.ProgrammingError'>: ('42000', u"[42000] [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]'tour2011' \uadfc\ucc98\uc758 \uad6c\ubb38\uc774 \uc798\ubabb\ub418\uc5c8\uc2b5\ub2c8\ub2e4. (102) (SQLExecDirectW)")
args =
('42000', u"[42000] [Microsoft][ODBC Driver 17 for SQL Serve...tour2011' \uadfc\ucc98\uc758 \uad6c\ubb38\uc774 \uc798\ubabb\ub418\uc5c8\uc2b5\ub2c8\ub2e4. (102) (SQLExecDirectW)")
message =
''