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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. Visual Basic
  4. i need to make a connection to sql server 2000 from vb.net

i need to make a connection to sql server 2000 from vb.net

Scheduled Pinned Locked Moved Visual Basic
csharpdatabasesql-serversysadmin
5 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.
  • A Offline
    A Offline
    Anonymous
    wrote on last edited by
    #1

    i need to make a connection and i have no idea how you think i can get some help from you? thank you

    D K 2 Replies Last reply
    0
    • A Anonymous

      i need to make a connection and i have no idea how you think i can get some help from you? thank you

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      SqlConnection[^] class. You might also want to look at http://www.connectionstrings.com/[^] for some different connection strings. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

      M 1 Reply Last reply
      0
      • D Dave Kreskowiak

        SqlConnection[^] class. You might also want to look at http://www.connectionstrings.com/[^] for some different connection strings. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

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

        use notepad to create a udl file, which is just save the notepad as .udl then double click the udl file configure the connection through the dialog,after you done that you can open the udl file with notepad to get the connect string, then you just define the connection in the code and pass the string in. Anyway there are many ways to do so, you can find many examples on the net! I am Entry level person

        D 1 Reply Last reply
        0
        • M maxiachun

          use notepad to create a udl file, which is just save the notepad as .udl then double click the udl file configure the connection through the dialog,after you done that you can open the udl file with notepad to get the connect string, then you just define the connection in the code and pass the string in. Anyway there are many ways to do so, you can find many examples on the net! I am Entry level person

          D Offline
          D Offline
          Dave Kreskowiak
          wrote on last edited by
          #4

          WAY too overly convoluted just to do this:

          Dim myConn As New SqlConnection("myConnectionStringGoesHere")
          

          You don't need a .UDL file to open a connection. And don't tell me this stuff. Reply to the Original Poster instead. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

          1 Reply Last reply
          0
          • A Anonymous

            i need to make a connection and i have no idea how you think i can get some help from you? thank you

            K Offline
            K Offline
            K Baruah
            wrote on last edited by
            #5

            Just try out the following in VB.NET Imports System.Data.SqlClient Dim oSQLConn As SqlConnection = New SqlConnection() oSQLConn.ConnectionString="my connectionstring" oSQLConn.Open() Kaushik Baruah Programmer Analyst Cognizant Technology Solutions,India

            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