Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. LINQ
  4. linq to sql connection string name

linq to sql connection string name

Scheduled Pinned Locked Moved LINQ
csharpdatabasevisual-studioquestionsql-server
2 Posts 2 Posters 8 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    rachel_m
    wrote on last edited by
    #1

    I am working with a C#.net 2010 web form that uses linq to sql to connect to a sql server 2008 r2 database. In one of the connection strings in a linq to sql ( *.dbml) file, the connection string is set to is set to dbconnectionstring(settings). I want to change the connection string to dbConnectionString (Web.config), however where I am clicking on, will not let me change the connection string. I have opened up the designer for the .dbml file and clicked properties. Where the connection string is setup, I can change that to a new connnection string. If that is where I can the connection string, how do I get the visual studio ide to allow me to change the connection string to dbConnectionString (Web.config)?

    B 1 Reply Last reply
    0
    • R rachel_m

      I am working with a C#.net 2010 web form that uses linq to sql to connect to a sql server 2008 r2 database. In one of the connection strings in a linq to sql ( *.dbml) file, the connection string is set to is set to dbconnectionstring(settings). I want to change the connection string to dbConnectionString (Web.config), however where I am clicking on, will not let me change the connection string. I have opened up the designer for the .dbml file and clicked properties. Where the connection string is setup, I can change that to a new connnection string. If that is where I can the connection string, how do I get the visual studio ide to allow me to change the connection string to dbConnectionString (Web.config)?

      B Offline
      B Offline
      BobJanova
      wrote on last edited by
      #2

      Can't you just edit the DBML file in text mode? I think it's human readable (XML?).

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups