Selam arkadaşlar,
C# ile Sql Server 2008 e baglanmaya çalışıyorum. Sql servera management studiou da "DETAYBURAK\SQL2008" server ismi ile baglanıyorum. Kodlarım aşagıdaki gibi. hata veren satır adpt.fill(ds);
Kodun aşagısında hata mesajı var.. Halbuki ben Sa kullancıısıyla baglanmaya çalışıyorum, neden DETAYBURAK\BURAK olarak görüyor? Ne öneririsiniz?
Cevap için tşk ederim.. Kodu bu şekilde düzelttim "Keyword not supported: 'provider'." diye hata verdi SqlConnection baglan = new SqlConnection(yol); satırında..
Bir de Gariptir ki, hani size sa ile giriş yapmak istememe ragmen Login failed for user 'DETAYBURAK\BURAK'. diye bir hata veriyor demiştim ya, gittim sql serverda 'DETAYBURAK\BURAK' adında bi kullanıcı açtım baglanabildi. ancak sa ile ve istedigim yetkili kullanıcılarla baglanabilmem gerekiyor..
Şimdi denedim onu silerek, bu seferde
A file activation error occurred. The physical file name 'uid=SA' may be incorrect. Diagnose and correct additional errors, and retry the operation.
Cannot attach the file 'uid=SA' as database 'OGRENCIDB'.
gibi bi hata verdi..
SQL serverın güvenlik seviyesini windows authrozation'dan çıkarıp MSSQL server denetimene verin. Ayrıca SA kullanıcısının'da uzaktan uzaktan erişme ayarlanması gerekiyor. Kullanıcının detay bilgileri sayfasında bu ayar vardı.
mkysoft yazdı:SQL serverın güvenlik seviyesini windows authrozation'dan çıkarıp MSSQL server denetimene verin. Ayrıca SA kullanıcısının'da uzaktan uzaktan erişme ayarlanması gerekiyor. Kullanıcının detay bilgileri sayfasında bu ayar vardı.
SQL Server ın güvenlik seviyesinde "SQL Server and windows authentication mode" seçili
ASP.Net WEb Application Administration'a girince Current User Name:DETAYCIEKREM\EKREM diyo.
DETAYCIEKREM benim pc adım, EKREM ise windows kullanıcı adım.
Sa'yı degilde bunu görüyo. Bunu düzeltmenin bi yolu varmı?
merhaba DETAYBURAK\SQL2008 bu kısım sql serverın instance yeridir.
.\SQLEXPRESS gibi
bu şekilde denermisiniz ayrıca Persist Security Info=False olmalı Extended Properties="uid=SA;pwd=1" bu satır silinmeli ve Password=şifreniz şeklinde değişmeniz gerekmekte.
Standard Security
Data Source =myServerAddress; Initial Catalog =myDataBase; User Id =myUsername; Password =myPassword;
Use serverName\instanceName as Data Source to connect to a specific SQL Server instance.
Are you using SQL Server 2008 Express? Don't miss the server name syntax Servername\SQLEXPRESS where you substitute Servername with the name of the computer where the SQL Server Express installation resides.
Standard Security alternative syntax
This connection string produce the same result as the previous one. The reason to include it is to point out that some connection string keywords have many equivalents.
Server =myServerAddress; Database =myDataBase; User ID =myUsername; Password =myPassword; Trusted_Connection =False;
Trusted Connection alternative syntax
This connection string produce the same result as the previous one. The reason to include it is to point out that some connection string keywords have many equivalents.
Server =myServerAddress; Database =myDataBase; Trusted_Connection =True;
Connecting to an SQL Server instance
The syntax of specifying the server instance in the value of the server key is the same for all connection strings for SQL Server.
Server =myServerName\theInstanceName; Database =myDataBase; Trusted_Connection =True;
Trusted Connection from a CE device
Often a Windows CE device is not authenticated and logged in to a domain. To use SSPI or trusted connection / authentication from a CE device, use this connection string.
Data Source =myServerAddress; Initial Catalog =myDataBase; Integrated Security =SSPI; User ID =myDomain\myUsername; Password =myPassword;
100 Adet Dedicated Server
Vpn Network Uzmanlığı
3 Gbit Internet Connection