Start here: http://code.google.com/p/pyodbc/You'll have to download and install pyodbc, make sure you get the version that matches the python version you have installed, most likely the version that installed with ArcGIS.###########import arcpy, pyodbccnxn = DRIVER={SQL Server};SERVER=cloak;DATABASE=test;UID=user;PWD=passwordcursor = cnxn.cursor()cursor.execute("{any legal SQL stmt you would execute in SSMS}")cnxn.commit()###########I use it to get the functionality out of ArcGIS and the speed of SQL.
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.