Click here to Skip to main content
15,888,286 members
Home / Discussions / C#
   

C#

 
AnswerRe: SQL Server 2014 & SqlDataSourceEnumerator Pin
MooKowMyke30-May-15 20:37
MooKowMyke30-May-15 20:37 
AnswerRe: SQL Server 2014 & SqlDataSourceEnumerator Pin
Eddy Vluggen31-May-15 0:52
professionalEddy Vluggen31-May-15 0:52 
GeneralRe: SQL Server 2014 & SqlDataSourceEnumerator Pin
MooKowMyke31-May-15 17:20
MooKowMyke31-May-15 17:20 
QuestionHow to change datatype of a variable without changing its value ? Pin
Member 968349129-May-15 22:14
Member 968349129-May-15 22:14 
AnswerRe: How to change datatype of a variable without changing its value ? Pin
OriginalGriff29-May-15 22:59
mveOriginalGriff29-May-15 22:59 
QuestionNot able to insert my data into sql db. Getting that annoying null error! Pin
Norris Chappell29-May-15 7:15
Norris Chappell29-May-15 7:15 
AnswerRe: Not able to insert my data into sql db. Getting that annoying null error! Pin
Richard Deeming29-May-15 7:41
mveRichard Deeming29-May-15 7:41 
AnswerRe: Not able to insert my data into sql db. Getting that annoying null error! Pin
Sascha Lefèvre29-May-15 7:48
professionalSascha Lefèvre29-May-15 7:48 
Hey Norris,
please, for the love of cheese, first change your INSERT-statement to use Sql-Parameters, like I suggested you to do categorically in response to your first(?) post here. Simple example here: http://www.dotnetperls.com/sqlparameter[^]

- it prevents SQL-injection
- it makes your code more readable - for you and us
- it can prevent certain errors or make them easier to find

After you've done that there's a good chance the exception message will point to to the exact line so you'll see for yourself where the error is - otherwise please come back and post the reworked code and indicate the line at which the exception occurs.

You could also change it to instantiating the connection locally and using the connection and command object in using-blocks.

cheers, Sascha
If the brain were so simple we could understand it, we would be so simple we couldn't. — Lyall Watson

GeneralRe: Not able to insert my data into sql db. Getting that annoying null error! Pin
Norris Chappell29-May-15 8:14
Norris Chappell29-May-15 8:14 
GeneralRe: Not able to insert my data into sql db. Getting that annoying null error! Pin
Sascha Lefèvre29-May-15 12:33
professionalSascha Lefèvre29-May-15 12:33 
GeneralRe: Not able to insert my data into sql db. Getting that annoying null error! Pin
Norris Chappell31-May-15 8:41
Norris Chappell31-May-15 8:41 
GeneralRe: Not able to insert my data into sql db. Getting that annoying null error! Pin
Sascha Lefèvre31-May-15 8:58
professionalSascha Lefèvre31-May-15 8:58 
QuestionLoad specific userControl from DLL Pin
Jassim Rahma29-May-15 5:29
Jassim Rahma29-May-15 5:29 
AnswerRe: Load specific userControl from DLL Pin
Bernhard Hiller29-May-15 5:55
Bernhard Hiller29-May-15 5:55 
Generalvideo streaming mvc3 c#,html5 and jquery Pin
saiguttina29-May-15 0:25
saiguttina29-May-15 0:25 
GeneralMessage Closed Pin
28-May-15 23:39
Member 1172789928-May-15 23:39 
AnswerRe: help with calculator program Pin
V.28-May-15 23:45
professionalV.28-May-15 23:45 
AnswerRe: help with calculator program Pin
OriginalGriff29-May-15 0:08
mveOriginalGriff29-May-15 0:08 
QuestionSharePoint Pin
Armugam Indrani28-May-15 22:41
professionalArmugam Indrani28-May-15 22:41 
AnswerRe: SharePoint Pin
Eddy Vluggen29-May-15 2:50
professionalEddy Vluggen29-May-15 2:50 
QuestionTCP Heartbeat background Thread Pin
MooKowMyke27-May-15 21:50
MooKowMyke27-May-15 21:50 
AnswerRe: TCP Heartbeat background Thread Pin
Eddy Vluggen29-May-15 2:57
professionalEddy Vluggen29-May-15 2:57 
GeneralRe: TCP Heartbeat background Thread Pin
MooKowMyke29-May-15 7:57
MooKowMyke29-May-15 7:57 
GeneralRe: TCP Heartbeat background Thread Pin
Eddy Vluggen29-May-15 11:16
professionalEddy Vluggen29-May-15 11:16 
GeneralRe: TCP Heartbeat background Thread Pin
MooKowMyke30-May-15 21:26
MooKowMyke30-May-15 21:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.