SQLExecDirect SQL_ERROR SQL_STATE: 42S01 - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

ahinton
Posts: 7
Joined: Tue May 26, 2009 7:16 pm

SQLExecDirect SQL_ERROR SQL_STATE: 42S01

Getting this error message when trying to run a SQL script against a SQL database

SQLExecDirect SQL_ERROR SQL_STATE: 42S01

There is already an object named 'ENE_EVENT_TYPE' in the database

Here is the script I am running

CREATE TABLE dbo.ENE_EVENT_TYPE
(
ID_EVENT_TYPE smallint PRIMARY KEY IDENTITY(1,1) NOT NULL,
EVENT_DESCRIPTION VARCHAR(100),
LAST_RUN_TIME DATETIME,
EMAIL_FREQUENCY INT,
ISSERVICEBUSY_STATUS SMALLINT NOT NULL DEFAULT 99

);

This table does not exist in the database
I have refereshed multiple times.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: SQLExecDirect SQL_ERROR SQL_STATE: 42S01

Hi,

I'm not sure why you are encountering this behavior. Can you please send us the .AIP (project) file you are using to support at advancedinstaller dot com so we can investigate it?

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”