saving Sql results to Txt file from Asp
I been trying to save the results of a Sql query to a txt file from an asp.
I have been using the sample code from Msdn. Basically it goes like this.
db = "MyDB"
Querystring = "Select.."
Chan = SQLOpen ="DSN=" & MyDB
SQLExecQuery Chan, QueryString
SQLRetrieveToFile Chan, "C:\League.txt", true
I get a type mismatch error on the SQLExecQuery line.
The DSN is the same connection string that works on other asp pages, and
so is the querystring.
Any help in this area would be greatly appreciated.
Thanks In advance
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL