How to make common connection string for diff program?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Manish

    How to make common connection string for diff program?

    Hi
    i have a problem where as i want to use two different C# net program
    in a single system where i have used 2 different sql server name. when
    i execute those program each time iam renaming the sql server name and
    executing the programs. Is there any way where i can write a
    connection string without using a sql server name or is there any
    other possibility to solve this problem.
    [Note : i don't want to use the same sql serve name for both the
    programs.]
  • Cor Ligthert[MVP]

    #2
    Re: How to make common connection string for diff program?

    Manish,

    How would you think that was going, there are millions of SQL servers on the
    world, and if there is an Internet connection you can in fact connect to
    all. How would you want to connect them without telling which it was?

    Cor

    Comment

    • Andrew Morton

      #3
      Re: How to make common connection string for diff program?

      Manish wrote:
      i have a problem where as i want to use two different C# net program
      in a single system where i have used 2 different sql server name. when
      i execute those program each time iam renaming the sql server name and
      executing the programs. Is there any way where i can write a
      connection string without using a sql server name or is there any
      other possibility to solve this problem.
      [Note : i don't want to use the same sql serve name for both the
      programs.]
      You could install another instance of SQL Server.

      Andrew


      Comment

      Working...