Code Monkey home page Code Monkey logo

Comments (4)

benrr101 avatar benrr101 commented on July 30, 2024

Hi @mrg3d, thanks for your report! Can you provide the schema of the table you're trying to edit and which columns you're trying to edit? The editor is supposed to disallow editing identity columns, but it's possible there are scenarios we're not addressing correctly.

This issue may be addressed with microsoft/sqltoolsservice#533, but I'll need to verify this more carefully with your scenario.

from azuredatastudio.

mrg3d avatar mrg3d commented on July 30, 2024

Hi @benrr101,
At the moment I haven't the exact schema... but I got the error on more than one table.
Each one with an identity column specified. On monday, once at work, I can give you one.
But I'm pretty sure you can try creating one and replicate the case.
For example try with

CREATE TABLE dbo.TestIdentity (
IdentityColumn INT IDENTITY(1,1) PRIMARY KEY,
ValueColumn1 VARCHAR(100) NULL,
ValueColumn2 VARCHAR(100) NULL,
)

This is a schema very very similar to the one I was working on.
Well.. trying enter data manually, for exemple in col "ValueColumn1" (not in the identity col... obviously :) ) I always received the error.

from azuredatastudio.

mrg3d avatar mrg3d commented on July 30, 2024

Hi @benrr101,
This is the exact schema of my original table:
CREATE TABLE dbo.MarkupRules (
RowId INT IDENTITY(1,1) PRIMARY KEY,
CompanyId INT NULL,
SupplierId INT NULL,
CustomerId INT NULL,
FromDate DATE NULL,
ToDate DATE NULL,
Percentage DECIMAL (5,2) NOT NULL
)

.. and this is a partial screenshot of the error I get trying to confirm my row
image
as you can see I tried entering values in columns CustomerId and Percentage (mandatory)..

Hope this help!!

from azuredatastudio.

wallym avatar wallym commented on July 30, 2024

I just tried this from my sqlops on mac. The december update resolved my issue.

from azuredatastudio.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.