سلام هسته نباشید
دوستان من وقتی با کمک ADO دارم به بانک اطلاعاتی SQL وصل می شم یک خطایی می ده هرکار می کنم درست نمیشه کدی که استفاده کردم کد زیر است :
SqlConnection Con = new SqlConnection( "Data Source = local;Initial Catalog = Database1;Integrated Security = True"); string comText = "insert into Table(f_name,f_tell,f_addres,f_postcode,f_city,g_n ame,g_tell,g_addres,g_postcode,g_city,g_keshvar) values('"+txtfname+"','"+txtftell+"','"+txtfaddres +"','"+txtfcpost+"','"+txtfcity+"','"+txtgname+"', '"+txtgtell+"','"+txtgaddres+"',,'"+txtgcpost+"',' "+txtgcity+"','"+txtgkeshvar+"')";
SqlCommand Cmd = new SqlCommand(comText, Con);
Con.Open();
Cmd.ExecuteNonQuery();
Con.Close();
خطایی که زخ داده :
An unhandled exception of type 'System.Data.SqlClient.SqlException' occurred in System.Data.dll
Additional information: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL