Wrox Programmer Forums
Go Back   Wrox Programmer Forums > SQL Server > SQL Server ASP
|
SQL Server ASP Discussions about ASP programming with Microsoft's SQL Server. For more ASP forums, see the ASP forum category.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server ASP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 17th, 2004, 01:38 PM
Registered User
 
Join Date: Nov 2004
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Tried that:
strSQL="EXEC up_exp_date @client_id=1688,@exp_date='"&exp_date&"'"

I get the same error (string or binary data would be truncted).

The stored procedure runs fine in isql and query analyzer. Is it possible to tell with query analyzer if the db connection is being made via odbc or oledb? I fooled around with the connection parameters and the system information and could not reproduce the error with query analyzer.

so wierd.

-Terre
 
Old November 22nd, 2004, 07:27 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

If that works fine on Query analyser, it should do the same from ASP page too. Now lets move on to next step. On your ASP page, try this and post here the output that you see on your browser.
Code:
strSQL="EXEC up_exp_date @client_id=1688,@exp_date='"&exp_date&"'"
response.write strSQL
Response.end
Quote:
quote:Is it possible to tell with query analyzer if the db connection is being made via odbc or oledb? I fooled around with the connection parameters and the system information and could not reproduce the error with query analyzer.
I am not sure what connection parameters you refer to in case od query analyser.

Hope that helps.
Cheers!

_________________________
- Vijay G
Strive for Perfection





Similar Threads
Thread Thread Starter Forum Replies Last Post
Stored Procedures KeviJay VB Databases Basics 1 June 5th, 2008 07:17 AM
Stored Procedures itHighway SQL Server 2000 3 November 23rd, 2005 10:08 AM
Stored Procedures jazzcatone Classic ASP Databases 0 August 28th, 2005 02:57 PM
Stored Procedures stu9820 ASP.NET 1.x and 2.0 Application Design 2 January 15th, 2005 04:09 AM
Stored Procedures stu9820 Access 3 February 8th, 2004 01:13 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.