Many database configurations require authentication (in the form of a username and password) before you can query the database. You can supply these using the username and password attributes.
Note: the username and password can also be configured against the datasource in the ColdFusion Administrator. Supplying these details in your query overrides the username and password in the ColdFusion Administrator.
<cfquery datasource="Entertainment" username="webuser" password="letmein">
select *
from Movies
</cfquery>