ASP.NET connect กับ SQL Server 2008 !!!!

Last post 29 Jan 2010 14:53 by isavahi. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 29 Jan 2010 14:10

    ASP.NET connect กับ SQL Server 2008 !!!!

    ตอนเข้า asp.net configuration

    มันขึ้น There is a problem with your selected data store. This can be caused by an invalid server name or credentials, or by insufficient permission. It can also be caused by the role manager feature not being enabled. Click the button below to be redirected to a page where you can choose a new data store.

    The following message may help in diagnosing the problem: Unable to connect to SQL Server database.

    ซึ่งใน VS2008 เข้า database ได้สบายครับ

    connection string คือ

    <add name="testdbConnectionString" connectionString="Data Source=HOME-9E4AD08269\GOLD; Trusted_Connection=Yes; Initial Catalog=testdb;Integrated Security=SSPI" />

     

    มีผิดตรงไหนเปล่าครับ

  • 29 Jan 2010 14:12 In reply to

    Re: ASP.NET connect กับ SQL Server 2008 !!!!

    ในการติดต่อ sql ใช้

    database engine

    servername -> HOME-9E4AD08269\GOLD

    Window Authentication

            Username HOME-9E4AD08269\SQL

     

    ครับ

  • 29 Jan 2010 14:22 In reply to

    Re: ASP.NET connect กับ SQL Server 2008 !!!!

    ตัว app กับ database อยู่ที่ server เดียวกันไหมคับ (เครืองเดียวกัน) ถ้าคนละเครืองให้ Authen ด้วย SQL Authen เท่านั้นคับ (ใช้ sa ก็ได้นะ) และก็เวลาอ้างชื่อ Server แนะนำใช้ IP จะชัวส์กว่าคับ (ถ้าเครืองตัวเองใช้ 127.0.0.1 หรือ localhost หรือ (.) จุดจุดเดียว) ลองดูคับ
    Developer หัวใจ HardCore
    :Giffyhackman
  • 29 Jan 2010 14:53 In reply to

    Re: ASP.NET connect กับ SQL Server 2008 !!!!

    Database กับ VS2008 อยู่ในเครื่องเดียวกันครับ

     

Page 1 of 1 (4 items)