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 Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified) (Microsoft SQL Server, Error: -1)
Sorunu çözmek için;
Öenek kod;
asp.net MVC de Sqllike ile yapılıyordu. .CORE MVC de işler değişmiş. Kod detay sayfasında.
Tablomuzda a harfi ile başlayan kayıtları bulmak için aşağıdaki kodu kullanıyoruz.
Devamı →Öyle bir zaman gelirki linq içerisinde Sql sorgusu kullanmamız gerekebilir. Bu tip durumlarda aşağıdaki kodu kullanıyoruz.
string sql = "Select * from kayitlar_";
Devamı →
Online ve ücretsiz bir siteden bu sorunu çözebilirsiniz.
Devamı →C#,MVC,MSSQL,Windows Forms