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. Database & SysAdmin
  3. Database
  4. Connecting to a Database in SQL Server 2008R2 Express

Connecting to a Database in SQL Server 2008R2 Express

Scheduled Pinned Locked Moved Database
helpdatabasecsssql-serversysadmin
3 Posts 3 Posters 0 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.
  • B Offline
    B Offline
    Bram van Kampen
    wrote on last edited by
    #1

    Hi, I had long running queery last May, early June. I got all sorts of errors trying to connect. Then the VS2012Express Compiler gave up! Eddy Vluggen made great effords to help me, but, in the face of a non compiling compiler, I had to call it a day. That Compiler has now been fixed with the traditional indecent haste on behalf of Microsoft, (the Last Auto Ugrade apparently fixed it,got no notice of the fix, I hope it will last) However, the DB Connection String Problem has NOT Gone away. I now do wonder, Is this another Microsoft Issue, or am I doing something wrong! I have the following (More or Less)from Eddy Vluggen, and in line with the documentation.:-

        public static String GetConnectionString()
        {
            string Result="server=b-pc\\\\Softguard;"+
                                       "database=SgTextiles; " +
                                       "Name=sa;Password=12345;"+
                                       "connection timeout=5;";
            return Result;
    
    
    
        }
    

    The Code that uses this is:

            String ConnectionString = GetConnectionString();
            SqlConnection myConnection = new SqlConnection(ConnectionString);
    

    I get the Exception:"System.ArgumentException: Keyword not supported: 'name'." Irrespective of DB Configuration issues, the parser of the Connect String seems to choke on the Keyword 'name' (incidentely confirming the Non Case Sensitivity of the particular keyword parser). Kind Regards :)

    Bram van Kampen

    P L 2 Replies Last reply
    0
    • B Bram van Kampen

      Hi, I had long running queery last May, early June. I got all sorts of errors trying to connect. Then the VS2012Express Compiler gave up! Eddy Vluggen made great effords to help me, but, in the face of a non compiling compiler, I had to call it a day. That Compiler has now been fixed with the traditional indecent haste on behalf of Microsoft, (the Last Auto Ugrade apparently fixed it,got no notice of the fix, I hope it will last) However, the DB Connection String Problem has NOT Gone away. I now do wonder, Is this another Microsoft Issue, or am I doing something wrong! I have the following (More or Less)from Eddy Vluggen, and in line with the documentation.:-

          public static String GetConnectionString()
          {
              string Result="server=b-pc\\\\Softguard;"+
                                         "database=SgTextiles; " +
                                         "Name=sa;Password=12345;"+
                                         "connection timeout=5;";
              return Result;
      
      
      
          }
      

      The Code that uses this is:

              String ConnectionString = GetConnectionString();
              SqlConnection myConnection = new SqlConnection(ConnectionString);
      

      I get the Exception:"System.ArgumentException: Keyword not supported: 'name'." Irrespective of DB Configuration issues, the parser of the Connect String seems to choke on the Keyword 'name' (incidentely confirming the Non Case Sensitivity of the particular keyword parser). Kind Regards :)

      Bram van Kampen

      P Offline
      P Offline
      PIEBALDconsult
      wrote on last edited by
      #2

      Shouldn't Name be User ID?

      1 Reply Last reply
      0
      • B Bram van Kampen

        Hi, I had long running queery last May, early June. I got all sorts of errors trying to connect. Then the VS2012Express Compiler gave up! Eddy Vluggen made great effords to help me, but, in the face of a non compiling compiler, I had to call it a day. That Compiler has now been fixed with the traditional indecent haste on behalf of Microsoft, (the Last Auto Ugrade apparently fixed it,got no notice of the fix, I hope it will last) However, the DB Connection String Problem has NOT Gone away. I now do wonder, Is this another Microsoft Issue, or am I doing something wrong! I have the following (More or Less)from Eddy Vluggen, and in line with the documentation.:-

            public static String GetConnectionString()
            {
                string Result="server=b-pc\\\\Softguard;"+
                                           "database=SgTextiles; " +
                                           "Name=sa;Password=12345;"+
                                           "connection timeout=5;";
                return Result;
        
        
        
            }
        

        The Code that uses this is:

                String ConnectionString = GetConnectionString();
                SqlConnection myConnection = new SqlConnection(ConnectionString);
        

        I get the Exception:"System.ArgumentException: Keyword not supported: 'name'." Irrespective of DB Configuration issues, the parser of the Connect String seems to choke on the Keyword 'name' (incidentely confirming the Non Case Sensitivity of the particular keyword parser). Kind Regards :)

        Bram van Kampen

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        See http://www.connectionstrings.com/sql-server-2008[^].

        Use the best guess

        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