

Hi @MohamedRafiN-6400,
You just need to add the following line or click where to take the screenshot.
using System.Data.SqlClient;

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.
Hi @MohamedRafiN-6400,
Maybe you can try to add it according to the location marked in the screenshot, don't add it when the project is running.
https://docs.microsoft.com/en-us/dotnet/api/system.configuration.configurationmanager?view=dotnet-plat-ext-6.0
Best regards,
Lan Huang
Sir, i have added using system.data.sqlclient ad saved project and run after that also it shows same error
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?

if i put my userid as root it shows the same error sir, it was not showing output
if i put my userid as root it shows the same error sir, it was not showing output
6 people are following this question.