I am tasked to get the location where our SQL Server database is geographically located via C# code because it may vary time to time due to frequent relocation of our database to protect it from physical and cyber harm. Is this possible or another dream of my boss thanks in advance.
Share
1 – Buy somethihng like this. It’s a UPS GPS receiver.
2 – Connect it to the server machine.
3 – Write a batch or shell script that will call the GPS software and return the current position.
4 – Use
xp_cmdshellto call this script and return the current position via SQL Server query.