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. Web Development
  3. ASP.NET
  4. cannot connect to sqlserver 2005

cannot connect to sqlserver 2005

Scheduled Pinned Locked Moved ASP.NET
helpcsharpdatabasesql-servervisual-studio
6 Posts 4 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.
  • M Offline
    M Offline
    Mr Wonderful
    wrote on last edited by
    #1

    Hi all, I using visual studio 2005 and SQl server 2005, and every thing run will. when i installed Visual studio 2008 and make code for connection to sqlserver 2005 an error box raise shows this error: system.data.sqlclient.sqlexception login failed for user 'DomainName\User' ... . Any body have an idea to solve this problem. thanks in advanced :)

    S D J 3 Replies Last reply
    0
    • M Mr Wonderful

      Hi all, I using visual studio 2005 and SQl server 2005, and every thing run will. when i installed Visual studio 2008 and make code for connection to sqlserver 2005 an error box raise shows this error: system.data.sqlclient.sqlexception login failed for user 'DomainName\User' ... . Any body have an idea to solve this problem. thanks in advanced :)

      S Offline
      S Offline
      sashidhar
      wrote on last edited by
      #2

      What is the connection string. the username and password which are given in the connection string is wrong..! This is a basic error. type the user name and password in the sql server management studio..! try this link for connection strings..! http://www.connectionstrings.com/[^]

      LatestArticle :Log4Net Why Do Some People Forget To Mark as Answer .If It Helps.

      M 1 Reply Last reply
      0
      • S sashidhar

        What is the connection string. the username and password which are given in the connection string is wrong..! This is a basic error. type the user name and password in the sql server management studio..! try this link for connection strings..! http://www.connectionstrings.com/[^]

        LatestArticle :Log4Net Why Do Some People Forget To Mark as Answer .If It Helps.

        M Offline
        M Offline
        Mr Wonderful
        wrote on last edited by
        #3

        Dear sashidhar, I told you same code exactly was written in visual studio 2005 , and successfully make a connection. there is no error in my connection string. by the way, the security type is integrated security=true. and what you told me about username and password it is true, i mean it doesn't work in sql server management studio. so any idea. Regards :)

        1 Reply Last reply
        0
        • M Mr Wonderful

          Hi all, I using visual studio 2005 and SQl server 2005, and every thing run will. when i installed Visual studio 2008 and make code for connection to sqlserver 2005 an error box raise shows this error: system.data.sqlclient.sqlexception login failed for user 'DomainName\User' ... . Any body have an idea to solve this problem. thanks in advanced :)

          D Offline
          D Offline
          DX Roster
          wrote on last edited by
          #4

          use follwing syntax try { Sqlconnection con=new Sqlconnection("connection String"); con.open(); } catch() {} If You Get your answer then please Rating me... Thanks.. "Are You Ready" DX-ARMY

          M 1 Reply Last reply
          0
          • M Mr Wonderful

            Hi all, I using visual studio 2005 and SQl server 2005, and every thing run will. when i installed Visual studio 2008 and make code for connection to sqlserver 2005 an error box raise shows this error: system.data.sqlclient.sqlexception login failed for user 'DomainName\User' ... . Any body have an idea to solve this problem. thanks in advanced :)

            J Offline
            J Offline
            jayantbramhankar
            wrote on last edited by
            #5

            Put your connection string here, so we can go through it.

            1 Reply Last reply
            0
            • D DX Roster

              use follwing syntax try { Sqlconnection con=new Sqlconnection("connection String"); con.open(); } catch() {} If You Get your answer then please Rating me... Thanks.. "Are You Ready" DX-ARMY

              M Offline
              M Offline
              Mr Wonderful
              wrote on last edited by
              #6

              Hi, The connection now is working under windows XP, but still not working under windows 7, maybe the prolem in windows 7 Compatibility or need some updates. regards :)

              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