Skip to content

Instantly share code, notes, and snippets.

@65
Created March 5, 2012 08:55
Show Gist options
  • Save 65/1977530 to your computer and use it in GitHub Desktop.
Save 65/1977530 to your computer and use it in GitHub Desktop.
create coldfusion DSN via admin API
stDSN.driver = "MSSQLServer";
stDSN.name= "DBDSN";
stDSN.host = "192.168.101.109";
stDSN.port = "1433";
stDSN.selectmethod = "direct";
stDSN.database = "DBDSN";
stDSN.username = "DBUsername";
stDSN.password = "DBPassword";
// now create
dsObj.setMSSQL(argumentCollection=stDSN);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment