SQLCMD for windows 2003 - sqlcmd

I need to install SQLCMD utility on a windows 2003 Standard Edition SP 2 server. I tried to install download it from http://www.microsoft.com/en-in/download/details.aspx?id=36433. When I try to install, it asks for ODBC driver 11 for SQL Server. This driver is available at http://www.microsoft.com/en-in/download/details.aspx?id=36434. However this is not supported for Windows 2003 OS. I tried to look for the older version of SQLCMD utility that might use an older driver compatible with Windows 2003 server, but could not find it.
Can you pls. suggest any alternative or give any other suggestion?

Faced the same problem, solution that worked for me on my server 2003:
First installation of sqlncli.msi from https://www.microsoft.com/en-us/download/confirmation.aspx?id=16978 (you have to expand the Install instructions)
Then installation of SqlCmdLnUtils.msi (different from MsSqlCmdLnUtils.msi which failed) from the same page https://www.microsoft.com/en-us/download/confirmation.aspx?id=16978

Related

How to install Microsoft.Ace.oledb 32 bit with Office 64-bit?

I was trying to create a SSIS package where i want to upload an excel file into my DB but its giving me an error that
Microsoft.ACE.Oledb.12.0 is not registered on your local machine
I have installed the 64-bit version of the MS Access Engine and it perfectly installed but after that i am still unable to create DTS package.
I have searched over the internet and found that there are two versions available for this and i have downloaded both and when i try to install the 32-bit version of the Access Engine it gives me error
You cannot install the 32-bit version of Microsoft Access Database Engine 2010 because you currently have 64-bit Office products installed.
Please help me on this i am really looking forward to it.
Somehow late to the party but nevertheless:
source
To install the Microsoft ACE OLEDB Provider 32-bit on a machine running Office 2010 64-bit:
install using cmd with the following command:
$yourPath$\AccessDatabaseEngine.exe /passive
This solution no longer works. It seems to have changed so instead of /passive, now the install requires /quiet
This solution works when installing ACE 32bit on with 64bit Office $yourPath$\AccessDatabaseEngine.exe /quiet
Thank you sir
I'm having this issue to and I tried to use the /quite but it's stating that The system cannot find the path specified.

Using the correct mySQL ODBC driver in windows

I am trying to connect MS Access with a local mySQL database.
To do this I downloaded the mySQL ODBC connector from the mySQL website and installed it. As I am on a 64-bit system I went for the 64-bit version.
I then discovered when trying to connect Access to mySQL that my installation of Office is actually 32-bit so the driver doesn't work. So I removed the 64-bit ODBC driver and installed the 32-bit one.
Problem is, when I go into control-panel -> Administrative Tools -> Data Sources (ODBC) and try to add a new data source, the only options for the mySQL drivers seem to point to the old directory where the 64-bit drivers were. It then fails as it can't find the dlls with system error 126.
How do I get it to show the 32-bit drivers?
Run the 32-bit manager by running this command:
c:\windows\syswow64\odbcad32.exe
Also you can use RegisterDatabase() function to create connection from your code.
I wrote wrapper function many years ago:
http://5codelines.net/kak-programmno-sozdat-odbc-dsn/.
Just skip russian language and use the code.
Prior to installing the ODBC MySQL driver 5.2.6 you need to install the Microsoft Visual C++ 2010 Redistributable Package for x64 or x86 or both (just search the Microsoft site for these and download from there). Other driver versions may require different versions of this MS VC++ Redist. Package, which can coexist side by side. By default server 2008 R2 comes with the 2008 version, so installing the 2010 is required. Before installing check in Programs and Features if not already installed. Depending on you application it may require the 32 bit or the 64 bit version. Without it you get the system error 126
Then install the drivers:
To install the 32 bit version run as administrator c:\windows\syswow64\odbcad32.exe which is the 32 bit version of "Data Sources (ODBC)"

SQLNCLI10 Provider with windows 8

I'm facing a trouble with Windows 8.
I've an application in VB6 using SQL Server 2008 through the net with SQLNCLI10 provider, which I always install with sqlncli10.msi, but when I tried to install in a PC with Windows 8, I can't... said something it's no more supported.
I use ADO for connection, and the string connection is:
Provider=SQLNCLI10;Server=SERVER\SQLEXPRESS;Database=MyDataBase;
Any ideas?
Are you installing on a 64-bit machine? If you are, you may need to create a reference directly to the C:\Windows\SysWow64\sqlncli.dll.

How to install Microsoft.ACE.OLEDB.12.0 on Win7 64b with SQLExpress 2008

I was running VSExpress 2010 C# and SQLExpress 2008 on 32b XP. Due to a failure I am now on Win7 64bit. I have reinstalled VSExpress C# (64b). I installed SQLExpress (64b) however my application uses the Microsoft.ACE.OLEDB.12.0 driver to connect to a Office 2007 (32b) database. I could not get the Microsoft.ACE.OLEDB.12.0 to load on SQLExpress (64b).
What do I need to do to get Microsoft.ACE.OLEDB.12.0 working again in SQLExpress? Do I need to run the 32bit version? (I have downloaded it but am having problems getting it to install so I am asking while I uninstall all of my SQLExpress)
Thanks for the help. (I saw a lot of similar issues addressed but could not find a solution for my specific problem)
I think this post has the answer you're looking for -- download 64-bit version of ACE OLE DB driver. However, apparently it requires installing 64-bit version of Office as well.
Otherwise go and install WoW-enabled 32-bit version of SQL Server 2008 Express. Go to this download page and download SQLEXPR_x86_ENU.exe (note: the one without 32 in the file name). It should install on 64-bit system.
I had the same problem and couldn't install the 64 version because I have 32 bit office installed as well (so the 64 bit installed terminated). I changed the build of my program to x86 instead of AnyCPU and the 32 bit ACE worked as given in this Stack Overflow question
If you are trying to use the 32bit version you will probably need to install the 32 bit version of the Microsoft Office Database engine. However if you have 64bit office installed this will show a message saying that 64bit is already installed.
If you install the Microsoft Office Database engine using the "/PASSIVE" command line argument it will install without the prompt, and then you can use the 32 bit ACE.OleDB.12 driver.
Beware in some situations this can cause complications with Office 64bit.
I had to install the Access 2007 Runtime to fix this. Here: https://www.microsoft.com/en-us/download/details.aspx?id=4438

Connecting MySQL with Crystal Reports v10

I am new to Crystal Reports v10 and I'm creating reports to embed in Visual Studio 2010 forms. The database server I'm using is MySQL. I have some issues regarding to creating new connection in crystal reports. Based on what I've read, I should select the ODBC in order for me to connect it to the MySQL. However, when I select ODBC and LocalServer and enter the username and password an error message occurred and shows Logon Failed. Am I doing it right? Is there anything you could help me please?
I already installed the MySQL Connector/ODBC 5.1
You need to install the MySQL ODBC Connector.. Create an ODBC data source from the Administrative Tools \ ODBC Data sources control panel. It will then be available in Crystal Reports.
You must download the appropriate version of mysql odbc connector since there are two of them:
mysql odbc connector Windows (x86, 32-bit), MSI Installer)
mysql odbc connector Windows (x86, 64-bit), MSI Installer)
if 64-bit doesn't run, try to uninstall it and try the 32 bit msi Installer
http://dev.mysql.com/downloads/connector/net/