Loading ...

connectionstring

Who is online?  0 guests and 0 members
home  »  forums   »  asp.net topics   »  data access   » connectionstring

connectionstring

Posts under the topic: connectionstring

Posted: 12/23/2011

Lurker 50  points  Lurker
  • Joined on: 12/21/2011
  • Posts: 10

i m using connectionstring

<connectionStrings>
<add name="ieguildString" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|ieguild.mdf;Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient"/>
</connectionStrings>

this is for localhost.now i want to host my solution that contain 3 projects n i m using vs2008 inbuilt sql server n database .what r the needed changes

 

Thanks


Posted: 12/28/2011

Professional 8338  points  Professional
  • Joined on: 4/15/2009
  • Posts: 424
  Answered

changed the Data Source value to where your database is hosted like:

Data Source = <SERVER NAME>

And then your database name:

Initial Catalog = <DATABASE NAME>


Page 1 of 1 (2 items)