Error during designing new DTS package

  • (This is about the first time I've tried to design one of these!)

    adding the 'execute sql task' properties -

    'exec getmailqueue' being the sql, a proc to create a temp table and populate it -

    I get 'invalid object name - '#temptable' when I try to parse.

    Why?

  • If you have multiple statements in the task, they're each separate. When you run the proc, the temp table exists, but it should go out of scope when the proc ends.

    Why not call getmailqueue from the proc itself?

  • (of course.... duh!)

    so obvious (blush)

    Yeah - just have to switch the proc around a little.

    thanks for pointing that out!

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply