-
connection string
سلام
من نمیدونم کانکشن استرینگ رو چطوری پر کنم لطفا یه مثال واقعی برام بزنید
من از SQL 2008 و فریم ورک 4 و از طریق Linq با دیتابیس ارتباط برقرار کردم
...............
اینم الگویی که تو پنل هاست بود
Server=;Database=databaseName;Uid=userName;Passwor d=password;
در قسمت Uid باید یوزرنیم اصلی رو وارد کنم یا اون کاربری که برای دیتابیس ساختم؟
..............
اینو تو web.config نوشته ام
<connectionStrings>
<add name="DBSchool" connectionString="Server=127.0.0.1;Database=DBScho ol;Uid=my username ;Password=mypassword;" />
</connectionStrings>
.................................................. .............................
در ضمن این خطا رو هم فعلا بهم میده
The specified named connection is either not found in the configuration, not intended to be used with the EntityClient provider, or not valid
.................................................. ..................................
ممنون
-
سلام
می تونید از این نمونه ها استفاده کنید
[Only registered and activated users can see links. Click Here To Register...]
اگر مشکل برطرف نشد، به بخش پشتیبانی تیکت ارسال کنید
-
ممنون اما من دیدم اونارو.
اما هرکاری کردم نشد اگه ممکنه یه مثال واقعی برام بزنید
ممنون
-
سلام
کسی میدونه اسم
connection string
رو از کجا باید بیارم
ممنون
-
سلام
نمونه کانکشن استرینگ :
کد:
<connectionStrings>
<add name="connectionString_name" connectionString=" Data Source=localhost;Initial Catalog=db_name;User Id=db_user;Password=db_pass" providerName="System.Data.SqlClient" />
</connectionStrings>
-
نمی دونم
کسی میدونه اینو باید چکارش کنم
The specified named connection is either not found in the configuration, not intended to be used with the EntityClient provider, or not valid