skip to Main Content

Adding SqlCommand parameters in C# – Asp.net

Please help me to add paramaters in this queryToDB SqlCommand this is the code cons = new SqlConnection(ConfigurationManager.ConnectionStrings["DefaultConnection"].ConnectionString); cons.Open(); SqlCommand queryToDB = new SqlCommand("INSERT INTO [dbo].[FileUploadDBs] values (@Name, @Path, @Blasted, @CreatedBy, @CreatedDate)", cons); //param.ParameterName "@Name"; //param.Value = prefix + extension;…

VIEW QUESTION

Between the time in SQL Server and ASP.NET

I am storing STARTTIME and ENDTIME in a SQL Server table by using ASP.NET webform. timeTableID startTimeVal endTimeVal ------------------------------------------------- 1 07:30:00.0000000 08:00:00.0000000 2 08:00:00.0000000 08:30:00.0000000 3 08:15:00.0000000 08:25:00.0000000 Now, as you can see in the row with timeTableID = 2,…

VIEW QUESTION
Back To Top
Search