Welcome to dbForumz.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Embedded SQL

 
Goto page Previous  1, 2
   Database Forums (Home) -> Ingres RSS
Next:  Building of indexes  
Author Message
John Dennis

External


Since: Jul 25, 2006
Posts: 14



(Msg. 16) Posted: Wed Mar 21, 2007 10:23 pm
Post subject: Re: Embedded SQL [Login to view extended thread Info.]
Archived from groups: comp>databases>ingres (more info?)

It installs the Ingres database server components, but most likely not
the application development copmponents. That's not part of the deal
to bundle the DBMS in with Unicenter.

John


On Mar 22, 2:34 pm, wrote:
> Hi,
> I've installed Unicenter Service Plus Knowledge Tool on my machine.
> This automatically installs the Ingres database.
> Mohan
>
> On Mar 22, 5:23 am, "John Dennis" wrote:
>
> > What "tool" are you installing which also installs Ingres? Perhaps the
> > provider of that tool does not deliver the application development
> > environment with their embedded Ingres.
>
> > John

 >> Stay informed about: Embedded SQL 
Back to top
Login to vote
kodaliece

External


Since: Mar 15, 2007
Posts: 23



(Msg. 17) Posted: Wed Mar 21, 2007 10:40 pm
Post subject: Re: Embedded SQL [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

If it is the case then can't I even connect to the database from a
java program(through JDBC driver)?
Mohan


On Mar 22, 10:23 am, "John Dennis" wrote:
> It installs the Ingres database server components, but most likely not
> the application development copmponents. That's not part of the deal
> to bundle the DBMS in with Unicenter.
>
> John
>
> On Mar 22, 2:34 pm, wrote:
>
>
>
> > Hi,
> > I've installed Unicenter Service Plus Knowledge Tool on my machine.
> > This automatically installs the Ingres database.
> > Mohan
>
> > On Mar 22, 5:23 am, "John Dennis" wrote:
>
> > > What "tool" are you installing which also installs Ingres? Perhaps the
> > > provider of that tool does not deliver the application development
> > > environment with their embedded Ingres.
>
> > > John- Hide quoted text -
>
> - Show quoted text -

 >> Stay informed about: Embedded SQL 
Back to top
Login to vote
kodaliece

External


Since: Mar 15, 2007
Posts: 23



(Msg. 18) Posted: Thu Mar 22, 2007 1:21 am
Post subject: Re: Embedded SQL [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi,
I got esqlc.exe and esqlcc.exe files and copied them to C:\IngresII
\ingres\bin folder. Now the commands are working. But the error is
with program. Below is the program I've written:

#include <stdio.h>

void main() {

EXEC SQL INCLUDE SQLCA;

EXEC SQL WHENEVER SQLERROR STOP;

EXEC SQL CONNECT causp;

EXEC SQL DELETE FROM skeletons WHERE id = 40;

EXEC SQL DISCONNECT;
}

If I issue the command esqlc filename.sc, I'am getting the following
error:
ESQL TestKT.sc:
%% Error in file TestKT.sc, Line 14:
E_EQ0205 End of file found in middle of line.
The current line will be ignored by the preprocessor.

Can any one suggest what modifications need to be done in the program?

Thanks in advance
Mohan
 >> Stay informed about: Embedded SQL 
Back to top
Login to vote
John Dennis

External


Since: Jul 25, 2006
Posts: 14



(Msg. 19) Posted: Thu Mar 22, 2007 3:53 am
Post subject: Re: Embedded SQL [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

There's more files needed than just the executables. The .h files,
libraries, etc... And you can't necessarily simply copy programs from
one installation to another - if the versions are different there's no
guarantee anything will work.

John

On Mar 22, 7:21 pm, wrote:
> Hi,
> I got esqlc.exe and esqlcc.exe files and copied them to C:\IngresII
> \ingres\bin folder. Now the commands are working. But the error is
> with program. Below is the program I've written:
>
> #include <stdio.h>
>
> void main() {
>
> EXEC SQL INCLUDE SQLCA;
>
> EXEC SQL WHENEVER SQLERROR STOP;
>
> EXEC SQL CONNECT causp;
>
> EXEC SQL DELETE FROM skeletons WHERE id = 40;
>
> EXEC SQL DISCONNECT;
>
> }
>
> If I issue the command esqlc filename.sc, I'am getting the following
> error:
> ESQL TestKT.sc:
> %% Error in file TestKT.sc, Line 14:
> E_EQ0205 End of file found in middle of line.
> The current line will be ignored by the preprocessor.
>
> Can any one suggest what modifications need to be done in the program?
>
> Thanks in advance
> Mohan
 >> Stay informed about: Embedded SQL 
Back to top
Login to vote
kodaliece

External


Since: Mar 15, 2007
Posts: 23



(Msg. 20) Posted: Thu Mar 22, 2007 3:54 am
Post subject: Re: Embedded SQL [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi,
I could see the eqdef.h file at the location %II_SYSTEM%ingres\files.
But still this program is throwing the same error.
Mohan

>
> To my naked eye that looks fine (although I might have included the SQLCA
> outside the scope of main()).
>
> If you look in %II_SYSTEM%ingres\files do you see a file called eqdef.h?
> That's what is being included, so it needs to be there. If you don't have
> it, presumably you can get it from wherever you got the esqlc.exe. I have
> no idea if you'd get the particular error you are seeing if it doesn't exist
> though.
>
> Roy- Hide quoted text -
>
> - Show quoted text -
 >> Stay informed about: Embedded SQL 
Back to top
Login to vote
Roy Hann3

External


Since: Oct 20, 2004
Posts: 472



(Msg. 21) Posted: Thu Mar 22, 2007 5:56 am
Post subject: Re: Embedded SQL [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

wrote in message

> Hi,
> I got esqlc.exe and esqlcc.exe files and copied them to C:\IngresII
> \ingres\bin folder. Now the commands are working. But the error is
> with program. Below is the program I've written:
>
> #include <stdio.h>
> void main() {
> EXEC SQL INCLUDE SQLCA;
> EXEC SQL WHENEVER SQLERROR STOP;
> EXEC SQL CONNECT causp;
> EXEC SQL DELETE FROM skeletons WHERE id = 40;
> EXEC SQL DISCONNECT;
> }
>
> If I issue the command esqlc filename.sc, I'am getting the following
> error:
> ESQL TestKT.sc:
> %% Error in file TestKT.sc, Line 14:
> E_EQ0205 End of file found in middle of line.
> The current line will be ignored by the preprocessor.
>
> Can any one suggest what modifications need to be done in the program?

To my naked eye that looks fine (although I might have included the SQLCA
outside the scope of main()).

If you look in %II_SYSTEM%ingres\files do you see a file called eqdef.h?
That's what is being included, so it needs to be there. If you don't have
it, presumably you can get it from wherever you got the esqlc.exe. I have
no idea if you'd get the particular error you are seeing if it doesn't exist
though.

Roy
 >> Stay informed about: Embedded SQL 
Back to top
Login to vote
kodaliece

External


Since: Mar 15, 2007
Posts: 23



(Msg. 22) Posted: Thu Mar 22, 2007 6:16 am
Post subject: Re: Embedded SQL [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi,
Now I am able to generate the '.c' file. But the problem is if I try
to compile the file it is showing the "unresolved external symbol"
errors. But the header files are included in the c program and the
header files contain the prototype of these functions. Still it is
throwing the errors.
Mohan
 >> Stay informed about: Embedded SQL 
Back to top
Login to vote
ac297

External


Since: Mar 22, 2007
Posts: 3



(Msg. 23) Posted: Thu Mar 22, 2007 7:57 am
Post subject: Re: [Info-Ingres] Embedded SQL [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Quoting :

> Hi,
> I could see the eqdef.h file at the location %II_SYSTEM%ingres\files.
> But still this program is throwing the same error.
> Mohan

First, try and compile this:

#include <stdio.h>

void main() {
}

If that works, continue with

#include <stdio.h>

void main() {
EXEC SQL INCLUDE SQLCA;
}

I'm expecting that to fail (it's another include command)..

if not just carry on adding code until you see the offending line.

As others have said, copying files one at a time is a really bad approach.

Paul
 >> Stay informed about: Embedded SQL 
Back to top
Login to vote
ac297

External


Since: Mar 22, 2007
Posts: 3



(Msg. 24) Posted: Thu Mar 22, 2007 1:44 pm
Post subject: Re: [Info-Ingres] Embedded SQL [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Quoting :

> Hi,
> Now I am able to generate the '.c' file. But the problem is if I try
> to compile the file it is showing the "unresolved external symbol"
> errors. But the header files are included in the c program and the
> header files contain the prototype of these functions. Still it is
> throwing the errors.

Missing libraries, or incorrect library path probably..

> Mohan
>
> _______________________________________________
> Info-Ingres mailing list
> Info-Ingres.TakeThisOut@kettleriverconsulting.com
> http://www.kettleriverconsulting.com/mailman/listinfo/info-ingres
>


--
 >> Stay informed about: Embedded SQL 
Back to top
Login to vote
Ingres Forums

External


Since: Oct 20, 2009
Posts: 12



(Msg. 25) Posted: Mon Sep 19, 2011 1:51 am
Post subject: Re: Embedded SQL [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

You're welcome. BTW 'Edmonton Asian Escort'
(http://www.edmontonescortasiam.com) how far back do you suggest
answering 'Edmonton Escort' (http://www.edmontonescortasian.com) some of
these posted problems? 'Edmonton Escorts'
(http://www.edmontonescortasiam.com) See a lot of unanswered ones going
way back. 'Edmonton Asian Escorts' (http://www.edmontonescortasiam.com)


--
lzqqqq
------------------------------------------------------------------------
lzqqqq's Profile: http://community.ingres.com/forum/member.php?userid=112924
View this thread: http://community.ingres.com/forum/showthread.php?t=7994
 >> Stay informed about: Embedded SQL 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Embedded SQL programming - Hi, I am trying to pre-compile the following embedded SQl program: #include <stdio.h> void main() { EXEC SQL INCLUDE SQLCA; EXEC SQL WHENEVER SQLERROR STOP; EXEC SQL CONNECT causp; EXEC SQL DELETE FROM skeleton...

Process hanging on Endselect - We have a process which needs to produce an average figure over the last 16 qualifying weeks. The way it currently works is to select the rows from the two relevant tables ordered by date descending, then in a select loop check if the week qualifies and...

E_DM9063_LK_TABLE_MAXLOCKS - We have a weekly job that takes a COPY.OUT from the "Live" database and then does a COPY.IN to a development database in a separate installation. I've noticed that in one instance, the ERRLOG is getting a number of messages of the general form...

Help fo vnode - I am going to use the ingres replication. For that I have set vnodes using "netutil". I have configured all the things for replication on my local database using repmgr. Now I want to move the Configuration to the Remote Server database. When I...

Help for starting the replication server - I have configured the database for replication using repmgr command I also started the replication server. It is started and its status is active. But there are one error message comming which is related to the authorization of the remote database. Using...
   Database Forums (Home) -> Ingres All times are: Pacific Time (US & Canada)
Goto page Previous  1, 2
Page 2 of 2

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]