Click here to Skip to main content
15,890,932 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi all,
can we display message or some type of prompt, if specific condition get satisfied through store procedure or sql function???? :doh:
My application is in VB.NET. I am using a SP to update my database,but at the same time it should check valid data and if data validation failed querry should give me error message...
Posted
Updated 16-May-10 23:57pm
v3
Comments
Sandeep Mewara 17-May-10 2:09am    
you need to be more clear on what you want. Display message where? in SQL or Application? Better would be to explain your situation and what you are trying.

1 solution

You can play a little bit with PRINT or provide some dummy column(ie. select 'abc' as some_dummy_column) and see what is output from SqlCommand. I was able to do this on delphi
(i was able to see progress on Backup for example, but that was built in) but haven't tested it on .NET (but it is ADO so it should be also posible).
 
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