Google Groups Home
Help | Sign in
64 bit oledb connection
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
Mubi  
View profile
 More options Jun 4, 12:03 am
Newsgroups: microsoft.public.data.oledb
From: Mubi <mmubashirk...@yahoo.com>
Date: Tue, 3 Jun 2008 21:03:36 -0700 (PDT)
Local: Wed, Jun 4 2008 12:03 am
Subject: 64 bit oledb connection
Dear All,

We are migrating our application from 32 bit to 64 bit platform. We
are unable to connect to SqlServer via OLEDB connection string. It
works on 32 bit perfectly. Could you please provide the the guide
lines on connecting 64 bit app to the database.

Thanks
Mubashir


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Erland Sommarskog  
View profile
 More options Jun 4, 5:34 pm
Newsgroups: microsoft.public.data.oledb
From: Erland Sommarskog <esq...@sommarskog.se>
Date: Wed, 04 Jun 2008 14:34:42 -0700
Local: Wed, Jun 4 2008 5:34 pm
Subject: Re: 64 bit oledb connection

Mubi (mmubashirk...@yahoo.com) writes:
> We are migrating our application from 32 bit to 64 bit platform. We
> are unable to connect to SqlServer via OLEDB connection string. It
> works on 32 bit perfectly. Could you please provide the the guide
> lines on connecting 64 bit app to the database.

Which provider do you use? Can you show us your connection string?

Which language do use? In which way to you use OLE DB? ADO? OLE DB
Consumer templates? The raw API?

Which operating system does your application run on?

--
Erland Sommarskog, SQL Server MVP, esq...@sommarskog.se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books...
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Scott S.  
View profile
 More options Jun 5, 11:02 am
Newsgroups: microsoft.public.data.oledb
From: Scott S. <Sco...@community.nospam>
Date: Thu, 5 Jun 2008 08:02:01 -0700
Local: Thurs, Jun 5 2008 11:02 am
Subject: RE: 64 bit oledb connection
Mubi,

I ran into this problem when developing a C# app and I got a new machine
with 64bit OS.  I installed everything but it no longer ran because it
couldn't connect.  Problem was that I didn't have a 64 bit version of the
OLEDB driver.

There is not difference in your application in the connection string, but
you do need to have the 64 bit version of the OLEDB drivers installed.    I
proved that to myself by writing a little code (I looked and can no longer
find it for you) to get the entire list of drivers and display them to me.  I
then ran it in 64 bit and in 32 bit modes.  I got a different list ... MUCH
shorter in 64 bit mode.

My "solution" was to change my project to force it to run in x86 (i.e. 32
bit) mode and then everything worked fine during development.  I ship both a
32bit and 64bit exe and leave it up to the customer which to use and tell
them they need to have the appropriate OLEDB providers installed to use the
64 bit version.  So far most have just run the 32bit version and been happy
with it.  Only a couple needed the extra process memory space (using HUGE
tables) and went through the trouble to get and install a 64bit provider, and
then it did work just fine.

This is one of the advantages of managed code  ... same code can run in 32
or 64 bit.

Good Luck,
Scott


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google