5
나는 pymssql을 사용하여 데이터베이스를 만들고이 오류를 얻으려고합니다.pymssql을 사용하여 데이터베이스를 만들려면 어떻게해야합니까?
cur.execute("CREATE DATABASE %s;" % self.getsql('dbname'), conn)
는
*** OperationalError: (226, 'CREATE DATABASE statement not allowed within multi-
statement transaction.DB-Lib error message 226, severity 16:\\nGeneral SQL Serve
r error: Check messages from the SQL Server\\n')
이 무엇을 의미합니까
을 제공 ??
'cur.execute ("데이터베이스 생성 % s"% (self.getsql ('dbname')), conn)'를 시도하고,'getsql' 요구. –
CREATE DATABASE 명령문 이전에 다른 명령문을 실행하고 있다면 명령을 실행하기 전에 현재 트랜잭션을'commit() '해야 할 수도 있습니다. – Amber