- Joined
- Jan 8, 2012
- Messages
- 66
- Reaction score
- 5
It's so boring to add odbc settings for each new RF server installation so I've made simple bat script to add odbc settings. Server requires only user DSN, so it just add it.
Default dbs are BILLING, RF_User, RF_World. If you want to change it - edit it in bat file
Bat file download:
Script itself:
Default dbs are BILLING, RF_User, RF_World. If you want to change it - edit it in bat file
Bat file download:
You must be registered to see links
Script itself:
Code:
[USER=2000306500]Echo[/USER] off
set bil=BILLING
set acc=RF_User
set wld=RF_World
%WINDIR%\System32\odbcconf.exe CONFIGDSN "SQL Server" "DSN=%bil%|Description=|SERVER=(local)|Trusted_Connection=Yes|Database=%bil%"
%WINDIR%\System32\odbcconf.exe CONFIGDSN "SQL Server" "DSN=%acc%|Description=|SERVER=(local)|Trusted_Connection=Yes|Database=%acc%"
%WINDIR%\System32\odbcconf.exe CONFIGDSN "SQL Server" "DSN=%wld%|Description=|SERVER=(local)|Trusted_Connection=Yes|Database=%wld%"