lamont Posted March 7, 2015 Share Posted March 7, 2015 arkadaşlar sql server bağlantı hatası alıyorum ismini degiştirdim servisleri kontrol ettim olmadı bunu sebebi nedir sql server açamaıyorum ? Quote Link to comment Share on other sites More sharing options...
sansifu Posted March 7, 2015 Share Posted March 7, 2015 authentication windows değiş sa kullanıcısı ile bağlanmayı dene şifre 1907 veya 1905 dir... Quote Link to comment Share on other sites More sharing options...
lamont Posted March 7, 2015 Author Share Posted March 7, 2015 arkadaşlar mssql server baglanmak kodları yazdıgımda hiç bir tepki vermiyor çalıştır dedigimde hatada vermiyor herhangibi bir hata göremiyorum sorun nedir kodlar using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using System.Data.SqlClient; namespace Sql_server_baglanama { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void Form1_Load(object sender, EventArgs e) { SqlConnection baglan = new SqlConnection("Data Source=(local); Integrated Security=True; Initial Catalog=deneme"); baglan.Open(); MessageBox.Show("Bağlandı ..."); } Quote Link to comment Share on other sites More sharing options...
Editor pairs Posted March 7, 2015 Editor Share Posted March 7, 2015 bağlandığına dair bi tepki vermezki. SqlConnection baglan = new SqlConnection("Data Source=(local); Integrated Security=True; Initial Catalog=deneme"); baglan.Open(); if (baglan.State == COnnectionState.Open) { // mesaj } bu şekilde denermisin. Quote Link to comment Share on other sites More sharing options...
lamont Posted March 7, 2015 Author Share Posted March 7, 2015 Pairs Form ekranı gelmiyor kod ekranında bekliyor sql server silip baştan kuruyorum Quote Link to comment Share on other sites More sharing options...
Editor pairs Posted March 7, 2015 Editor Share Posted March 7, 2015 https://www.connectionstrings.com/sql-server-2012/ doğru bir connection string kullandıgına emin ol. Quote Link to comment Share on other sites More sharing options...
lamont Posted March 7, 2015 Author Share Posted March 7, 2015 resimdeki gibi oluyor Pairs Quote Link to comment Share on other sites More sharing options...
lamont Posted March 7, 2015 Author Share Posted March 7, 2015 (edited) Visual Studio C# SQL Server Bağlantı hatasının Çözümünü SQL Bağlantı nasıl Kurabilecegini Buldum Arkadaşlar kodları aşagıda veriyorum SqlConnection bag = new SqlConnection(@"Data Source=.\SQLEXPRESS; database=veri; Integrated Security=True;"); private void Form1_Load(object sender, EventArgs e) { bag.Open(); label1.Text = "baglandı..."; } SQL Server Açarken Aldıgım Hatanın Çözümünüde Veriyorum Server Name Kısmına Aşagıdkai Gibi İsim Verirseniz Sorun Çözülecektir localhost\SQLEXpress Edited March 7, 2015 by lamont Quote Link to comment Share on other sites More sharing options...
hadibeolsun Posted April 27, 2015 Share Posted April 27, 2015 arkadaşlar sql server bağlantı hatası alıyorum ismini degiştirdim servisleri kontrol ettim olmadı bunu sebebi nedir sql server açamaıyorum ? İlgili resminde yer alan Server Name kısmına yazmış olduğun (local) Yazısını sil onun yerine .\SQLEXPRESS veya açılan sekmesinde yer alan Browse For More seçeneğine tıklayıp Local Servers > Database Engine alt sekmesinde yer alan ilgili kullanıcı adını seç ve Connect butonuna bas. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.