T
tonyqus
In Sql Server, I can use syntax to insert a record with default value:
insert table1(a,b,c)values('A','B',default)
But in .Net, if I want to use default value in Adapter.InsertCommand,for
example,
SqlAdapObj.InsertCommand.Parameters.Add(New
SqlClient.SqlParameter("@testField"))
SqlAdapObj.InsertCommand.Parameters("@testField").Value=default
There is no "default" in C# language, so it says error occurred,what const
variable should I use to do so
insert table1(a,b,c)values('A','B',default)
But in .Net, if I want to use default value in Adapter.InsertCommand,for
example,
SqlAdapObj.InsertCommand.Parameters.Add(New
SqlClient.SqlParameter("@testField"))
SqlAdapObj.InsertCommand.Parameters("@testField").Value=default
There is no "default" in C# language, so it says error occurred,what const
variable should I use to do so