SqlAlchemy and mssqlserver

Stefano stefano at vulcanos.it
Tue Apr 21 18:22:15 CEST 2009


Using sqlalchemy with pyodbc and mssqlserver
Why sa always generate identity ?

many thanks here the sample

tb = Table('prova',meta,Column('chiave', Integer, primary_key=True))
tb.create()

CREATE TABLE prova (
 chiave INTEGER NOT NULL IDENTITY(1,1), 
 PRIMARY KEY (chiave)
)


Stefano



More information about the Python-list mailing list