Click here to Skip to main content
15,914,419 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am trying to insert xml string to database calling stored procedure in classic asp page

it is giving this error 80040e14
str


sqlstr =EXEC sp_Save" & userid & ", 810 , ' " & strValue & " ' ,'" & Now() & "'"
cn.execute sqlstr

where strvalue contains xmlstring i generated

it is working fine on local database but gives error this on
VB
80040e14

server
Posted
Comments
Sandeep Mewara 28-Jun-12 2:46am    
What is value of 'strvalue'

Beyond that number, there is an error message. That number only tells: an error happened, something is worng with the SQL query.
When you deployed the database on the server, did you include the stored procedures?
How does strValue look like? - Does it contain a ' ?
Does the server use the same regional settings for dates as your local machine?
These are the points to check, and they will solve the problem.
 
Share this answer
 
ACtually there are single quotes in data which are causing problem
VB
Function StrQuoteReplace(strValue)
         StrQuoteReplace = Replace(strValue, "'", "''")
       End Function

used this before insert
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900