Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Godot Mono (C#) SQL Server connection problem #56112

Open
MohHisham12331260 opened this issue Dec 20, 2021 · 1 comment
Open

Godot Mono (C#) SQL Server connection problem #56112

MohHisham12331260 opened this issue Dec 20, 2021 · 1 comment

Comments

@MohHisham12331260
Copy link

MohHisham12331260 commented Dec 20, 2021

Godot version

3.4.stable

System information

Windows 10

Issue description

I'm using godot C# stable v3.4 and using visual studio code as an external editor with C# code and trying to make a connection between my project using C# and SQL Server using SQL server management studio 2019 and here is my initial code

using Godot;
using System;
using System.Data.SqlClient;
using System.Net.Security;

public class Control : Godot.Control
{
    public override void _Ready()
    {
        SqlConnection conn = new SqlConnection("Server=DESKTOP-CQUGBAI;Database=SMS;Trusted_Connection=True;");
        try
        {
            conn.Open();
            OS.Alert("Open", "Message Box");
        }
        catch(Exception ex)
        {
            OS.Alert(ex.Message, "Message Box");
        } 
    }
}

the problem is the debug stoped at the SqlConnection object and give me this message
unnamed

for good quality

Steps to reproduce

download VScode and godot mono
open my uploaded project
run the project

Minimal reproduction project

Issue.zip…

@Calinou
Copy link
Member

Calinou commented Dec 20, 2021

This is likely due to the same cause as #36958.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants