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. Error

Error

Scheduled Pinned Locked Moved Database
databasecsharpsql-servervisual-studiosysadmin
16 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.
  • M messages

    H everyone, I installed Sql Server 2005 and it installed good but when I want to use of it,it shows this message "An error has occurred while establishing a connection to the server.When connecting to SQL Server 2005,this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections.(provider:Names Pipes Provider,error:40 - Could not open a connection to SQL Server)" I get this error when I am tring to : 1- I go to on the Visual studio Data Menu then select Add new Data source then select Database and click Next button then I click New Connection and select Microsoft SQL Server now it want Server name I enter server name and then I went to Select or enter database name but It didnt show any thing to then I select Attach a databse file and enter a file(its extenstion mdf) and when I click ok I got above error Is it possible I am getting this error because I enter wrong server name if yes how can I find correct name of server. Thanks

    R Offline
    R Offline
    roel_v
    wrote on last edited by
    #2

    Did you install SQL Server on your local machine or on a seperate machine?

    M 1 Reply Last reply
    0
    • R roel_v

      Did you install SQL Server on your local machine or on a seperate machine?

      M Offline
      M Offline
      messages
      wrote on last edited by
      #3

      I installed on my local machine.

      R 1 Reply Last reply
      0
      • M messages

        I installed on my local machine.

        R Offline
        R Offline
        roel_v
        wrote on last edited by
        #4

        Then you don't need to enter the server name, you can just enter '.' (a full stop), that corresponds to the local server. Note: if you installed SQL Server 2005 Express, then you should use '.\SQLExpress' as the server name. If this doesn't work, check if the SQL Server service is running. Roel

        M 1 Reply Last reply
        0
        • M messages

          H everyone, I installed Sql Server 2005 and it installed good but when I want to use of it,it shows this message "An error has occurred while establishing a connection to the server.When connecting to SQL Server 2005,this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections.(provider:Names Pipes Provider,error:40 - Could not open a connection to SQL Server)" I get this error when I am tring to : 1- I go to on the Visual studio Data Menu then select Add new Data source then select Database and click Next button then I click New Connection and select Microsoft SQL Server now it want Server name I enter server name and then I went to Select or enter database name but It didnt show any thing to then I select Attach a databse file and enter a file(its extenstion mdf) and when I click ok I got above error Is it possible I am getting this error because I enter wrong server name if yes how can I find correct name of server. Thanks

          J Offline
          J Offline
          Jerry Hammond
          wrote on last edited by
          #5

          This is probably an error caused by the service not being started.

          “Some have an idea that the reason we in this country discard things so readily is because we have so much. The facts are exactly opposite - the reason we have so much is simply because we discard things so readily. We replace the old in return for something that will serve us better.”--Alfred P. Sloan

          M 1 Reply Last reply
          0
          • J Jerry Hammond

            This is probably an error caused by the service not being started.

            “Some have an idea that the reason we in this country discard things so readily is because we have so much. The facts are exactly opposite - the reason we have so much is simply because we discard things so readily. We replace the old in return for something that will serve us better.”--Alfred P. Sloan

            M Offline
            M Offline
            messages
            wrote on last edited by
            #6

            Hi Jerry, Its on the memory sqlserver.exe and it shows run but when I tired (I said on the first message) I cant see any databses.but I remove vs2005 and installed again please see my last post to roel_v,Where can I enter sql statements like Query on the Sql2000

            J 1 Reply Last reply
            0
            • R roel_v

              Then you don't need to enter the server name, you can just enter '.' (a full stop), that corresponds to the local server. Note: if you installed SQL Server 2005 Express, then you should use '.\SQLExpress' as the server name. If this doesn't work, check if the SQL Server service is running. Roel

              M Offline
              M Offline
              messages
              wrote on last edited by
              #7

              Hi roel_v, Thanks for your help I remove Vs2005 and Installed again it after install I have these items on the Sql folder at start menu SQL Server Configuration Manager SQL Server Error and Usage Reporting SQL Server Surface Area Configuration Does it install perfect or no? now I can see databses of sql(master,...) on the combobbox that I said at my first message and I can working it but I have a question I cant see Query english and Enterprise how can I eneter statements like createdatabse on the sql

              R 1 Reply Last reply
              0
              • M messages

                Hi roel_v, Thanks for your help I remove Vs2005 and Installed again it after install I have these items on the Sql folder at start menu SQL Server Configuration Manager SQL Server Error and Usage Reporting SQL Server Surface Area Configuration Does it install perfect or no? now I can see databses of sql(master,...) on the combobbox that I said at my first message and I can working it but I have a question I cant see Query english and Enterprise how can I eneter statements like createdatabse on the sql

                R Offline
                R Offline
                roel_v
                wrote on last edited by
                #8

                It sounds to me like you have installed the freely available version SQL Server Express 2005, not the full version of SQL Server, is that correct? By default, unlike the full version of SQL Server, this does not come with SQL Server Management Studio, which is used to create databases and enter SQL queries. You can either open a command prompt and type sqlcmd -S.\SQLExpress -E to get a command prompt from where you can enter SQL statements against your database. Or, you can download the freely available SQL Server Management Studio Express, which gives you a graphical interface to do all this (recommended). Get it here: http://www.microsoft.com/downloads/details.aspx?FamilyID=c243a5ae-4bd1-4e3d-94b8-5a0f62bf7796&DisplayLang=en[^] Hope this helps, Roel

                M 1 Reply Last reply
                0
                • M messages

                  Hi Jerry, Its on the memory sqlserver.exe and it shows run but when I tired (I said on the first message) I cant see any databses.but I remove vs2005 and installed again please see my last post to roel_v,Where can I enter sql statements like Query on the Sql2000

                  J Offline
                  J Offline
                  Jerry Hammond
                  wrote on last edited by
                  #9

                  Download the SQL Server Managment Studio.

                  “Some have an idea that the reason we in this country discard things so readily is because we have so much. The facts are exactly opposite - the reason we have so much is simply because we discard things so readily. We replace the old in return for something that will serve us better.”--Alfred P. Sloan

                  M 1 Reply Last reply
                  0
                  • J Jerry Hammond

                    Download the SQL Server Managment Studio.

                    “Some have an idea that the reason we in this country discard things so readily is because we have so much. The facts are exactly opposite - the reason we have so much is simply because we discard things so readily. We replace the old in return for something that will serve us better.”--Alfred P. Sloan

                    M Offline
                    M Offline
                    messages
                    wrote on last edited by
                    #10

                    Thank you Mr Jerry Hammond for your help :)

                    1 Reply Last reply
                    0
                    • R roel_v

                      It sounds to me like you have installed the freely available version SQL Server Express 2005, not the full version of SQL Server, is that correct? By default, unlike the full version of SQL Server, this does not come with SQL Server Management Studio, which is used to create databases and enter SQL queries. You can either open a command prompt and type sqlcmd -S.\SQLExpress -E to get a command prompt from where you can enter SQL statements against your database. Or, you can download the freely available SQL Server Management Studio Express, which gives you a graphical interface to do all this (recommended). Get it here: http://www.microsoft.com/downloads/details.aspx?FamilyID=c243a5ae-4bd1-4e3d-94b8-5a0f62bf7796&DisplayLang=en[^] Hope this helps, Roel

                      M Offline
                      M Offline
                      messages
                      wrote on last edited by
                      #11

                      Thank you yes it was help but I'm sorry to interrupt again I saw your link and I want to donwload "Microsoft SQL Server Management Studio Express" if I download it Can I sure that I will not problem to work with sql 2005(of course my intent is like previous ) ?

                      R 1 Reply Last reply
                      0
                      • M messages

                        Thank you yes it was help but I'm sorry to interrupt again I saw your link and I want to donwload "Microsoft SQL Server Management Studio Express" if I download it Can I sure that I will not problem to work with sql 2005(of course my intent is like previous ) ?

                        R Offline
                        R Offline
                        roel_v
                        wrote on last edited by
                        #12

                        As far as I know, the only time it will not work is if you have the full version of SQL Server Management Studio installed already, which for you is not the case (otherwise you would not have to install this one.) So, just go ahead and try. Roel

                        M 1 Reply Last reply
                        0
                        • R roel_v

                          As far as I know, the only time it will not work is if you have the full version of SQL Server Management Studio installed already, which for you is not the case (otherwise you would not have to install this one.) So, just go ahead and try. Roel

                          M Offline
                          M Offline
                          messages
                          wrote on last edited by
                          #13

                          Hi again, I download and install SQLServer2005_SSMSEE it seems like sql 2000 It has query is it like query on the swl2000(of course not excatly) now I have another question I install vs2005 that it has sql server and also install your link do I need to install other things for sql or these are enough. Thanks for your help and your good info

                          R 1 Reply Last reply
                          0
                          • M messages

                            Hi again, I download and install SQLServer2005_SSMSEE it seems like sql 2000 It has query is it like query on the swl2000(of course not excatly) now I have another question I install vs2005 that it has sql server and also install your link do I need to install other things for sql or these are enough. Thanks for your help and your good info

                            R Offline
                            R Offline
                            roel_v
                            wrote on last edited by
                            #14

                            I guess so. Maybe the next step would be to buy a good book on database programming with Visual Studio? Roel

                            M 1 Reply Last reply
                            0
                            • R roel_v

                              I guess so. Maybe the next step would be to buy a good book on database programming with Visual Studio? Roel

                              M Offline
                              M Offline
                              messages
                              wrote on last edited by
                              #15

                              Your answers are helpful for me (I have two book about sql not they are for sql 2000 most for programming database)may I ask if i have any problem on the sql2005 in next? Thank you.:rose:

                              R 1 Reply Last reply
                              0
                              • M messages

                                Your answers are helpful for me (I have two book about sql not they are for sql 2000 most for programming database)may I ask if i have any problem on the sql2005 in next? Thank you.:rose:

                                R Offline
                                R Offline
                                roel_v
                                wrote on last edited by
                                #16

                                SQL Server 2005 is fully backward compatible with SQL Server 2000, if that's what you mean, so whatever works on SQL Server 2000 will (in most cases) work fine on 2005. If you want to take advantage of some of the new 2005 features, do some research online or get a 2005 book. Roel

                                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