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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Tip: ColdFusion, SQL Azure, and embedded SQL 1

Status
Not open for further replies.

TimeTraveler

IS-IT--Management
Nov 20, 2001
99
US
So you saw the other tip on configuring the driver for the datasource for using SQL Azure with ColdFusion 9.

Here is the next part.

Any embedded queries or stored procedures will likely cause some errors at some point without the following modifications. Mostly this applies to the embedded SQL between the CFQUERY tags.

BEFORE SQL AZURE
Code:
<CFQUERY NAME="myQry" ...>
SELECT * FROM foo WHERE ...
</CFQUERY>
AFTER WORKAROUNDS APPLIED
Code:
<CFQUERY NAME="myQry" ...>
SET NOCOUNT ON
SET ANSI_WARNINGS OFF
SELECT foo.[col1], foo.[coln], ... FROM foo WHERE ...
</CFQUERY>
<CFPARAM NAME="myQry.recordCount" DEFAULT="0">


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top