OLEDB 12.0 is not installed on local machine (ACE Driver) - sql-server

I have this system configuration
Windows Server 2012 - 64 bit (Amazon EC2)
SQL Server 2012 - (Amazon RDS)
On EC2 I am trying to run a utility which will import the data from an excel to SQL Server(RDS) through SSMS.
I was getting an error "OLEDB 12.0 was not registered", I installed ACE driver on EC2. It didn't work.
The Problem which I think is since my SQL server is on different machine i.e RDS. My installed driver cannot add excel importing capabilities to it(I am using openrowset).
I cannot install the ACE driver on RDS since it's just a database.
Can anyone help me in getting a solution to it? Thanks in Advance.
If I do it on a machine which is hosting SQL server and install ACE Driver on it. It works like a charm.

The Problem was amazon RDS is just a database. So ACE driver service was running on EC2 but not on RDS. In order to work the flow of importing the ace driver should interact with services running on RDS. So I figured out two solutions for it:
1.) Move my database on EC2.
2.) Run this import process on separate machine, Generate Scripts and run through ssms on EC2 to get it stored in RDS.

Related

How to download sql server driver using azure dev ops/ pipelines

I am connecting to SQL server using the library pyodbc. I downloaded the driver locally using the following https://learn.microsoft.com/en-us/sql/connect/odbc/download-odbc-driver-for-sql-server?view=sql-server-ver16. All my code now works and I want to run it on azure. Is there an azure pipeline task to download the same driver am using locally? do I include it in a script?
If you use Microsoft-hosted agents to run the pipeline, normally you do not need an extra step to install the ODBC Driver:
On windows-2022 (windows-latest) agent, it has the component "Microsoft.VisualStudio.Component.MSODBC.SQL v17.2.32408.312" installed.
On windows-2019 agent, it has the component "Microsoft.VisualStudio.Component.MSODBC.SQL v16.0.28625.61" installed.
If you use self-hosted agent which installed on your local machine or VM, you can login to the machine, then manually download and install the required ODBC Driver version.
Are you planning to run on a hosted agent? If so it should already have the sql server ODBC driver installed. You can confirm this by configuring a new pipeline on a hosted agent and running the following in a powershell task
Get-OdbcDriver

developing Microsoft Sql locally on mac

I've got a project where I have to work with Microsoft SQL which is new for me.
I already made a lot with MySQL server and database. Is there a way to developpe on a Mac OSX with a local MS SQL database and XAMPP or something like that?
SQL Server's database engine only runs on Windows. You can find a spare Windows box to run it, or host the machine with VMWare Fusion / Parallels.
Oracle SQL Developer can serve as a replacement for SSMS on Mac.

Connecting localhosted drupal 7 with remote SQL Server 2000 database or Oracle 10g

I have installed XAMPP in my local system.I have a remote system with SQL Server installed. How can I connect to this server from Drupal that is running in my local system with XAMPP server? My operating system is Windows XP. Is it possible?
Is it possible to connect remote oracle10g database.
I assume you have Drupal up and running backed by a MySQL/MariaDB database, and now you would like to connect to a remote Oracle database through a custom module of yours. If my assumption is correct, then have a look at db_set_active() for how to switch between databases.
If you would like Drupal to be backed by an Oracle database, as opposed to a MySQL/MariaDB, then I'd say you should have a look at the Oracle driver project for Drupal. I haven't tried it myself, but it might be the best place to start.

DB Connection Slow when using SQJDBC4 Driver on VMWare

I am facing a peculiar problem.
Application Details
Java : Jre 1.6
Db: MS SQL 2008 R2 (On Vmware)
OS: Windows 2008 R2 (On Vmware)
Problem:
Whenever i am trying to connect to the database using sqljdbc4.jar it takes almost 5 seconds to make a connection.
But if i use jtds driver it connects instantly.
Now if i try to connect to a similar database hosted on single physical server it connects instantly using both the drivers.
Please help me if any body has faced this issue.
Sorry.. Had got wrong information about the connection driver being used. Configured the application with sqljdbc4.jar and the issue was resolved.

Acessing Remote SQL Server from Visual FoxPro Application

Dear StackOverflow readers i would like your kind attention towards my one of the problem:
I have a Visual Foxpro application, in which i am accessing a remote SQL Server's Stored Procedure. Everything is working fine when I am installing the SQL Express 2008 in my Client Machine along with the FoxPro Application.
But when I am not installing the SQL Server On client Machine along with the visual FroxPro Application then I am getting a error " SQL Connect Error", Cannot Make Connection.
Is their any way that i don't have to install the whole SQL Express on client machine and i can only install the required libraries.
Regards
ProgChd
You should not have to install SQL Express itself, but at least ensure that you have the ODBC / OleDB providers for SQL Express. These can use SQL-Server connection which are somewhat common to already be on the machine.
As for your connection string, are you connecting via the fully qualified \server\database hosting information?
Just for grins, you could go through the machine's
Control Panel
Administrative Tools
Data Sources ODBC
and try to manually create an ODBC connection to the SQLExpress server you are trying to do via your VFP application. If you can't connect through that, then neither will VFP. Take the VFP app out of the equation and just test for the connection.

Resources