Results 1 to 7 of 7

Thread: correct connection string?

  1. #1
    rafi is offline VB.NET Forum Newbie
    .NET Framework
    .NET 3.5
    Join Date
    Aug 2011
    Posts
    14
    Reputation
    25

    Question correct connection string?

    hi i have hosted asp.net application but there is showing error in sql which is not give correct connection string. please tell me how to give connection string when uploading into server.
    thanks in advance.

  2. #2
    jmcilhinney's Avatar
    jmcilhinney is offline VB.NET Forum Moderator
    .NET Framework
    .NET 4.0
    Join Date
    Aug 2004
    Location
    Sydney, Australia
    Posts
    11,504
    Reputation
    1553
    We have no idea what database you're connecting to, where it's located or what your current connection string looks like. It's going to be a bit hard for us to tell you what the correct connection should look like.

  3. #3
    jmcilhinney's Avatar
    jmcilhinney is offline VB.NET Forum Moderator
    .NET Framework
    .NET 4.0
    Join Date
    Aug 2004
    Location
    Sydney, Australia
    Posts
    11,504
    Reputation
    1553
    Also, if the app is hosted, why aren't you asking your host what the connection string should be?

  4. #4
    rafi is offline VB.NET Forum Newbie
    .NET Framework
    .NET 3.5
    Join Date
    Aug 2011
    Posts
    14
    Reputation
    25

    Asp.net

    My Database is mssql2005
    my Connection String is <add name="AddressBookConnectionString" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirector y|\Blog.mdf;Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient"/>

    i have keep databse in app_data folder

  5. #5
    jmcilhinney's Avatar
    jmcilhinney is offline VB.NET Forum Moderator
    .NET Framework
    .NET 4.0
    Join Date
    Aug 2004
    Location
    Sydney, Australia
    Posts
    11,504
    Reputation
    1553

  6. #6
    rafi is offline VB.NET Forum Newbie
    .NET Framework
    .NET 3.5
    Join Date
    Aug 2011
    Posts
    14
    Reputation
    25

    Asp.net

    ya sqlexpress is there.

  7. #7
    jmcilhinney's Avatar
    jmcilhinney is offline VB.NET Forum Moderator
    .NET Framework
    .NET 4.0
    Join Date
    Aug 2004
    Location
    Sydney, Australia
    Posts
    11,504
    Reputation
    1553

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Harvest time tracking