SQL

Azure SQL Serverではtruncate的なことはできない?

https://social.msdn.microsoft.com/Forums/azure/en-US/ceeae474-fb19-4282-a56b-c0718f06e9ab/sql-azure-identity-reseed?forum=ssdsgetstarted http://dba.stackexchange.com/questions/10594/dbcc-checkident-doesnt-work-for-reseeding-tables http://w…

pythonからodbcでSQL Serverに接続

http://bluestick.jp/tech/index.php/archives/215

Windows Azure SQL Database 管理ポータルから接続文字列をコピーしてきて使う場合

Windows Azure SQL Database 管理ポータルから接続文字列をコピーしてきて使う場合は、SQL Server Native Client 11 の場合、ODBC 接続において Driver 指定を、{SQL Server Native Client 10.0} → {SQL Server Native Client 11.0} に書き換える必要あり ht…

ERROR IM002 Microsoft ODBC Driver Manager

ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified in SSRS odbcのエラー settings.pyで指定しているODBCの名前が違うことによるエラーだった。 あとSQL Server Expressをインストールしていない…

MULとは

MUL -> 重複可能な外部制約キーPRI -> 重複不可な外部制約キー 外部制約キー -> テーブルの指定したカラムに格納できる値を他のテーブルに格納されている値だけに限定するもの http://hrt0kmt.hatenablog.com/entry/2014/07/09/000000 http://www.dbonline.j…

テーブルを空にする

SQL

truncate table [table]; http://www.dbonline.jp/mysql/insert/index12.html

SQLコマンドでSQL文を見る

SQL

show create table [table]; http://stackoverflow.com/questions/5317889/sql-keys-mul-vs-pri-vs-uni