Click here to Skip to main content
15,897,518 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hi All,
I am facing a problem that i wrote a truncate statament to delete a table in stored procedure, and excutes it in another procedure. but when i run from the UI, it does not get fired and also rest of the statements.

Please suggest me how to get rid from this problem

Thanks
Lalit Kumar
Drish InfofTech Limited
Chandigarh
Posted
Comments
[no name] 4-Oct-12 13:04pm    
Since you did not choose to share the code that demonstrates your problem, run it through the debugger, examine the exceptions that you are getting, fix the code.
OriginalGriff 4-Oct-12 14:07pm    
AS Wes says - or use the "Improve question" widget to edit your question and provide better information, such as the SP you are talking about?

1 solution

Please re-phrase your question using "Improve question"
Let me know if following the below guidlines, if you are able to resolve your issue
1. Truncate statement do not delete table, but deletes/cleansof all rows at once
2. Check if the userid in connection string has the required permission in your DATABASE
3. last, is it part for some transaction which is getting rolledback always
 
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