PHISSUG

Home of Filipino Sql Server Enthusiasts
Welcome to PHISSUG Sign in | Join | Help
in Search

Associated statement is not prepared

Last post 06-27-2007, 4:19 AM by aeidstz. 5 replies.
Sort Posts: Previous Next
  •  06-26-2007, 9:06 PM 1467

    Associated statement is not prepared

    Have this error and i have not encounter this before;

    JOB po ito, and it running sya for almost a year now, just today i have this error.

    Invalid object name 'ZodiacSubscribers'. [SQLSTATE 42S02] (Error 208)  Associated statement is not prepared [SQLSTATE HY007] (Error 0)  Invalid object name 'ZodiacSubscribers'. [SQLSTATE 42S02] (Error 208).  The step failed.

    i executed the sp in query analyzer and it worked well.

    any feedback? soonest. thanks in advance

  •  06-26-2007, 9:47 PM 1468 in reply to 1467

    Re: Associated statement is not prepared

    hmm..

    what was the last change made on the db server? check if the ZodiacSubscriber still exists.

    what type of object is the ZodiacSubscribers? table? view? sp?

    does this error occurs only when executed from your application?

  •  06-26-2007, 10:08 PM 1469 in reply to 1468

    Re: Associated statement is not prepared

    no updates or changes made to the databse recently that i know. only daily restarts that are scheduled at 4 am. the error occured yesterday around 7 pm. since the jo is reccuring, the error message are same up to now. the object is a table and yep, it exists. no applicaiton attached to this, i populate one table and the stored procedure will run every 5 mins to get all data and update changes to different tables like -- ZodiacSubscribers.

    any idea what might caused this?

    thanks.

  •  06-26-2007, 10:50 PM 1470 in reply to 1469

    Re: Associated statement is not prepared

    under what user account is the agent running? and under what account is the sp that is being executed by the job? you might want to check on that as well..

    just make sure that the user account of the agent has execute permision on the sp and on the other objects that the sp is dependent of.
  •  06-26-2007, 11:23 PM 1471 in reply to 1470

    Re: Associated statement is not prepared

    the job account is under administrator and the sp is under user with permission to add and write data as well as execute. how come it worked before and failed now.

    im seing the possibility that the table Zodiac has different owner than that is declared in the sp - i mean they call it aaa.Zodiac when it should be bbb.Zodiac. I'll double check all dependencies on sp and tables.

    Im not in the office now,  i'll try it later nalang. heheh. thanks.

    if you find something else, please add it here. i will inform you what's the result also.

    thanks a lot.

  •  06-27-2007, 4:19 AM 1472 in reply to 1471

    Re: Associated statement is not prepared

    problem solved. i don't what did it. it might be the change on sp - table ownership dependencies. or probably, i already capture the number to unsubscribe from zodiac while running it manually. unfortunately, i cannot recreate the problem to test which solved it. thanks man.

View as RSS news feed in XML
Powered by Community Server (Personal Edition), by Telligent Systems