Untitled

mail@pastecode.io avatar
unknown
plain_text
25 days ago
882 B
2
Indexable
Never
rel 47

Can't Execute this statement:
IF EXISTS(SELECT 1 FROM sys.databases WHERE name = 'OASILOGS')
begin
   IF NOT EXISTS (SELECT * FROM OASILOGS.sys.objects WHERE object_id = OBJECT_ID(N'[OASILOGS].[dbo].[XPdfAns]') AND type in (N'U'))
   BEGIN
      CREATE TABLE [OASILOGS].[dbo].[XPdfAns](
	      [Id] [int] IDENTITY(1,1) NOT NULL,
	      [DbName] [varchar](50) NOT NULL,
	      [RcsId] [char](8) NOT NULL,
	      [TestoPdf] [varbinary](max) NOT NULL,
       CONSTRAINT [PK_XPdfAns] PRIMARY KEY CLUSTERED 
      (
	      [Id] ASC
      ) ON [PRIMARY]
      ) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
   END
end


Error Number :
	40002
Error Description :
37000: [Microsoft][ODBC SQL Server Driver][SQL Server]Database 'OASILOGS' does not exist.
RDO Errors        :
37000: [Microsoft][ODBC SQL Server Driver][SQL Server]Database 'OASILOGS' does not exist.
Leave a Comment