Click here to Skip to main content
15,881,882 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
in sql server i have a table called question
in that following fields

question number question type question
1 simple e=mc square
2 complex a square plus b square rootover x

here question type can be simple and complex
if question type is simple then simple equation will be stored in question
if question type is complex then complex equation will be stored in question.

how to do in vb.net to store data in sql server.
i know that the question field in sql server will be nvarchar
but in vb.net how to send the equation to this field

What I have tried:

i have tried inserting records from vb.net form to sqlserver. also retrive records from sqlserver to vb.net form. i do knot know how to put equations in text box and store in vb.net
Posted
Updated 29-Mar-17 21:42pm
v2
Comments
Tomas Takac 30-Mar-17 3:42am    
Do not shout! Converted all text to lower case.
Richard Deeming 30-Mar-17 12:12pm    
The nvarchar type in SQL maps to the String type in VB.NET.
CodeMine 31-Mar-17 0:54am    
thanks richard its working

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