Which dll's are required to run osql.exe as a standalone? - command-line

According to the accepted answer to this question, the osql.exe utility can be run as a standalone program on a computer without SQLServer, simply by copying the binary file to the new computer. My question is, however, which other files need to be copied along with osql.exe for it to work?
Thanks so much!

This utility uses ODBC to communicate with the server.

A good tool for finding the answer to this question is Dependency Walker
And running depends.exe on osql.exe for SqlServer 2008 64 bit reveals the dependencies msvcr80.dll and odbc32.dll. And those DLLs are very likely to be installed already.

Related

Exporting planet.osm.pbf into PostgreSql

could someone help with this? I found only this: http://wiki.openstreetmap.org/wiki/Osm2pgsql
and this:
http://learnosm.org/en/osm-data/osm2pgsql/ but
windows binary was removed, and I never use cygwin or linux bash.
Actually I've installed Postgresql with postgis, and downloaded planet.osm.pbf.
I need some advice how to proceed with Osm2pgsql, wich will be helpful for newbie. Thanks
I would suggest running a an Ubuntu Server (14.04 or 16.04) and following the instructions here:
https://switch2osm.org/serving-tiles/building-a-tile-server-from-packages/
You can run this on a Virtualbox from your windows machine.
The reason I suggest this is that you will only make things more difficult for yourself trying to install on windows.
I myself was completely new to Linux before I installed my MapServer, and I found it really easy to follow.
Osmosis can also do imports of osm (pbf) file to postgres DB with postgis extension. http://wiki.openstreetmap.org/wiki/Osmosis

Unable to register dll using regsvr32:The module "*.dll" failed to load

There is a similar question from stackoverflow. But I didn't find that the answer is helpful. I also used Google searched the websites, I have watched here and here.
I have tried the method they told to solve this problem but not got a satisfied answer.
My operating system is 32-bit Window 7. Noncircle.dll is generated by Matlab version 2010a in another machine which installed Matlab. I tried to add Noncircle.dll as a reference in a project written in C#(I didn't install Matlab on my computer), but Visual-Studio 2010 told me the error:
So I doubt that Noncircle.dll maybe have to be registered. So I put Noncircle.dll in C:\Windows\System32 and started Cmd.exe as a administrator and typed:
regsvr32 Noncircle.dll
Then I got an error:
"The module "Noncircle.dll" failed to load.Make sure the binary is sorted at the
specified path or debug it to check for problems with the binary or depenedent
.DLL files.The specified module coudl not be found."
Could you give me some hints, Thanks in advance!
Updated on 2012/10/18
But if I have installed Matlab version 2010a on my machine, this problem is solved.
I just had the same issue.
If you're running 64-bit Windows and you've placed the 32-bit DLL in Windows\System32\ then it'll give you this error.
Simply place the DLL into Windows\SysWOW64\ and register it from there.
Here's where I found the fix:
http://csi-windows.com/blog/all/73-windows-64-bit/378-fixing-qregsvr32-the-module-failed-to-load-the-specified-module-could-not-be-foundq
First of all try to use RegDllView, to see whether there is actually a COM server registered in the system.
Also check whether this DLL is a COM component.
I know its too late... but I am adding my solution for others because I faced the same error after following above mentioned answers:
"I just had the same issue.
If you're running 64-bit Windows and you've placed the 32-bit DLL in Windows\System32\ then it'll give you this error.
Simply place the DLL into Windows\SysWOW64\ and register it from there."
If you are facing same error after placing DDL to SysWOW64, then you need to turn on MSMQ feature.
Go to Start ->
Search "Turn Windows features on or off" ->
Find "Microsoft Message Queue(MSMQ) Server" and Enable it.
Now, register the same DLL again and this time it will be registered

ADPlus.exe with Windows debugging tools - what's funcationlity difference if compare to ADPlus vbscript

I have installed the new version of Windows debugging tools and I got a AdPlus.exe. I don't know if there are any changes but I remember when I installed it sometime ago on another computer, what i got was a ADPlus as vbscript file ( and not an executable). In the installation directory I still see there is a vbscript file but does any one know what is the difference between executable and vbscript. Thanks
According to this "what's new" article, they seem to be pretty much the same in that the vbs can still be used if you don't have .net framework 2.0 installed on the machine. That's not to say that there isn't something extra in the tool. You could find out by checking out adplus.doc in that same folder.

Running java without installing jre?

As asked and answered here, python has a useful way of deployment without installers. Can Java do the same thing?
Is there any way to run Java's jar file without installing jre?
Is there a tool something like java2exe (win32), java2bin (linux) or java2app (mac)?
You can use Launch4j for this. Well documented and easy to use. While the resulting program still needs a JRE to run, you don't have to install the JRE on the target system. You can just copy it with your application and tell Launch4j were to find it or just wrap it up with everything else.
For creating native executables, you can use Excelsion Jet, which compiles Java to native code. We used it for a project at work, and we had to perform zero modification to the original source code (which targetted Sun's JDK).
you can embbed the JRE inside your application and create a setup or installation for your application.
You can have a look at
http://www.bearcave.com/software/java/comp_java.html
You might get it what you want.
You might want to check out how Eclipse does it - it has a native .exe that can use a local (to the installation) JRE.
You might be able to get some luck with GCJ - haven't tried it myself.
You can do it with NetBeans and a couple of tools. The result is a standalone installer that packages everything you need, so your software can run without installing JRE. It is also completely portable, because it install your software on AppData, that is, it does not need privileges to be installed. Maybe you can even configure the installation path, or you can install it on your own PC, locate the folder and copy it to distribute your software in that way.
Check the Answer I made on different post
You can use jlink to create your own customized jre which would contain only those dependencies which are needed for execution. This deployment method is really efficient. please follow **this**link for one such example.

How do find out what libraries a windows exe uses?

I have a 3rd party application that doesn't come with an installer. It's a very small exe, a simulator.
Anyhow, it crashes on startup due to some missing libraries. But the error doesn't tell me which ones. Is there an application on windows that tells me which libraries are going to be loaded at program load time?
It's been a few years since i've used it but Dependency Walker got me through a lot of DLL hell.
Also, Process Explorer is a great and fast way to see what DLLs are loaded by an EXE on a test machine... for comparison purposes when hunting down missing DLLs.
Only a partial answer: DEPENDS.EXE tells you what dlls a dll needs. I think it works for EXE's too.