Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. IDispatch Error #3092 when I execute a stored proc that does an insert on a Sybase SQL Anywhere. Why can I find the meaning of such errors.

IDispatch Error #3092 when I execute a stored proc that does an insert on a Sybase SQL Anywhere. Why can I find the meaning of such errors.

Scheduled Pinned Locked Moved Database
databasehelp
2 Posts 1 Posters 20 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    I get an IDispatch error #3092 when I execute a stored proc that does a rather basic insert into a Sybase SQL Anywhere database. I have reviewed the stored proc more than a dozen times, but cannot find anything wrong with it. Where can I find the real meaning of such errors. Does anyone have an idea of what could be happening. I have posted the stored proc below. Error lookup does not give the correct result. Create Procedure PersonAdd ( @EntCode varchar(3), @Accd varchar(3), @FirstName varchar(40), @MiddleName varchar(40), @LastName varchar(40), @Suffix varchar(15), @Title varchar(25), @PrevName varchar(35), @Alias varchar(35), @SSN varchar(11), @BirthDate datetime, @Sex varchar(6), @IDTypeCode varchar(10), @IDNo varchar(15), @IDState varchar(15), @TaxID varchar(11), @EthnicCode varchar(10), @RaceCode varchar(10) ) AS INSERT INTO Person (EntCode, Accd, FirstName, MiddleName, LastName, Suffix, Title, PrevName, Alias, SSN, BirthDate, Sex, IDTypeCode, IDNo, IDState, TaxID, EthnicCode, RaceCode, DateCreated, UserCreated) VALUES (@EntCode, @Accd, @FirstName, @MiddleName, @LastName, @Suffix, @Title, @PrevName, @Alias, @SSN, @BirthDate, @Sex, @IDTypeCode, @IDNo, @IDState, @TaxID, @EthnicCode, @RaceCode, GetDate(), user_name()) DECLARE @PersonID INT SELECT @PersonID = @@IDENTITY RETURN (@PersonID) GO

    L 1 Reply Last reply
    0
    • L Lost User

      I get an IDispatch error #3092 when I execute a stored proc that does a rather basic insert into a Sybase SQL Anywhere database. I have reviewed the stored proc more than a dozen times, but cannot find anything wrong with it. Where can I find the real meaning of such errors. Does anyone have an idea of what could be happening. I have posted the stored proc below. Error lookup does not give the correct result. Create Procedure PersonAdd ( @EntCode varchar(3), @Accd varchar(3), @FirstName varchar(40), @MiddleName varchar(40), @LastName varchar(40), @Suffix varchar(15), @Title varchar(25), @PrevName varchar(35), @Alias varchar(35), @SSN varchar(11), @BirthDate datetime, @Sex varchar(6), @IDTypeCode varchar(10), @IDNo varchar(15), @IDState varchar(15), @TaxID varchar(11), @EthnicCode varchar(10), @RaceCode varchar(10) ) AS INSERT INTO Person (EntCode, Accd, FirstName, MiddleName, LastName, Suffix, Title, PrevName, Alias, SSN, BirthDate, Sex, IDTypeCode, IDNo, IDState, TaxID, EthnicCode, RaceCode, DateCreated, UserCreated) VALUES (@EntCode, @Accd, @FirstName, @MiddleName, @LastName, @Suffix, @Title, @PrevName, @Alias, @SSN, @BirthDate, @Sex, @IDTypeCode, @IDNo, @IDState, @TaxID, @EthnicCode, @RaceCode, GetDate(), user_name()) DECLARE @PersonID INT SELECT @PersonID = @@IDENTITY RETURN (@PersonID) GO

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Try executing this from SqlAdvantage to see what it returns. What is @@IDENTITY ? Is it an int or some other data type?

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups