Wrox Programmer Forums
|
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 12th, 2005, 09:03 PM
Authorized User
 
Join Date: Jun 2003
Posts: 90
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to tdaustin Send a message via Yahoo to tdaustin
Default Sybase Connection with ASP

Hi All,

Im having problems with a application i was sent from someone.

I know it works as ive seen it running on a test server but i cannot get the connection to the sybase database with asp. Im not familur with sybase and im not sure if i may need another odbc driver.

I can get it working through SQL central (Sybase SQL Anywhere 5.0) and a custom software application.

The error i get is;
Code:
Sybase][ODBC Driver]Unable to connect to database server: invalid database engine command line
/admin/aspscripts/conn.asp, line 7
WHAT I HAVE DONE.
1. installed sql anywhere 5.0
2. Set System DSN correctly
3. Changed the db location in conn.asp to where the database is located on my machine.

Code:
set cn=server.CreateObject("adodb.connection")
Cn.ConnectionString = "DSN=ankcvic;uid=melbourne;pwd=melbourne"
strConn="ODBC; Driver=Sybase SQL Anywhere 5.0; DefaultDir=c:\dbfolder\;Dbf=D:\ANKC\ankcvic.db;Uid=xxxx;Pwd=xxxx;Dsn=""Ankcvic"""
Am i missing something?

Any help from a sybase guru would be much appreciated.

Thanks

Tim

TDA
__________________
TDA





Similar Threads
Thread Thread Starter Forum Replies Last Post
Output parameter sybase C# goser C# 2005 2 October 24th, 2007 03:17 AM
sybase database with asp Paging shaileshk Classic ASP Databases 2 August 20th, 2005 04:35 AM
PHP + Sybase nelly05 PHP Databases 0 June 26th, 2005 01:56 AM
M$ SQL verses Sybase hortoristic SQL Server 2000 2 February 18th, 2004 07:11 PM
Sybase to Oracle abhitimes Access 0 July 31st, 2003 02:13 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.