Object reference not set to an instance of an object (AZURE SQL DB)

Rudolph Juillan Relucio 46 Reputation points
2022-04-26T06:30:07.95+00:00

Good day!

I'd like to know how else can I access the Design tab in Azure SQL DB? Or how can I assign a column as a Primary Key? The column belongs to a migrated data from MS Access btw. Thank you!

Azure SQL Database
{count} votes

Accepted answer
  1. Anurag Sharma 17,571 Reputation points
    2022-04-26T08:14:56.34+00:00

    Hi @Rudolph Juillan Relucio , welcome to Microsoft Q&A forum.

    You can add the primary key to existing table using below script:

    ALTER TABLE <table name>ADD PRIMARY KEY (<column name>);  
    

    You can run this script from SSMS, Azure Data Studio or directly in the Azure Portal.

    Please let us know if you need any more assistance on this and we will be happy to assist you.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful