Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

sqlmetal.exe not found

Whenever i try to run sqlmetal, i get this:

'sqlmetal' is not recognized as an internal or external command, operable program or batch file

this is from both CMD and the Visual Studio Command Prompt

I've used sql metal many times on other machines, however it doesn't seem to work on this machine...

Am i missing something?

like image 559
Alex Avatar asked Jul 09 '09 18:07

Alex


3 Answers

The machine must have one or both of the most recent versions of the .NET Framework installed (either 3.0 or 3.5 I'm not sure which introduced sqlmetal.exe).

Additional information is available on MSDN:

The SQLMetal file is included in the Windows SDK that is installed with Visual Studio. By default, the file is located at drive:\Program Files\Microsoft SDKs\Windows\vn.nn\bin. If you do not install Visual Studio, you can also get the SQLMetal file by downloading the Windows SDK.

like image 61
Ray Vernagus Avatar answered Nov 13 '22 01:11

Ray Vernagus


On my machine it's at "C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin\SqlMetal.exe". You could look there for it, and/or once you find it make sure its location is in your PATH environment variable.

like image 37
Marc S Avatar answered Nov 13 '22 01:11

Marc S


in 2019 you can find it at C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.7 Tools.

Hope it helps for others

like image 3
RogerEdward Avatar answered Nov 13 '22 00:11

RogerEdward