If a second computer uses Windows OS, then you don't need to install your application on that computer. Just copy executable file ;)
If you use SQL server database and want to connect it via LAN, you need to
enable SQL Server TCP/IP connections[
^].
Remember to check connection string as Murugan Kolanji mentioned.
Next time, please be more specific and provide more details.