Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

cftransaction causes login failed for user '(null)'

Status
Not open for further replies.

j9

Programmer
Jun 6, 2001
90
US
CFMX 6.1,Win2k,IIS5

When using cftransaction tags, I receive the following warning in the CF application.log file: [Macromedia][SQLServer JDBC Driver][SQLServer]Login failed for user '(null)'. Reason: Not associated with a trusted SQL Server connection.

It is only a warning and does not prevent my queries from executing. A corresponding error is found in my SQL Server log. The problem disappeared when I removed the cftransaction tags.

Does anyone know of any problems with cftransaction?

Thanks!
 
It happens on every page that uses cftransaction, regardless of the cftransaction attributes that are used.

Also, I forgot to note that the problem does NOT happen if the database username and password are set in the CF Administrator instead of within the <cfquery> tag.

Here's some code:
<CFTRANSACTION>
<CFQUERY NAME=&quot;qUpdate&quot; DATASOURCE=&quot;#myDataSource#&quot; USERNAME=&quot;#myLogin#&quot; PASSWORD=&quot;#myPassword#&quot;>
UPDATE Student
SET NameLast = '#form.NameLast#',
NameFirst = '#form.NameFirst#',
NameMiddle = '#form.NameMiddle#'
</CFQUERY>
</cftransaction>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top