keyongtech


  keyongtech > vb.* > vb.database.ado > 01/2004

 #1  
01-06-04, 12:06 PM
Ramachandran Balasubramaniam
My company has four web servers running copies of same ASP web application. One of the servers is running on windows 2000 Advanced server edition (without service pack) , MDAC 2.6. The other three servers had windows NT OS and MDAC Version 2.5 installed. We use microsoft SQL server 7.0 as backend. We migrated the NT servers to windows 2000 with service pack 4. We are now facing lot of problems with frequent page crashes in the ASP application.

The point of failure is passing date and numeric parameters to a Stored procedure using a ADO command object. The error message appearing is " Application uses value of wrong type for the current operation".Worst case is that the decimal points in numeric fields are not detected and the numeric values are stored without decimal points resulting in absolute chaos.

When we change the code by formatting the datatype using functions CDate, CDbl or CInt , the code works fine.
The regional settings are all same as before. We cannot afford to change the code as the application is very huge and we cannot allocate resources to debug and test the code base at this time.

We have downgraded the service pack of the three servers to service pack 2 of windows 2000. Now the same code works fine. But we would like to know what went wrong and also want to keep the code base compatible to all service packs.

Have anyone faced similar problems during windows migration? we would be immensely thankful if anybody helps in rectifying this problem.
 #2  
01-07-04, 03:15 AM
Val Mazur
Hi,

Check if this is not your case

http://support.microsoft.com/default...50&Product=ado

If not, then you would need to post code to reproduce error
 #3  
01-07-04, 09:20 AM
Balasubramaniam Ramachandran
hi,

thanks for the reply. but that link did not help. as i told this error
does not happen in all OS. It happens only when run on a server with win
2K without service pack or win 2k with service pack 4. with win 2K and
service pack 2, the code just works fine.

regards,
subby.

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Similar Threads
error "Command Text was not set for the command object"

This is a repost as the original is no buried in the archives... We're running Project Server 2003. Multiple users are receiving the following popup error "command text...

Dataadabter update command throws error

In the past, I have filled a datagrid with data from an Access database table using a data adapter and dataset, where I used the OleDbCommandBuilder to have the program...

How to stop a windows service using DOS command prompt on Win2K?

Hi, How does one stop a service using command prompt on windows 2000 professional? I know that some of the networking services can be stopped using net stop command, but...

Command text was not set for the command object error And DoCmd.OpenQuery

Hello, I would really appreciate some help. I am still learning VBA and I feel like my brain is fried already. Below I am trying to run a query and do a loop. I actually get...

CRON throws error, but no command line problems

Good morning group! I am running PHP 4.3.4RC1 on a FreeBSD sevrer that recently came online as an upgrade from another server. (previous PHP version was 4.1.n) Via a CRON...


All times are GMT. The time now is 07:15 PM. | Privacy Policy