473,804 Members | 3,091 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1630
On 5 Aug, 14:57, woak...@googlem ail.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*****@google mail.com) writes:
On 5 Aug, 14:57, woak...@googlem ail.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****@sommarsk og.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
2761
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 server. I downloaded the Visual Foxpro ODBC Driver from MSDN. I exported (from the registry) the ODBC entries from the old server and imported them onto the newserver. I setup the Internet user guest account with rights where the Foxpro data is...
12
3233
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 one to manually and individually enter each and every record to be inserted to the database before the procedure is executed. I want to circumvent this tedium by finding a way to use maybe a VB application that prompts a user for the data to be...
1
6904
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
3589
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 works fine except that rows are committed on a row by row basis thus performance is slow. I want to use the odbc driver but when I define it as the destination, i get errors saying that the maximum number of rows failed has exceeded the minimum.
32
3232
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 lost when they move to a new record. This seems to be the case when there are multiple users. When there is a single user using it, we don't seem to have that problem. It seems that we had this problem when we first converted from an MDB back end...
5
5667
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 driver. I have two sql instances setup, the default instance and a named instance. On the default instance, the linked server works great no matter who is logged in using it (all authentication is NT integrated). However on the named instance only...
7
2297
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 in summary form, in hopes that someone might have an idea about what's going on. I am using a bound form which is losing data a significant portion of the time. Basically, the form contains 6 fields and three subforms, as follows: Field A...
2
8194
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 that I need to retrieve (and write) with DAO (ADO and ADO.Net are not options as this is legacy code that can't be changed). Thx, Marcus
4
2295
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 any user interaction. I'm using SQL 7 and accessing the tables through the ODBC driver. There are two tables with a one-to-one relationship -- TableA and TableB. TableB is the one that's having this occasional problem. TableB has about 30 text...
0
9704
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10558
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10318
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10302
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10069
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9130
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6844
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5636
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2975
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.