Re: SqlAlchemy and mssqlserver

2009-04-21 Thread Mike Driscoll
On Apr 21, 11:22 am, "Stefano" wrote: > 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 IDENTI

SqlAlchemy and mssqlserver

2009-04-21 Thread Stefano
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 -- http://ma