SQL Connection C# Winforms

Become part of a great team that has nothing less as its goal than to be the world's best game server provider. Keep facing new, challenging and exciting tasks at a company that values your opinion.

open positions @ Nitrado
  • Hello, I am new to developping and don't know much, but I wanna learn so I bought a cheap nitrado server to be able to train myself ^^ So I made a small Winforms application with some friends, and we want to be able to have our own accounts ( username+password, nothing too complicated ) , the issue is that I have no idea on how to connect my application to my sql server. I've tried this :

    1. SqlConnection myConnection = new SqlConnection ("user id=username;" +
    2. "password=password;server=serverurl;" +
    3. "Trusted_Connection=yes;" +
    4. "database=database; " +
    5. "connection timeout=30")

    But I can't find what I need to put for it to work so if someone could help a starter like me that would be really nice from you :)