سلام خدمت کاربران وب سایت پروگرم 98 😉 در این مطلب کد اتصال به ODBC Data Source در سی شارپ #C را آماده کردم. انشاالله که این کد سی شارپ براتون مفید باشد.
کد اتصال به ODBC Data Source در سی شارپ #C :
using System;
using System.Data.Odbc;
class Program
{
static void Main(string[] args)
{
string odbcConnectString = "DRIVER={SQL Server};SERVER=(local);" +
"DATABASE=AdventureWorks;Trusted_Connection=yes;";
using System.Data.Odbc;
class Program
{
static void Main(string[] args)
{
string odbcConnectString = "DRIVER={SQL Server};SERVER=(local);" +
"DATABASE=AdventureWorks;Trusted_Connection=yes;";