Click here to Skip to main content
15,888,251 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
hi to all.
i wanna show result of a insert query that is writed by user to user.
my host language is asp.net and my database is sql server.
how can i do it?

thanks for all readers.
Posted
Comments
[no name] 13-Jun-13 15:40pm    
What sort of a "result" is it that you expect to get from an INSERT query?
Richard C Bishop 13-Jun-13 16:33pm    
ASP.Net is not a language, it is a platform. You can choose C#, VB, C++, or F# as a language.
Christian Graus 13-Jun-13 23:07pm    
ASP is not ASP.NET, they are different. If the client writes the insert query, that sounds pretty dangerous, how do you know it's not a delete query ? In any case, the only possible result is the number of rows added, which you get back from ExecuteScalar, so you can call that, then show it.

The link The SQL INSERT INTO Statement[^] will explain to you all the things.Just refer to this.

Regards.. :laugh:
 
Share this answer
 
v2
hopefully this will help you:
http://www.w3schools.com/sql/sql_insert.asp[^]
 
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