Home > Net >  SQL server, c #
SQL server, c #

Time:10-07

C # how to invoke the data type is a datetime data type of the stored procedure?

CodePudding user response:

Using (SqlCommand command=new SqlCommand ("... ", connection))
{
Command.Com mandType=System.Data.Com mandType. StoredProcedure .
SqlParameter parameter=command. The Parameters. The Add (" @... , " System. Data. SqlDbType. DateTime ).
The parameter Value=https://bbs.csdn.net/topics/DateTime.Now;
.

CodePudding user response:

reference 1st floor github_36000833 response:
using (SqlCommand command=new SqlCommand ("... ", connection))
{
Command.Com mandType=System.Data.Com mandType. StoredProcedure .
SqlParameter parameter=command. The Parameters. The Add (" @... , " System. Data. SqlDbType. DateTime ).
The parameter Value=https://bbs.csdn.net/topics/DateTime.Now;
.

A class parameter. The Value is? I don't knock out ah

CodePudding user response:

reference 1st floor github_36000833 response:
using (SqlCommand command=new SqlCommand ("... ", connection))
{
Command.Com mandType=System.Data.Com mandType. StoredProcedure .
SqlParameter parameter=command. The Parameters. The Add (" @... , " System. Data. SqlDbType. DateTime ).
The parameter Value=https://bbs.csdn.net/topics/DateTime.Now;
.

Could you tell me the meaning of the no one line of code
  •  Tags:  
  • C#