Pro*C question

From: Stephen Schow <sjs_at_netcom.com>
Date: Tue, 22 Jun 1993 18:01:13 GMT
Message-ID: <sjsC91BE1.FoF_at_netcom.com>


Hi all,

I am attempting to use the Pro*C Precompiler on the Mac together with me new THINK C 6.0 compiler that I just got. Anyway, I need to write a Pro*C program that connects to a remote database. I keep getting sqlca.code
-6108. I can't figure it out. I have tried several different versions
of the following connect logic:

where

        VARCHAR username[30];

then         

	strcpy(username.arr,"scott/tiger_at_T:192.1.2.1:co");
	username.len = strlen(username.arr);

	EXEC SQL CONNECT :username;

it don't work! Any ideas?

Thanks in advance
--



Steve Schow | But you don't have to use the claw, if you sjs_at_netcom.com | pick the pear with the big paw paw...... (415) 354-4908 | Have I given you a clue......?
               |                       - Baloo the Bear

------------------------------------------------------------------
Received on Tue Jun 22 1993 - 20:01:13 CEST

Original text of this message