J
Jan Erik Hansen
I have a function with a dynamic sql block like this (fieldname and
fieldvalue are input parametrs to the function) :
strSQL = "UPDATE myTable SET " + fieldname + "=" + fieldvalue +
"' where myID = " + knr
I have to determine whether fieldname is a string or numeric to get the
correct
SQL syntax.
What is the fastest way to do this? (Code example is very helpful.)
I use SQL server 2000 and vb.net
Jan Erik Hansen
Oslo,Norway
fieldvalue are input parametrs to the function) :
strSQL = "UPDATE myTable SET " + fieldname + "=" + fieldvalue +
"' where myID = " + knr
I have to determine whether fieldname is a string or numeric to get the
correct
SQL syntax.
What is the fastest way to do this? (Code example is very helpful.)
I use SQL server 2000 and vb.net
Jan Erik Hansen
Oslo,Norway