MC Press Online Forum
Welcome, Guest
Please Login or Register.    Lost Password?
Quick ODBC connectivity not working like DSN (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: Quick ODBC connectivity not working like DSN
#1234
Mike Gobbi (User)
Fresh Boarder
Posts: 1
graphgraph
User Offline Click here to see the profile of this user
Quick ODBC connectivity not working like DSN 2 Years, 2 Months ago Karma: 0  
Have the following program that pulls a recordset from the AS/400 from Excel. It runs great as long as an ODBC driver is created and referred to for connectivity. However, would like to avoid installing the driver manually on every users PC so tested the following line <p>Con1.Open "Driver={Client Access ODBC Driver (32-bit)};System=XYZ;Uid=ZZZZ;Pwd=ZZZZZ" <p>in lieu of <p>Con1.Open "DSN=USSO;UID=ZZZZ;PWD=ZZZZZ;" 'Connect to AS/400 <p>this connects all right but get a run time error on line <p>rs.Open Cmd1 <p>and the recordset is not being returned. <BR>
Any ideas would be appreciated. <p><!--mccodelink_begin--> <BR>
<!-- do not remove --> <BR>
<hr width=50 align=left><small><a href='http://www.mcpressonline.com/mc/showcode@@.6b3a42f3' target='_blank'>Code</a></small> <BR>
<!--mccodelink_end-->
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#1235
PatLandrum (User)
Fresh Boarder
Posts: 17
graphgraph
User Offline Click here to see the profile of this user
Quick ODBC connectivity not working like DSN 2 Years, 2 Months ago Karma: 0  
The IBM ODBC driver is a component of iSeries Access for Windows. You will need to install and configure it on each machine using your process. For further information refer to the following link: <p><a href="http://publib.boulder.ibm.com/infocenter/iseries/v5r3/index.jsp?topic=/rzaii/rzaiiodbcadm.htm">http://publib.boulder.ibm.com/infocenter/iseries/v5r3/index.jsp?topic=/rzaii/rzaiiodbcadm.htm</a>
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#1236
Guest.Visitor (Visitor)

Birthdate:
Quick ODBC connectivity not working like DSN 2 Years, 2 Months ago  
Mike Gobbi wrote:<BR>
> Have the following program that pulls a recordset from the AS/400<BR>
> from Excel. It runs great as long as an ODBC driver is created and<BR>
> referred to for connectivity. However, would like to avoid installing<BR>
> the driver manually on every users PC so tested the following line<BR>
><BR>
> Con1.Open "Driver={Client Access ODBC Driver<BR>
> (32-bit)};System=XYZ;Uid=ZZZZ;Pwd=ZZZZZ"<BR>
<P>
<P>
But Mike, you specifically refer to the Driver in this statement. If it's <BR>
not installed, it's not going to work.<BR>
<P>
<P>
> in lieu of<BR>
><BR>
> Con1.Open "DSN=USSO;UID=ZZZZ;PWD=ZZZZZ;" 'Connect to AS/400<BR>
><BR>
> this connects all right but get a run time error on line<BR>
><BR>
> rs.Open Cmd1<BR>
><BR>
> and the recordset is not being returned.<BR>
> Any ideas would be appreciated.<BR>
<P>
<P>
All you've accomplished is an attempt to use the ODBC driver without a <BR>
pre-defined Data Source Name. As Pat mentions, the driver has to be <BR>
installed on the PC.<BR>
<P>
Bill <BR>
<P>
<P>
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop
   MC-STORE.COM