Viewing 15 posts - 8,761 through 8,775 (of 59,102 total)
Did you know that a table must have a key by definition? It is not an option!
Actually, it IS an option. HEAPs work just fine for things like Audit...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 31, 2019 at 2:51 am
>> I want to have a sum of the item count reset to 0 when the sum >= 6. <<
Did you know that a table must have a key...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 31, 2019 at 2:32 am
my guess is that your table should look something like this:
CREATE TABLE Personnel
(employee_id CHAR(5) NOT NULL PRIMARY KEY,
employee_type CHAR(1) NOT NULL
CHECK (employee_type IN (???),,
employee_name VARCHAR(30) NOT NULL);...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 31, 2019 at 2:24 am
I hope you understand that the old Sybase IDENTITY table property (property -- it is not a column) can never by definition be a valid key. It is a...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 31, 2019 at 2:06 am
Microsoft actually does make a distinction between "System Base Tables" and "System Tables". Please see the articles at the following links for more information...
There are also "System Views"...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 31, 2019 at 1:56 am
IMHO, the closest thing to a CROSS APPLY is a "Correlated Sub-Query" with an implicit join, which can return more than one row per input row if you're...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 30, 2019 at 1:29 pm
It would appear that the OP has flown the coop instead of answering the question I posed.
--Jeff Moden
Change is inevitable... Change for the better is not.
August 30, 2019 at 4:19 am
IMHO, the closest thing to a CROSS APPLY is a "Correlated Sub-Query" with an implicit join, which can return more than one row per input row if you're not careful...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 30, 2019 at 4:14 am
When job hunting, I'm point blank with potential employers or recruiters about what my current salary is. The way I see it, if either party can't match the expectations...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 29, 2019 at 1:44 pm
There are awesome people on this site. There are also some not so awesome people on this site, and heck maybe I'm not one of the awesome people on...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 29, 2019 at 12:59 pm
It will vary depending on what the CU is and does. If the documentation for the CU doesn't contain that information, then there's no way to predetermine it.
--Jeff Moden
Change is inevitable... Change for the better is not.
August 29, 2019 at 12:40 pm
My first recommendation would be to stop using such homegrown methods. Temporal tables work a fantastic treat and the audit table they leave behind is pretty much immutable with virtually...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 29, 2019 at 12:01 pm
Yes, but I wouldn't. I'd do the migration between the servers.
--Jeff Moden
Change is inevitable... Change for the better is not.
August 29, 2019 at 11:51 am
Ahhh... I've got to disagree a bit. Instead of changing to comparability level, SQL Server 2017 does have the ability to use the old cardinality estimator at at...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 29, 2019 at 11:46 am
... and read the following to answer most of your other questions...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 29, 2019 at 2:19 am
Viewing 15 posts - 8,761 through 8,775 (of 59,102 total)