اتصال به db در سرور ها با سی شارپ تعداد بازدیدvisits : 454
|
|||||||||
hosseinghaheri
|
اتصال به db در سرور ها با سی شارپ سلام و خسته نباشد به همه ی دوستان. من برای اتصال به دیتابیس سایتم این کد را مینویسم کد: SqlConnection sql = new SqlConnection("Server=localhost;Database=mydb;User ID=root;Password=000000;"); وقتی ران میشه ، توی باز کردن کانکشن ارور میده! مشکل کجاس؟؟ اصلا با این کد میشه به db سایت متصل شد؟؟ اینم ارورش کد: 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: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) |
||||||||
شنبه 23 فروردین 1393 - 22:41 |
|