32 bit vs 64 bit odbc connection problems

Good morning,
I am trying to connect a powershell script that worked fine on a 32 bit system, but now will not work on a 64 bit system.  This script connects to a odbc connection and connects to a remedy ticket system and pulls information to move over to my Outlook
calendar.
The error am getting is:
Exception calling "Open" with "0" argument(s): "ERROR [IM014] [Microsoft][ODBC Driver Manager] The specified DSN contains an architecture mismatch between the Driver and Application"
At C:\Users\Public\Documents\RemedyCRQ.ps1:25 char:17
+ $connection.Open <<<< ()
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : DotNetMethodException
The code that is running this is below:
$script:showWindowAsync = Add-Type –memberDefinition @”
[DllImport("user32.dll")]
public static extern bool ShowWindowAsync(IntPtr hWnd, int nCmdShow);
“@ -name “Win32ShowWindowAsync” -namespace Win32Functions –passThru
$null = $showWindowAsync::ShowWindowAsync((Get-Process –id $pid).MainWindowHandle, 2)
$connection = New-Object System.Data.Odbc.OdbcConnection
$command = New-Object System.Data.Odbc.OdbcCommand
$command.Connection = $connection
$remedyTickets = @()
$connectionString = "DSN=remedy"
$connection.ConnectionString = $connectionString
$connection.Open()
I would appreciate it if someone had some insight to offer.  I've looked around and have created the ODBC connection on the 32 bit odbc version c:\windows\sysWOW64\odbcad32.exe.  Doesn't seem to have changed anything.  Ive created it both
as a user and system DSN.

Add the below code in to your Script.
if ([environment]::Is64BitProcess -eq $True)
C:\WINDOWS\system32\WindowsPowerShell\v1.0\powershell.exe -File "script filename"
Exit
Note: The path I used is for Windows 7, you need to figure out the path for your OS.
S.Arun Prasath

