System DSN for SQL Server to connect through ODBC with for a specific port Earlier we were using default port number on the SQL Server and import of registry was working fine when configuring the clients to connect through ODBC. Recently we moved to new server where the SQL Server port is not the default one. We have around 300 client where this change needs to be made. Due to this we are looking for the best way to reconfigure the SYSTEM DSN's. The registry file content is as below, 

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\ODBC\ODBC.INI\ODBC Data Sources]
"SQLtest"="SQL Server"

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\ODBC\ODBC.INI\SQLtest]
"Driver"="C:\\WINDOWS\\system32\\SQLSRV32.dll"
"Description"="SQLtest"
"Server"="BLR002\\MAINT"
"Database"="Maint"
"LastUser"="sa"


Please let me know how to include the specific port number as well into the registry or what is the alternative method that can be used.
To specify a non-default port number, add a comma and the port number after the server name. For example, with a port number of 12345:

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\ODBC\ODBC.INI\SQLtest]
"Driver"="C:\\WINDOWS\\system32\\SQLSRV32.dll"
"Description"="SQLtest"
"Server"="BLR002,12345"
"Database"="Maint"
"LastUser"="sa"


If the SQL instance is a named instance (named MAINT) like the DSN in your question shows, you should be able to connect using with your original DSN specification instead of port as long as the SQL Server Browser service is running on the server, UDP port 1434 allowed through the firewall on the server, and the instance port allowed as well.