Need Error Correction on coding

Mohamed Rafi N 106 Reputation points
2022-03-18T08:05:28.94+00:00

184463-image.png

Developer technologies ASP.NET Other
0 comments No comments
{count} votes

4 answers

Sort by: Most helpful
  1. Lan Huang-MSFT 30,186 Reputation points Microsoft External Staff
    2022-03-18T09:24:12.61+00:00

    Hi @Mohamed Rafi N ,
    You just need to add the following line or click where to take the screenshot.

    using System.Data.SqlClient;  
    

    184360-1.jpg
    Best regards,
    Lan Huang


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


  2. Mohamed Rafi N 106 Reputation points
    2022-03-18T12:11:52.54+00:00

    184499-image.png

    How to clear this error?

    0 comments No comments

  3. Olaf Helper 47,436 Reputation points
    2022-03-18T12:33:09.04+00:00

    A completly different error, has nothing to do with your origin question/issue.

    Do you want .NET to guess the user id for SQL Server login or why did you left it empty?

    184515-image.png


  4. Mohamed Rafi N 106 Reputation points
    2022-03-18T12:55:10.983+00:00

    if i put my userid as root it shows the same error sir, it was not showing output

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.