Is there a way of connecting and inserting data to a local SQL Server table through a batch file.
The table looks like on the database , ID | compName | availDiskSpace
For example, this would hold the local computer name and available space on the machine.
@echo off
set computerName = computer123
set diskSpace = 2GB
sqlcmd -S server1\SQLExpress
Is it possible to insert these variables to the SQL table with an INSERT, I know i can use SELECT to select data but cantfind anywhere that shows INSERT .....Thanks