Similar Messages

  • Odbc connectivity problem

    Hi all,
    when i am installing ECC 5.0 i got below error.
    "odbc connectivity problem, error executing sql command"
    what may be the reason.
    plz give me some solution.
    vinnu.

    Hi Vinay
    Check if your database is up and running.

  • 64 bit OBI Connection problem

    Hi all,
    I have a problem with oracle bi-database connection. Currenty when I try to import from ODBC 3.5 datasource what oraclebi shows me does not exist in ODBC connection, and also when I added a new odbc connection to system dsn I cannot see it from Oracle BI. It is like looking to entirely different machine.
    Computer is 64 bit windows. I installed OBISE1, in installation both oracle and obi software were installed succesfully but I had a problem when it was trying to create the sample bise1db database(credential retrieval failed). Then I installed 64 bit oracle software, pachted it to 10.2.0.4 and created the database instance(I received the same error when creating 64 instance but I updated sqlnet.ora and I successfully created instance).
    I restated Oracle BI services but now Oracle BI is behaving like it is not in the same computer I am looking at. It is not possible to import from ODBC 3.5 because it is not seeing System DSN connections. I also tried to create new database and connection pool and manually configure in the physical layer but still I get connection errors.
    Currenty there are two oracle software in the computer, 32bit 10g and 64 bit 10g and only one instance that is created with 64 bit software.
    I am not sure it was a mistake to install OBISE1 software to 64 bit machine.
    Any help would be appreciated..

    I assume that when solaris 10 boots up, it only checks the land line NIC card, not the wireless card. If there is no lan connection, then so be it.
    Is that right?No! :-)
    nwam only supports one device but the device is selectable. physical should activate all devices regardless. So if your Wifi isn't working then I would use wificonfig to see what it can see. Check the man page for scan and showstatus options. Then you'll know what it's seeing.
    alan

  • Oracle Client 11g on Windows 2008 64 bit ASP Connection Problems

    Hi,
    I'm trying to set up my old ASP applications on a new web server. I've moved from a windows 2003 server to 2008 64 bit.
    I've installed the Oracle Client 11g 64 bit drives and if I create a new ODBC connection tat works fine. But IIS will not connect.
    Connection string i've been using is:
    Provider=OraOLEDB.Oracle.1; Password=******; User ID=*****; Data Source=*****
    All i get is no provider could be found.
    "3706 Provider cannot be found. It may not be properly installed."
    Can anyone help me out / point me in the right direction?
    Thanks
    Gareth Owen

    Hi,
    Thanks for the reply. The app pool is running in 64 bit. I've tried installing a 32 bit version of the oracle provider and shifting the app pool down to that and no joy either.
    Have tried changing the permissions on the Oracle folder which gives me no joy. It's as if IIS just has no access to the Oracle provider. But I just don't know how to get this working.
    Under windows 2003 things just worked when I installed the Oracle provider...
    Gareth

  • Establish 32-bit ODBC connection to 64-bit Oracle 11g database

    Hi Everyone,
    Just to set the scene:
    PC with Windows 2003 server x64 OS installed, Oracle 11g 11.1.0.7 64-bit installed and MS Office 2007 installed.
    I am looking for advice on the best way to establish an ODBC link so that MS Access 2007 (32-bit) can connect to the Oracle 11g (64-bit) database.
    There are known issues, see [http://support.microsoft.com/kb/942976|http://support.microsoft.com/kb/942976] (which I have hit) when attempting to use a 64-bit ODBC DSN within MS Access 2007. This means that I need to setup and install an Oracle 11g 32-bit ODBC driver to be used against the Oracle 11g database (TNS listener also running 64-bit).
    Any thoughts on the best approach I should take to do this?
    Regards,
    Leigh.

    The more information section of the MS support article doesn't give me much to go on other than to explain the differences in how user and system DSNs are displayed and managed between the 2 different bit versions of ODBC administrator and how this information is stored in the different registries (64-bit and WOW64).
    I have been able to install 32-bit Oracle11g instantclient and its ODBC driver successfully and then in turn create the 32-bit ODBC DSN, however I am unable to connect to the 64-bit database when I attempt to test the DSN. I have updated the Windows PATH environment variable to include both the path of the Oracle11g DB server and instantclient homes as well as creating a TNS_ADMIN environment variable to point to the location of the Oracle11g TNSNAMES.ORA and the 64-bit 11g listener. However despite this I still get the error when testing the DSN:
    Unable to connect
    SQLState=S1000
    [Oracle][ODBC][Ora]ORA-12541: TNS:no listener

  • ODBC Connection problem with SQL Native Client driver with CR 11

    I am having an issue connecting my crystal reports to an ODBC connection that uses the SQL Native Client driver (Version 2005.90.2047.00).  My reports work fine when using the SQL Server driver (Version 2000.85.3006.00).   The ODBC connection is setup to use Integrated Windows Authentication and is defaulted to go to the correct database.  When I test the ODBC connection in the 'ODBC Data Source Adminstrator' it connects fine.
    The reports are trying to connect to stored procedures on a SQL Server 2005 database.  I can log onto the ODBC connection in CR X1.  When I try to set the Datasource connection for one of my reports to the ODBC connection I created, I get the following error:
    'Some tables could not be replaced, as no match was found in the new data source.  Please specify the table required for any unmodified tables.'
    When I drill down to the SP and try to update the datasource location of the SP directly I get the following errors:
    'Data Object cannot be opened/accessed'
    and
    'Unknown Database Connector Error'
    As I said, I don't have any problems when using the SQL Server 2000 driver.  One other thing to mention, when I initially connect to the ODBC connection in CR X1 with the SQL Native Client driver, it asks for a username and password.  I leave these blank since I'm using Windows Authentication.
    Any advice would be appreciated.
    System:
    Windows XP
    Service Pack 3
    Crystal Reports XI:
    Product Version 11.0.0.1282

    Hi Jeff,
    I just tried to create a new report using the native driver and there is no option to use Trusted Authentication. This would be why it's failing.
    I don't believe we fully supported Native driver in Cr XI. Try downloading CR Xi R2 and install SP6 from this info:
    Go to this link: http://www.sdn.sap.com/irj/boc and download the trial version of CR XI R2 and use your XI keycode, then apply the patches which you can get to by clicking on the BusinessObjects tab above, then Downloads.
    Direct link to the Trial version: http://www.sap.com/solutions/sapbusinessobjects/sme/freetrials/index.epx
    I tested it in R2 and the Trusted Authentication option is there so your reports should work.
    Thank you
    Don

  • RPAS ODBC connection problem

    I’m working on integration of OBIEE and RPAS, and I could use some help. Could anyone help me with a problem?
    I’m trying to connect the RPAS ODBC driver from my pc to the RPAS running in a Linux Virtual Machine.
    I’ve already connected that to the Management Console and, when I create an ODBC connection the Service Data Source names are presented to me (I think the connection is working). But, when I try to test the connection, I receive a message telling the connection was closed(dropped?) unexpectedly.
    any ideia of whats happening?

    Hi Jeff,
    I just tried to create a new report using the native driver and there is no option to use Trusted Authentication. This would be why it's failing.
    I don't believe we fully supported Native driver in Cr XI. Try downloading CR Xi R2 and install SP6 from this info:
    Go to this link: http://www.sdn.sap.com/irj/boc and download the trial version of CR XI R2 and use your XI keycode, then apply the patches which you can get to by clicking on the BusinessObjects tab above, then Downloads.
    Direct link to the Trial version: http://www.sap.com/solutions/sapbusinessobjects/sme/freetrials/index.epx
    I tested it in R2 and the Trusted Authentication option is there so your reports should work.
    Thank you
    Don

  • Solaris 10 x86 64-bit wireless connection problem

    I installed Solaris 10 x86 32-bit on my laptop together with Fedora 10 (Linux) and Windows XP.
    When I boot up Fedora 10 and WinXP, these two OS are able to find the wireless driver automatically, but Solaris 10 failed.
    When I do prtconf -pv, I saw my wireless card is listed in the output.
    So I update the /boot/solaris/devicedb/master and /etc/driver_aliases with my wireless card id - pci168c,001a
    Then do sys-unconfig and reboot
    But after reboot, Solaris still only tries to configure the ethernet card (NIC) rather than checking out the wireless connection.
    I think this might be a design flaw for Solaris 10. If it runs on x86, most users would have wireless connection, not just land line connection.
    Does anyone here have a solution for this problem?
    Thanks a lot!

    I assume that when solaris 10 boots up, it only checks the land line NIC card, not the wireless card. If there is no lan connection, then so be it.
    Is that right?No! :-)
    nwam only supports one device but the device is selectable. physical should activate all devices regardless. So if your Wifi isn't working then I would use wificonfig to see what it can see. Check the man page for scan and showstatus options. Then you'll know what it's seeing.
    alan

  • Linux 5 64 bit ODBC connectivity with MS SQL Server

    Dear All,
    Env.
    Oracle EBS R12 – DB 10gR2 64bit on Redhat linux 5.4 64bit
    We want to connect OracleDB10gR2 64bit to MS sql Server 2000 on Windows 2003.
    Is there any ODBC driver is available for Linux 64 bit
    Regards

    You need to create linked server in sql server 2000 Instance to connect to Oracle Database.
    Have a look at the following note
    http://support.microsoft.com/kb/280106
    It did worked for me before, when i connected sql server 2005 to connect to oracle 9.2.0.1
    The document should be helpful for you.......

  • Win 7, 64 bit USB connection problems

    I'm having real problems getting my Touch to reliably connect with my new Win 7, 64 bit Dell laptop. Dell tech support says the drivers and hardware are fine. Following the troubleshooting via Apple support hasn't solved the problem. The Touch times out and/or gives me -48, -6999 messages. Plus "required file cannot be found" messages. I've updated apple drivers, uninstalled/reinstalled iTunes.
    Will I have better luck moving to Win 7 32 bit?

    Not quite ... the chipset is an intermediate thing on the motherboard between the processor(s) and various parts of the other business:
    http://en.wikipedia.org/wiki/Chipset
    I found a reference at Notebookcheck saying that the 1557 had a PM55, which was sort of why I was thinking BIOS with your issue:
    [REVIEW DELL STUDIO 1557 NOTEBOOK|http://www.notebookcheck.net/Review-Dell-Studio-1557-Notebook.23009.0. html]
    ... but configurations can differ for Dells (and other PCs) on these things even "inside" particular models (not just ranges of models). So I'm not 100% sure that your particular 1557 has the sorts of 5-series chipsets that I worry about when I see your error messages on a Windows 7 system.

  • ODBC Connection problems

    If anyone can help, please do - I've been at this for 8 hours now and am no further forward!
    I'm trying to create a form with about 10 fields (2 of which are drop down lists) that users will enter data into over an intranet. The data should then go into an Access 2000 table sitting on a server.
    For the moment though, everything I'm doing is local to my own PC (no test environment)and I've created the ODBC links through system DSN. The connection tests fine, but when I try to link to my table within Adobe Designer (the OLEDB Connection Dialog box) I get a "Could Not Open Table "tablename"" error message.
    I've noticed that at this point, my access lock file appears in my file system but this shouldn't make a difference - I've written fairly complex sytems using basic Access built in tools but this is a flat file so should be simple (or so I thought). I also can't delete the lock file until I come out of the designer.
    I don't know where to start with XML, SQL or VB so everything I'm using is built into the software. I've read most of the forum postings and I'm hopeing that as a lot of you know much more about web technologies that this NewB you'd be able to help....
    Thanks in advance.
    Stephan Donnelly

    I have a simular problem when using following connection string there is a error:
    Provider=MSDASQL.1;Persist Security Info=False;Extended Properties="DSN=MS Access Database;DBQ=C:\Access2000\text.mdb;DefaultDir=C:\Access2000;DriverId=25;FIL=MS Access;MaxBufferSize=2048;PageTimeout=5;UID=admin;"
    Connection sor Source XXXXX faild because the environment is not trusted
    How can I make the environment trusted?
    /Ulf

  • Jdbc-odbc connectivity problem in[b] wsad5.1.2[/b]

    while i Try to access the msaccess database using sun.jdbc.odbc.JdbcOdbcDriver,the server is giving the error class not found....sun.jdbc.odbc.JdbcOdbcDriver......
    I have already rt.jar containing this class in my jre...
    The same thing i tried in wsad5.0 and it is working abs fine....
    If anyone has got a time to solve tis query plz help me out...
    Its urgent......

    well,i think nobody has interest in my question.I have asked two questions.
    1)Can anybody tell me the compatibilities of JDBC-ODBC bridge versions,oracle and ODBC drivers?
    2)And can u tell me how to connect to oracle through a pure Java JDBC drivers (type 4 drivers) on a standalone system?
    But u advise me not to use JDBC-ODBC bridge without studying the other part.

  • JDBC-ODBC connectivity problem

    hi ,i have a j2se 1.4.2 version installed on windows 2000 professional.i have j2me wireless toolkit 2.0,Oracle 8i(8.1.5),tomcat 4.0 running on system.I have tried to connect to the database in Oracle through JDBC-ODBC bridge but it becomes non-responsive.The same has been working well with Oracle 9i versions and also in Oracle 8i when ODBC driver is selected as Microsoft ODBC drivers for Oracle but not with Oracle drivers for Oracle.Can anybody tell me the compatibilities of JDBC-ODBC bridge versions,oracle and ODBC drivers? And can u tell me how to connect to oracle through a pure Java JDBC drivers on a standalone system?

    well,i think nobody has interest in my question.I have asked two questions.
    1)Can anybody tell me the compatibilities of JDBC-ODBC bridge versions,oracle and ODBC drivers?
    2)And can u tell me how to connect to oracle through a pure Java JDBC drivers (type 4 drivers) on a standalone system?
    But u advise me not to use JDBC-ODBC bridge without studying the other part.

  • Oracle 9i DB ODBC Connectivity Problem

    i have oracle 9i release 9.0.1.0.1 and i want to use the oracle 9i DB in my VB Appplication how can i connect to the DB and what driver should i use.

    You will need to install the Oracle client on whatever machine(s) your application will be running on. The Oracle client will include a version of the Oracle ODBC driver. You can download an updated version from OTN, you just need to make sure that you match the version of the driver and the version of the Oracle client, i.e. the 9.2.0.x Oracle ODBC driver should be used on a 9.2 Oracle client, the 9.0.1.x Oracle ODBC driver should be used on a 9.0.1 Oracle client.
    Realistically, it doesn't matter much which version of the Oracle client you use. All else being equal, I would probably install the 9.2 Oracle client, but if other versions of the client are already installed, I wouldn't sweat it too much.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • 11g 64-bit unable to create ODBC connection

    Hello,
    I am currently facing issue related to ODBC connection. Details of configuration is as follows
    OS: Vista 64 Home Premium
    Oracle DB 11g 64bit: ver 11.1.0.6.0,plus the addition of the fix for bug 7389110 (as per release notes)
    ODBC driver location: C:\app\oracle\product\11.1.0\db1\BIN\sqora32.dll
    It appears and works well from 32 bit ODBC connection manager. However, it's not visible/available from 64 bit ODBC connection manager. Oracle installation repository appears under 64 bit area ("Program Files") and not under "Program Files (x86)". Assuming it might be a problem with installation I have also tried copying registry entries under HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\ODBC with no luck.
    Any help to create ODBC connection is much appreciated
    Thanks,
    Hemant
    Please do not respond to this question here. I am moving it to ODBC forum area
    Edited by: user6868322 on Aug 5, 2009 2:04 PM

    Opening new tread under ODBC forum and closing this

Maybe you are looking for