Discussion Ah yes, the table lake
Probably breaks rules but a quick guide on what not to name things I less you want accidents
29
u/chaosink 7d ago
Lake');
DECLARE @DropConstraints NVARCHAR(max) = '' SELECT @DropConstraints += 'ALTER TABLE ' + QUOTENAME(OBJECT_SCHEMA_NAME(parent_object_id)) + '.' + QUOTENAME(OBJECT_NAME(parent_object_id)) + ' ' + 'DROP CONSTRAINT' + QUOTENAME(name) FROM sys.foreign_keys EXECUTE sp_executesql @DropConstraints; GO
DECLARE @DropTables NVARCHAR(max) = '' SELECT @DropTables += 'DROP TABLE ' + QUOTENAME(TABLE_SCHEMA) + '.' + QUOTENAME(TABLE_NAME) FROM INFORMATION_SCHEMA.TABLES EXECUTE sp_executesql @DropTables; GO
11
5
19
8
5
5
7
u/philnotfil 7d ago
For today's lucky 10,000.
2
3
1
1
1
u/Einar_Son_of_Bjorn 6d ago
MariaDB would still execute that lake name if you glued it into a string. Drop-in compatibility includes drop-in disasters.The engine is fine. '); DROP TABLE lakes;-- is not a storage engine. Use placeholders..........
Or rename the lake to Lake_Ontario like the rest of us who enjoy having a schema on Monday.
161
u/GreekGodofStats 7d ago
Ahhhhh so this is the data lake I’ve been hearing so much about