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. Visual Basic
  4. visual basic 6.0

visual basic 6.0

Scheduled Pinned Locked Moved Visual Basic
databasequestion
2 Posts 2 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.
  • P Offline
    P Offline
    praveed
    wrote on last edited by
    #1

    how do i make the back end database in sqlserver2000 appear in the front end on the visual basic form plz let me know how the connectivity is to be done

    S 1 Reply Last reply
    0
    • P praveed

      how do i make the back end database in sqlserver2000 appear in the front end on the visual basic form plz let me know how the connectivity is to be done

      S Offline
      S Offline
      steff kamush
      wrote on last edited by
      #2

      Dim Con As New ADODB.Connection Dim Rs As New ADODB.Recordset Dim Com As New ADODB.Command Private Sub Form_Load() with Con .ConnectionString = "Data Provider=SQLOLEDB; Provider=MSDATASHAPE; uid=;pwd=; Initial Catalog=dbname; Server=server-name;" .Open end with With Com .ActiveConnection = Con .CommandType = adCmdText .CommandTimeout = 0 '//never time-out .CommandText = "SELECT * FROM table-name" End With Rs.Open Com Call Read '//sub defined below End Sub private sub Read() Rs.MoveFirst while not Rs.EOF Print Rs!Field-name1 '//print to screen - whatever.. Print Rs!Field-name2 . . Print Rs!Field-namen Rs.MoveNext wend end sub :rose::rose:

      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