Ive found a problem with Coldfusion and SQL Server 2005
I utilised a .sql script to create tables
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[CLSFD_AdBlocks]') AND type in (N'U'))
BEGIN
CREATE TABLE [dbo].[CLSFD_AdBlocks](
[BlockID] [bigint] IDENTITY(1,1) NOT NULL,
[MemberID_abs] [bigint] NULL,
[SenderEmail_abs] [nvarchar](255) NULL,
[SenderIP_abs] [nvarchar](20) NULL,
CONSTRAINT [PK_CLSFD_AdBlocks] PRIMARY KEY CLUSTERED
(
[BlockID] ASC
)WITH (IGNORE_DUP_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
END
GO
This will work fine. However, if you then drop all the tables and run the script again, coldfusion will no longer connect. You get the following error
[Macromedia][SQLServer JDBC Driver]A problem occurred when attempting to contact the server (Server returned: Connection reset). Please ensure that the server parameters passed to the driver are correct and that the server is running. Also ensure that the maximum number of connections have not been exceeded for this server.
Anyone found a workaround for this?
I utilised a .sql script to create tables
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[CLSFD_AdBlocks]') AND type in (N'U'))
BEGIN
CREATE TABLE [dbo].[CLSFD_AdBlocks](
[BlockID] [bigint] IDENTITY(1,1) NOT NULL,
[MemberID_abs] [bigint] NULL,
[SenderEmail_abs] [nvarchar](255) NULL,
[SenderIP_abs] [nvarchar](20) NULL,
CONSTRAINT [PK_CLSFD_AdBlocks] PRIMARY KEY CLUSTERED
(
[BlockID] ASC
)WITH (IGNORE_DUP_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
END
GO
This will work fine. However, if you then drop all the tables and run the script again, coldfusion will no longer connect. You get the following error
[Macromedia][SQLServer JDBC Driver]A problem occurred when attempting to contact the server (Server returned: Connection reset). Please ensure that the server parameters passed to the driver are correct and that the server is running. Also ensure that the maximum number of connections have not been exceeded for this server.
Anyone found a workaround for this?