Help!!

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • isabella o nell
    New Member
    • Jan 2008
    • 6

    Help!!

    Hi..

    Im trying to connect a visual studios application to sql server 05 express edition.

    the name of my database is personal_organi ser. I have searched the web for many hours but am just getting more confused. Can some one tell me the correct code and where to put it in my application, is it to go under a public class?? please help! a head wrecked student! :(
  • lotus18
    Contributor
    • Nov 2007
    • 865

    #2
    Originally posted by isabella o nell
    Hi..

    Im trying to connect a visual studios application to sql server 05 express edition.

    the name of my database is personal_organi ser. I have searched the web for many hours but am just getting more confused. Can some one tell me the correct code and where to put it in my application, is it to go under a public class?? please help! a head wrecked student! :(
    Can you show us what have you done so far as for reference for our experts here.

    Rey Sean

    Comment

    • isabella o nell
      New Member
      • Jan 2008
      • 6

      #3
      Originally posted by lotus18
      Can you show us what have you done so far as for reference for our experts here.

      Rey Sean


      have deleted most of what i tried to do as was all wrong.. have this at the moment but its not correct either.. really just dont know where to start..please help!!

      Imports System.Data.Sql Client



      Public Class frmSelection

      Dim myConnection As SqlConnection = New _

      SqlConnection(" server=(local); database=person al_organiser;")

      Comment

      • Killer42
        Recognized Expert Expert
        • Oct 2006
        • 8429

        #4
        I'm closing this thread as well, since the question has been re-posted in another thread.

        Please don't start a new discussion thread for each reply. It makes things very hard to follow, for all concerned.

        Comment

        Working...