Jump to content

Problema no VB .NET 2005 Express Edition


MSOlhao

Recommended Posts

Tens uma ligacao aberta a base de dados antes de fazer qualquer operacao.

        Dim constring As String = "data source=10.1.1.13;initial catalog=Dinefer;persist security info=False;user id=Utilizador;password=ab,cdef123!;workstation id=" & System.Environment.MachineName & ";packet size=32767;application name=SIGDIN"

      Dim sqlcon As New SqlClient.SqlConnection(constring)

      sqlcon.Open()

    Me.ContactosTableAdapter.SelectCommand.Connection = sqlcon

      Me.ContactosTableAdapter.Fill(Me.ContactosDataSet.Contactos)

"The Dark Side Clouds Everthing. Impossible To See The Future Is."My rig: Intel Core 2 Quad Q9450 | abit IP35P | 4G Kingston 800 Mhz | XFX GeForce 9800 GX2 1G ddr3 | 2X WD5000AAJS 500Gb Sata 2 | PSU 600W || Caixa El-Diablo | Creative XMod

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.