lamont Posted June 4, 2015 Share Posted June 4, 2015 C# Visual Studio 2013 Sürümünde InstallShield Setup Oluşturuyorum ama Başka Bilgisayara Kurdugumda SQL Verilerine Ulaşamıyor SQL Dataları Setup İçine Dahil Ediyorum Baska PC Kurdugumda SQL datasına ulaşamıyor Program Açılıyor Visual Studio 2013 Bu Durumu Nasıl Düzeltebilriz Quote Link to comment Share on other sites More sharing options...
bilgitron Posted June 4, 2015 Share Posted June 4, 2015 Diger pc nin SQL e ulaşım yetkisi var mı. Quote Link to comment Share on other sites More sharing options...
lamont Posted June 4, 2015 Author Share Posted June 4, 2015 karşı pc de sql kurulma şartı varmı ? Quote Link to comment Share on other sites More sharing options...
Editor pairs Posted June 4, 2015 Editor Share Posted June 4, 2015 SQL in mdf dosyasına bağlanırken Application.StartupPath ile belirtirsen ve db yide exe nin yanına attırırsan problem olmaz. Quote Link to comment Share on other sites More sharing options...
lamont Posted June 4, 2015 Author Share Posted June 4, 2015 Pairs Anlaymadım Biraz Açarmısn Konuyu Quote Link to comment Share on other sites More sharing options...
Editor pairs Posted June 4, 2015 Editor Share Posted June 4, 2015 sql bağlantı cümleni buraya bi yazarmısın sana zahmet onun üzerinden gidelim. Quote Link to comment Share on other sites More sharing options...
lamont Posted June 4, 2015 Author Share Posted June 4, 2015 (edited) Tabiki Sayın Editörüm Buyrun public SqlConnection baglanti() { SqlConnection con = new SqlConnection("Data Source =(local); Integrated Security=true; Initial Catalog=ajanda"); con.Open(); if (con.State == ConnectionState.Open) { return con; } return null; } Edited June 4, 2015 by lamont Quote Link to comment Share on other sites More sharing options...
Editor pairs Posted June 4, 2015 Editor Share Posted June 4, 2015 sql server kurulu onamı bağlanıyorsun yoksa mdf dosyasınamı. eğer sql ise diğer pcdede sql server ı kurman lazım. Yok mdf dosyası ise sql kodunu bu şekilde değiştirmen lazım. Server=.\SQLExpress;AttachDbFilename=C:\MyFolder\MyDataFile.mdf;Database=dbname; Trusted_Connection=Yes; 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.