Re: [pgadmin-support] Help for Migration

From: Alban Hertroys <haramrae(at)gmail(dot)com>
To: <Mamatha_Kagathi_Chan(at)DELL(dot)com>
Cc: <pgsql-general(at)postgresql(dot)org>
Subject: Re: [pgadmin-support] Help for Migration
Date: 2011-10-24 19:36:05
Message-ID: BCDD1183-3E3D-45A2-8B71-6337719B0CF8@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-support pgsql-general

On 24 Oct 2011, at 14:24, <Mamatha_Kagathi_Chan(at)DELL(dot)com> wrote:

> Hi ,
>
> I have migrated Sql Server 2005 database to PostgreSQL 9.0 . I was also successfully able to connect classic ASP to the migrated database. But when the page reaches a stage where it is accessing a procedure I get the following error.
>
> PostgreSQL Native Provider error '80040e14'
>
> ERROR: syntax error at or near "' 789500'" LINE 1: EXEC Visadetailinsert ' 789500','No','Select visa','','','Se... ^
>
> /postgresql/EmployeeDetails.asp, line 645

Is that a line in a plpgsql procedure? It looks like you're trying to call a function, but your syntax is entirely wrong.

You probably want to read up on: http://www.linuxtopia.org/online_books/database_guides/Practical_PostgreSQL_database/PostgreSQL_x20238_004.htm

Curiously enough the rather fine manual isn't very verbose on this subject. In the 9.2-devel docs there is even a section named "Calling functions", but it seems to focus on writing functions instead.

Alban Hertroys

--
The scale of a problem often equals the size of an ego.

In response to

Responses

Browse pgadmin-support by date

  From Date Subject
Next Message Guillaume Lelarge 2011-10-24 20:33:09 Re: SQL pane font
Previous Message Guillaume Lelarge 2011-10-24 17:06:36 Re: Query tool not open

Browse pgsql-general by date

  From Date Subject
Next Message Szymon Guz 2011-10-24 20:23:40 strange java query behaviour
Previous Message Allan Kamau 2011-10-24 19:23:28 Help with copy (loading TSV file into table as text)