We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
162.4.92.3
both
Microsoft SQL Server 2019 (RTM-CU27-GDR) (KB5040948) - 15.0.4382.1 (X64) Jul 1 2024 20:03:23 Copyright (C) 2019 Microsoft Corporation Express Edition (64-bit) on Windows 10 Enterprise 10.0 <X64> (Build 22631: ) (Hypervisor)
Steps to Reproduce:
CREATE TABLE [dbo].[MyTable]( NormalColumn INT NOT NULL, ComputedColumn AS NormalColumn PERSISTED, ) ON [PRIMARY]
ALTER TABLE [dbo].[MyTable] DROP COLUMN [ComputedColumn]; ALTER TABLE [dbo].[MyTable] ADD [ComputedColumn] AS NormalColumn PERSISTED;
Similar examples: This does not result in a column drop and create
CREATE TABLE [dbo].[MyTable]( NormalColumn INT NULL, ComputedColumn AS NormalColumn PERSISTED, ) ON [PRIMARY]
Neither does this:
CREATE TABLE [dbo].[MyTable]( NormalColumn INT NOT NULL, ComputedColumn AS NormalColumn, ) ON [PRIMARY]
And neither does this
CREATE TABLE [dbo].[MyTable]( NormalColumn INT NOT NULL, ComputedColumn AS NormalColumn PERSISTED NOT NULL, ) ON [PRIMARY]
It seems to be a combination of the NOT NULL and PERSISTED
NOT NULL
PERSISTED
Did this occur in prior versions? If not - which version(s) did it work in?
(DacFx/SqlPackage/SSMS/Azure Data Studio)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
162.4.92.3
both
Microsoft SQL Server 2019 (RTM-CU27-GDR) (KB5040948) - 15.0.4382.1 (X64) Jul 1 2024 20:03:23 Copyright (C) 2019 Microsoft Corporation Express Edition (64-bit) on Windows 10 Enterprise 10.0 <X64> (Build 22631: ) (Hypervisor)
Steps to Reproduce:
Similar examples:
This does not result in a column drop and create
Neither does this:
And neither does this
It seems to be a combination of the
NOT NULL
andPERSISTED
Did this occur in prior versions? If not - which version(s) did it work in?
(DacFx/SqlPackage/SSMS/Azure Data Studio)
The text was updated successfully, but these errors were encountered: