473,385 Members | 1,752 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Data returned by SQL Server ODBC driver is not correct

I've a query which happily returns a full set of data when run in SQL
Studio but when I do the same query using IIS with Classic ASP
connected via ODBC's SQL Server driver (not the native one) numbers
returned to the record set are filled with 0 and strings are empty
exept for a few rows.

This is happening in IIS 5.1 and IIS 6.0 when the database is on a
seperate machine. With IIS 5.1 and SQL Server 2005 Developer Edition
on the same machine (XP Professional) the query results are as
expected.

I can't even think of what to check or search for!

David
Aug 5 '08 #1
2 1613
On 5 Aug, 14:57, woak...@googlemail.com wrote:
I've a query which happily returns a full set of data when run in SQL
Studio but when I do the same query using IIS with Classic ASP
connected via ODBC's SQL Server driver (not the native one) numbers
returned to the record set are filled with 0 and strings are empty
exept for a few rows.

This is happening in IIS 5.1 and IIS 6.0 when the database is on a
seperate machine. *With IIS 5.1 and SQL Server 2005 Developer Edition
on the same machine (XP Professional) the query results are as
expected.

I can't even think of what to check or search for!

David
I noticed that the connection used had a transaction with deletes
pending and so I decided to create a second connection
and lo and behold the query returned the correct results.

The code was working perfectly with SQL Server 2000 so I remain very
concerned and would appreciate some help.
Aug 5 '08 #2
(wo*****@googlemail.com) writes:
On 5 Aug, 14:57, woak...@googlemail.com wrote:
>I've a query which happily returns a full set of data when run in SQL
Studio but when I do the same query using IIS with Classic ASP
connected via ODBC's SQL Server driver (not the native one) numbers
returned to the record set are filled with 0 and strings are empty
exept for a few rows.

This is happening in IIS 5.1 and IIS 6.0 when the database is on a
seperate machine. *With IIS 5.1 and SQL Server 2005 Developer Edition
on the same machine (XP Professional) the query results are as
expected.

I can't even think of what to check or search for!

David

I noticed that the connection used had a transaction with deletes
pending and so I decided to create a second connection
and lo and behold the query returned the correct results.

The code was working perfectly with SQL Server 2000 so I remain very
concerned and would appreciate some help.
In such case, you need to be a whole lot more specific. You could start
us showing the code that is freaking out for you. Don't forget the
connection string!
--
Erland Sommarskog, SQL Server MVP, es****@sommarskog.se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pro...ads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinf...ons/books.mspx
Aug 5 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Colin Colin | last post by:
We migrated our intranet site from IIS4 NT4 (\\GHCNT8) to a Windows 2003 server with IIS6 (\\NT58) using the IIS Migration Tools. I have a few ASP pages that access Foxpro data on a different...
12
by: Jerry Weinstein | last post by:
Hi, I know about stored procedures and that they can speed up data entry via the SQL 'insert ' statement. However, one drawback to this method is that using the stored procedure still requires...
1
by: SkunkDave | last post by:
Is there a script anyone has that will automate the addition of an access database to the OBDC datasources in control panel. Thanks
2
by: Lyn Duong | last post by:
hi all, I am trying to create a dts package to transfer data from tables in my sql server 2000 database to a db2 UDB v8.1.4 database. When I use ibm db2 oledb driver for the destination this...
32
by: Neil Ginsberg | last post by:
We're using SQL Server 7 with an Access 2000 MDB as a front end with ODBC linked tables. I recently created a new set of tables for the app, and users are complaining that unsaved data is being...
5
by: grondaia | last post by:
Here's my situation: I have an ODBC DSN setup for Timberline Data (An accounting package that uses pervasive.sql) on my sql box. I set up a linked server using the supplied timberline odbc...
7
by: Neil Ginsberg | last post by:
I'm having some problems with an Access 2000 MDB file with a SQL Server 7 back end, using ODBC linked tables. I previously wrote about this, but am reposting it with some additional information and...
2
by: Marcus | last post by:
(Appologies if this group isn't the best place for this post) Is it possible to use DAO 3.6 to access binary data (varbinary(max)) in Sql Server 2005? I have images and sound in a Sql 2005 DB...
4
by: Neil | last post by:
Is there a problem with stability when one uses too many text (memo) fields? I'm having a problem with data from one record occasionally ending up in another record, though apparently not through...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.