Yes! It uses the DSN's in the Administrative tools folder (that's "Data Sources (ODBC)"). I suggest you look at the old server's Data Sources, and get ready to create a new Data Source on the new server.
Don't forget that on 64bit OS's that "Data Sources (ODBC)" bit is 64bit, but Domino uses the 32bit ODBC so you have to run odbcad32.exe in the \Windows\SysWOW64 directory if it's 64bit Windows. Happy happy joy joy.
The 32bit and 64bit ODBC Data Source Administrator are indistinguishable, so be careful. One way of telling them apart, is that there won't be any System DSN's in the 64bit one, when you expect there to be some. When that happens, think to yourself "am I running the 32bit version?".
Assuming you have the correct ODBC Data Source Administrator running, we want the system DSN's... Click on the System DSN tab. If you see stuff about Excel, and Access, you're in the wrong place.
To Create a new System DSN, press the "Add..." button. Or, push the "Configure..." button.
You will be presented with a (long) list of possible drivers. Scroll all the way to the bottom, and choose "SQL Server", then press "Finish".
Now the next few windows relate to setting up the DSN connection to the SQL server... First up is the Name of the System DSN. I think, from your code, yours will be called "OLEDB" or "sqloledb". Then press the "Next >" button.
Now we need to log into the SQL server. We need to change the authentication from Windows NT to SQL Server authentication, Then we enter the username and the password. Press the "Next >' button.
Now we specify the SQL database we're connecting to. Press the "Next >' button.
Finally, press the "Finish" button. (We don't change anything on this screen.)
Although, you can test what you've written in the next screen by pressing the "Test Data Source...", otherwise press OK.
Regards
Tim