select * from PgSQLErrorCode;
If there is no table present in the database (we can safely say that there is no such entry in this case), execute the following:
USE [DB_NAME]
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[PgSQLErrorCode](
[ERRORCODE] [nvarchar](100) NOT NULL,
[ADVERRORCODE] [int] NOT NULL,
[ERRORMESSAGE] [nvarchar](250) NULL,
CONSTRAINT [PgSQLErrorCode_PK] PRIMARY KEY CLUSTERED
(
[ERRORCODE] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[PgSQLErrorCode] WITH CHECK ADD CONSTRAINT [PgSQLErrorCode_FK] FOREIGN KEY([ADVERRORCODE])
REFERENCES [dbo].[AdventNetErrorCode] ([ERRORCODE])
GO
ALTER TABLE [dbo].[PgSQLErrorCode] CHECK CONSTRAINT [PgSQLErrorCode_FK]
GO