Progress database connection
Posted: Tue Aug 07, 2007 8:40 am
feyd | Please use
The file exists and I confirmed the user name and password are correct. I get the following error:
Can anyone offer a solution?
Thanks!
feyd | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
Hi Folks,
I'm trying to connect to a local Progress database using the following:
$dbq = "C:/SD20/sims.db";Code: Select all
if( !file_exists( $dbq ) )
echo $dbq . " does not exist!";
else
echo $dbq . " found!";
if ( $conn_id = odbc_connect( $dbq, "user", "pwd", SQL_CUR_USE_ODBC ) )
{
echo $conn_id;
}
else
{
echo "Failed to make connection.";
}Code: Select all
SQL error: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified, SQL state IM002 in SQLConnect...Thanks!
feyd | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]