MDAC 2.8 vs MDAC 2.7

From: Gianluca (Gianluca_at_discussions.microsoft.com)
Date: 10/28/04


Date: Thu, 28 Oct 2004 12:55:02 -0700

I have written several vb6 applications with MDAC 2.7 SP1 Refresh.
This application connects to a SQL Server 2000 SP3a on Windows 20003 Server.
I run this application on a WXP Pro client.
I have a DSN defined to connect to SQLServer via ODBC
All works ok with this code:

Dim cn1 as new adodb.connection
Dim rst as ADODB.Recordset
Dim lngNumber as long

cn1.ConnectionTimeout = 60
cn1.CursorLocation = adUseClient
cn1.Open "DSN=" & sName, sUser, sPwd

rst.Open "SELECT ID FROM TABLE", cn1, adOpenKeyset, adLockOptimistic
lngNumber = rst.Recordcount

' Note that lngNumber = 3567
if lngNumber=0 then MsgBox "Error"
....

If i put the application on Windows 2003 server i get:
' The same table with 3567 records return 0
if lngNumber=0 then MsgBox "Error"

and the Box "Error" appears!!!!!

I changed to OleDB and It works but the problem is:
when all my server will be Win 2003 I will have lots of
program with problems !!!!!!
How can i continue in using DSN with ODBC with Windows 2003 server ?
My customers are not enthusiastic to pay me to
change all programs !
Help me please
Thank you



Relevant Pages

  • SecurityFocus Microsoft Newsletter #154
    ... MICROSOFT VULNERABILITY SUMMARY ... ISS RealSecure Server Sensor SSL Denial Of Service Vulnerabi... ... Roger Wilco Remote Server Side Buffer Overrun Vulnerability ... available for Microsoft Windows operating systems. ...
    (Focus-Microsoft)
  • SecurityFocus Microsoft Newsletter #49
    ... Subject: SecurityFocus Microsoft Newsletter #49 ... Microsoft Windows NNTP Denial of Service Vulnerability ... Microsoft IIS SSI Buffer Overrun Privelege Elevation Vulnerability ... Microsoft ISA Server H.323 Memory Leak Denial of Service... ...
    (Focus-Microsoft)
  • Questions Relating to Administering Windows 2000 Server
    ... installed the network client on the target computer. ... Sarah has been attempting to install Windows 2000 ... Server for two days. ... Sarah has checked the cables and hard drives. ...
    (microsoft.public.cert.exam.mcse)
  • Questions Relating to Administering Windows 2000 Server
    ... installed the network client on the target computer. ... Sarah has been attempting to install Windows 2000 ... Server for two days. ... Sarah has checked the cables and hard drives. ...
    (microsoft.public.cert.exam.mcse)
  • pqv¼Ò¹ÚÇÑ ²Þ@mBGRx
    ... O-009¹Ù¢Ã MS Windows 2000 Datacenter Server -2¸¸¿ø ... Main Application (Borland C++ Builder 6 Enterprise Edition) ... Y-166¢Ã Sex Starved Sluts 1 (Divx) ...
    (FreeBSD-Security)