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. C#
  4. sqlconnection :S :S

sqlconnection :S :S

Scheduled Pinned Locked Moved C#
questiondatabasesql-serversysadminsecurity
8 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.
  • G Offline
    G Offline
    Greeky
    wrote on last edited by
    #1

    When i use oledb.oledbconnection,i connect to SQL Server with this connection string :Provider=SQLOLEDB.1; Persist Security Info=False;User ID=sa;Initial Catalog=MDLABS;Data Source=SQL; But when i use sqlclient sql connection , i cannot connect to sql server. my sqlclient connection string is Persist Security Info=False;User ID=sa;Initial Catalog=MDLABS;Data Source=SQL; What is missing?

    J R 2 Replies Last reply
    0
    • G Greeky

      When i use oledb.oledbconnection,i connect to SQL Server with this connection string :Provider=SQLOLEDB.1; Persist Security Info=False;User ID=sa;Initial Catalog=MDLABS;Data Source=SQL; But when i use sqlclient sql connection , i cannot connect to sql server. my sqlclient connection string is Persist Security Info=False;User ID=sa;Initial Catalog=MDLABS;Data Source=SQL; What is missing?

      J Offline
      J Offline
      J4amieC
      wrote on last edited by
      #2

      Providing the error you get may go some way to helping people answer your question. Current blacklist svmilky - Extremely rude | FeRtoll - Rude personal emails | ironstrike1 - Rude & Obnoxious behaviour

      G 1 Reply Last reply
      0
      • J J4amieC

        Providing the error you get may go some way to helping people answer your question. Current blacklist svmilky - Extremely rude | FeRtoll - Rude personal emails | ironstrike1 - Rude & Obnoxious behaviour

        G Offline
        G Offline
        Greeky
        wrote on last edited by
        #3

        ex.message = Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.

        J 1 Reply Last reply
        0
        • G Greeky

          ex.message = Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.

          J Offline
          J Offline
          J4amieC
          wrote on last edited by
          #4

          pretty straightforward error message don't you think? A timout implies that the connection worked fine, but timed out on whatever operation you asked of it! Current blacklist svmilky - Extremely rude | FeRtoll - Rude personal emails | ironstrike1 - Rude & Obnoxious behaviour

          L 1 Reply Last reply
          0
          • J J4amieC

            pretty straightforward error message don't you think? A timout implies that the connection worked fine, but timed out on whatever operation you asked of it! Current blacklist svmilky - Extremely rude | FeRtoll - Rude personal emails | ironstrike1 - Rude & Obnoxious behaviour

            L Offline
            L Offline
            leppie
            wrote on last edited by
            #5

            J4amieC wrote:

            A timout implies that the connection worked fine, but timed out on whatever operation you asked of it!

            Unless it was a connection timeout ;P

            xacc.ide-0.1.3.9 - Now with Language Designer

            J 1 Reply Last reply
            0
            • L leppie

              J4amieC wrote:

              A timout implies that the connection worked fine, but timed out on whatever operation you asked of it!

              Unless it was a connection timeout ;P

              xacc.ide-0.1.3.9 - Now with Language Designer

              J Offline
              J Offline
              J4amieC
              wrote on last edited by
              #6

              Even if it was, that error message implies that the connection string was correct in syntax, but that the connection or operation timed out. I should have been more specific. Current blacklist svmilky - Extremely rude | FeRtoll - Rude personal emails | ironstrike1 - Rude & Obnoxious behaviour

              G 1 Reply Last reply
              0
              • G Greeky

                When i use oledb.oledbconnection,i connect to SQL Server with this connection string :Provider=SQLOLEDB.1; Persist Security Info=False;User ID=sa;Initial Catalog=MDLABS;Data Source=SQL; But when i use sqlclient sql connection , i cannot connect to sql server. my sqlclient connection string is Persist Security Info=False;User ID=sa;Initial Catalog=MDLABS;Data Source=SQL; What is missing?

                R Offline
                R Offline
                Rob Philpott
                wrote on last edited by
                #7

                Take a look at this damn handy resource.... http://www.connectionstrings.com/[^] Regards, Rob Philpott.

                1 Reply Last reply
                0
                • J J4amieC

                  Even if it was, that error message implies that the connection string was correct in syntax, but that the connection or operation timed out. I should have been more specific. Current blacklist svmilky - Extremely rude | FeRtoll - Rude personal emails | ironstrike1 - Rude & Obnoxious behaviour

                  G Offline
                  G Offline
                  Greeky
                  wrote on last edited by
                  #8

                  "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. " how to configure server for remote connections -- modified at 14:55 Thursday 27th April, 2006

                  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