connaction string to Sql server with windows authetication

e y a l b

New member
connaction string to Sql server with windows authetication

אני מנסה להתחבר ל DB באמצעות windows authentication.
ניסיתי
Data Source=myserver;Initial Catalog=mydbname;Trusted_Connection=Yes;Persist Security Info=False;
ב web config יש לי
<identity impersonate="true" /><authentication mode="Windows" />
הבעיה היא שבשרת עצמו כשאני גולש באמצעות localhost או שם השרת
אני מגיע לאתר ורואה את המידע שבתוכו

ממחשב אחר ברשת, אני רואה את האתר אבל לא מקבל מידע.
 

e y a l b

New member
למה אני לא משתמש ב-mssql login

מכיוון שהסיסמאות ליוזרים ב DB משתנות כל חודשיים, ולא יהיה מי שיעדכן את הסיסמא החדשה.
 

nocgod

New member
אני חושב שמה שאתה מחפש זה SSPI לא?

בכל מקרה מה שאתה צריך לשים בconnection string שאתה רוצה חיבור SSPI
ולדאוג שהאפליקציה שלך ב application pool של IIS תרוץ תחת הuser שאיתו אתה רוצה להתחבר.
אתה גם צריך לדאוג שלuser הזה ב DB תהיה הרשאה של חיבור/קריאה/כתיבה ל db
"Data Source=myServerAddress;Initial Catalog=myDataBase;Integrated Security=SSPI;"
 
למעלה