?
Solved

Sybase Error

Posted on 2009-02-11
6
Medium Priority
?
575 Views
Last Modified: 2013-11-24
I have an asp site with Sybase 11 db. I'm getting an error "buflen must be cs_unused" when I attempt to open a page and when I refresh, the error goes to "catastrophic failure". Not sure where to update the buflen value??  The Sybase db is working okay, able to query via the sql advantage tool.
set conn = Server.CreateObject("ADODB.Connection")
conn.ConnectionString = "DSN=SERVER;UID=id;PWD=pwd"
conn.open
 
SQL_Nodes = "SELECT * from node Order by sortkey(Node,'altnocsp')"
set Nodes	= conn.Execute(SQL_Nodes,,adCmdText)

Open in new window

0
Comment
Question by:kevbob650
  • 3
  • 3
6 Comments
 
LVL 19

Expert Comment

by:grant300
ID: 23623150
Hmmmm....  You have to ask what has changed recently.
 - Is this all new code?
 - Does this table/query return more rows that what I am typically doing on the site?
 - Did versions of anything change?  Tell us that you do not have Automatic Updates enabled

What Sybase product and version are you using?  Sybase 11 is, at best, ambiguous.  It could be the brand spanking new version of ASA or an old broken down version of ASE.

Unless you are building an entirely new application, (seems unlikely on a ASE 11 but probably on ASA 11), some of this kind of thing has been working.  You can look at the various ODBC parameters to see if there are any options that might be affecting this.  Again, they will be different between the two products.

Finally, if this infrastructure is new, you may have a mismatch in versions, particularly ODBC drivers.  Use the ones supplied with the client installation for the version of the database you are using, not the ones supplied by Microsoft.

Regards,
Bill
0
 

Author Comment

by:kevbob650
ID: 23623430
Bill,
Sorry, I'm not a Sybase guy, never worked with it!  The db is Sybase System 11 with ODBC Driver v 11.1.  This is an issue where I'm moving old code to a new server, both boxes are windows 2003 with IIS 6.0.
I think I just found an issue, the Sybase client is showing sybase odbc drive for win95 - ouch. It's the only driver I cound find. OS is Windows 2003. Where can I find more current drivers?
thanks,
Kevin
0
 
LVL 19

Expert Comment

by:grant300
ID: 23623874
O.K., You still have no clarified which product; Adaptive Server Enterprise or SQL Anywhere (Adaptive Server Anywhere).  You also have not told me whether you are having problems with "the old server" or "the new server".

By moving code, are you simply trying to pick up the whole system, database server and all, and move it to a newer system/OS?

Please be specific out platforms, O/S (client and server), and Database.

You can use the query tool and issue the query...
SELECT @@version
go

and it will return detailed product and version information.

Regards,
Bill
0
Veeam Disaster Recovery in Microsoft Azure

Veeam PN for Microsoft Azure is a FREE solution designed to simplify and automate the setup of a DR site in Microsoft Azure using lightweight software-defined networking. It reduces the complexity of VPN deployments and is designed for businesses of ALL sizes.

 

Author Comment

by:kevbob650
ID: 23633605
Well the whole thing crashed. Here is the spec on the version of Sybase running on my old server where it works. Can I get this one anywhere?

Adaptive Server Enterprise/11.9.2.1/1108/P/SWR 8741 ESD 4/NT (IX86)/OS 3.51,4.0/FBU/Wed Dec 01 12:01:38 1999
0
 
LVL 19

Assisted Solution

by:grant300
grant300 earned 2000 total points
ID: 23633818
I don't suppose you have the installation disks for this version of Sybase?  If you do, the ODBC drivers for NT might work under XP/2003.

My guess is that you may never have a stable system running Sybase 11.9.2 on WS2003.  It is over 9 years old an there are some many things working against it.  You might have better success by telling Windows to run the dataserver in Win2K compatibility mode.

As far as the client software goes, Sybase is pretty good about backward compatibility so you could use a newer version of the client installation and ODBC drivers.  Look for version 12.5.x prior to 12.5.4 where the ODBC drivers changed from third party to Sybase internal.

Frankly, I would take this opportunity to upgrade to a version of Sybase from this century.  If nothing else, you will get substantial performance improvements over 11.9.2 and, of course, support.

How big is your database in megabytes?  If you can fit it in 5GB, you can use Sybase ASE 15 Express Edition for FREE.  If it is significantly larger than that, you will have to pop for the license which, all things considered, is cheaper than weeks you will spend finding out trying to move this mess to 2003 is not really going to work very well for you.  And, of course, you are going to need to upgrade at some point anyway.

Regards,
Bill
0
 

Accepted Solution

by:
kevbob650 earned 0 total points
ID: 23635545
Bill,
Thanks so much for you assistance. This is a situation where I need to move some very old code and a fairly small db to a new box due to data center move.  I probablly only need to keep it alive for 6 months and then kill it.  Your idea about the Express Edition is a great one which I think I'll try, the db is much less than 5GB. I'll accept this as a solution - you da man!
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The canonical version of this article is on my web site here: http://iconoun.com/articles/collisions/ A companion presentation is available here: http://iconoun.com/articles/collisions/Unicode_Presentation.pdf
Article by: Leon
Software Metering within our group of companies has always been an afterthought until auditing of software and licensing became a pain point. Orchestrator and SCCM metering gave us the answer and it was an exciting process.
Viewers will learn the different options available in the Backstage view in Excel 2013.
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question