Thanks for that. I don't suppose you know any code to update a datasource cfc?
Never done anything like this before. I want to do something like:
update myDSN and set password = myNewPassword
Help much appreciated.
this is right out of the docs. i'd setup a dsn & practice on it. as you can
see, mm did a good job making this sort of thing pretty easy.
<cfscript>
// Login is always required. This example uses two lines of code.
adminObj = createObject("component","cfide.adminapi.administrator");
adminObj.login("admin");
// Instantiate the data source object.
myObj = createObject("component","cfide.adminapi.datasource");
// Create a DSN.
myObj.setMSSQL(driver="MSSQLServer",
name="northwind_MSSQL",
host = "10.1.147.73",
port = "1433",
database = "northwind",
username = "sa",
login_timeout = "29",
timeout = "23",
interval = 6,
buffer = "64000",
blob_buffer = "64000",
setStringParameterAsUnicode = "false",
description = "Northwind SQL Server",
pooling = true,
maxpooledstatements = 999,
enableMaxConnections = "true",
maxConnections = "299",
enable_clob = true,
enable_blob = true,
disable = false,
storedProc = true,
alter = false,
grant = true,
select = true,
update = true,
create = true,
delete = true,
drop = false,
revoke = false );
</cfscript>
mighty wayward - 21 Sep 2005 11:33 GMT
Hi
Thanks for getting back to me. Much appreciated.
I'm using your code, adjusted to fit my needs:
<cfscript>
// Login is always required. This example uses two lines of code.
adminObj = createObject("component","cfide.adminapi.administrator");
adminObj.login("myAdminPassword");
// Instantiate the data source object.
myObj = createObject("component","cfide.adminapi.datasource");
// Create a DSN.
myObj.setOther (
name="myDSN",
url="jdbc:teradata://myDSN",
class="com.ncr.teradata.TeraDriver",
driver="JDBC Driver myDSN",
username = "myUsername",
password = "myDSNPassword",
encryptpassword="false",
description="testing 1-2-3",
selectmethod="direct"
);
</cfscript>
And I'm getting this error message:
There has been an error while trying to encrypt or decrypt your input
string: The input and output encodings are not same..
I've played about with the the encryptpassword parameter, but no luck there.
I take out the password parameter, it works OK. I'm stumped. Any ideas?
Thanks again,
Neil