Need setMSSQL adminAPI help
I am running CF2016 with MSSQL 2016 Express Edition on a development server.
I have the following script:
<cfscript>
bLoggedIn = createObject("component", "cfide.adminapi.administrator").login('#cfadminpassword#');
myDatasourceObj = createObject("component", "cfide.adminapi.datasource");
if (bLoggedIn == FALSE)
writeoutput('not loggged in');
else
writeoutput('logged in');
//cfdump(var=myDatasourceObj.setMSSQL);
myDatasourceObj.setMSSQL(
driver="MSSQLServer",
name="my_dsn_name",
host="localhost",
port="1433",
database="my_db_name",
username="my_db_username",
password="my_db_password"
);
</cfscript>
It shows I am logged in just fine to the adminapi, but I get this error when I try using setMSSQL:
-1 : Unable to display error's location in a CFML template.
The error occurred in setdsn.cfm: line 13
Called from setdsn.cfm: line 9
Called from setdsn.cfm: line 1
Called from datasource.cfc: line 580
How do I debug this? When I use CF Admin and use the same credentials everything works just fine, I am stumped at why it won't work via code. Any thoughts or suggestions on where to start looking would be great.
