Viewing 15 posts - 2,056 through 2,070 (of 7,608 total)
The big disadvantage I see for dynamic-only code is that you can't analyze them at all, whereas with views you can.
For example, "How many Configs use 'Integer3'?" or "Do we...
December 12, 2020 at 3:43 pm
Has to be calculated in runtime so i cant just place them into a table and use identity column
Not following you there. Why can't you look up the "meta-key" from...
December 12, 2020 at 3:35 pm
The ORDER BY is useless (rather than "absolutely essential"). ORDER BY doesn't control the order of physical INSERTs into a table, only the assignment of identity values. I've...
December 12, 2020 at 3:27 pm
Actually I intended by code to be run anytime the Config for a given AttributeType was modified. After the initial build for every AttributeType in Config, I expected it typically...
December 12, 2020 at 6:09 am
@pamkagel ,Do your insert in the following form...
INSERT INTO dbo.yourtablename WITH (TABLOCK)
(full column list here)
SELECT full...
December 12, 2020 at 5:37 am
Btw, how then do you exec the code the function created? Wouldn't you some type of loop / cursor to do that anyway?
December 11, 2020 at 11:59 pm
I admit that I prefer using a cursor here to make it easier to adjust and customize the code. As the OP stated, there will be special requirements for some...
December 11, 2020 at 11:25 pm
The standard pattern uses 0 as the base, not 1 or -1 or some other "cute" trick.
No sir... There are a couple of "standards". The "standard"...
December 11, 2020 at 10:59 pm
Are you terminating the preceding statement with a semicolon?
You can start statements that begin with "WITH" with a semicolon:
;WITH ret AS(
Now, there's an interview question...
December 11, 2020 at 10:56 pm
The ORDER referred to is when using BULK INSERT, for example loading a physical file into a table.
In those cases, adding "WITH ( ORDER(clus_key1, clus_key2) )" can allow SQL to...
December 11, 2020 at 10:34 pm
(I originally used the wrong quote with my comments here, so I've repeated them below but with the correct quote first.)
December 11, 2020 at 10:28 pm
A lot of places do tran log backups every 15 minutes.
December 11, 2020 at 5:55 pm
No. The human brain is designed to recognize patterns. Sticking with a familiar patterns drastically speeds up...
December 11, 2020 at 5:28 pm
1 min is just way too often. Especially for only 1000 rows per day. That's a miniscule load for SQL Server.
December 11, 2020 at 5:05 pm
No. The human brain is designed to recognize patterns. Sticking with a familiar patterns drastically speeds up recognition of...
December 11, 2020 at 4:11 pm
Viewing 15 posts - 2,056 through 2,070 (of 7,608 total)