DataBase Password

bellil

Member
Joined
Sep 19, 2011
Messages
10
Programming Experience
1-3
Dear All,

i have this code in my main form it's "auto generate" VS2010 :

HTML:
Public Class Form1

    Private Sub ComputerBindingNavigatorSaveItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
        Me.Validate()
        Me.ComputerBindingSource.EndEdit()
        Me.TableAdapterManager.UpdateAll(Me.RecordsDataSet)

    End Sub

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        'TODO: This line of code loads data into the 'RecordsDataSet.Computer' table. You can move, or remove it, as needed.
        Me.ComputerTableAdapter.Fill(Me.RecordsDataSet.Computer)
        'TODO: This line of code loads data into the 'RecordsDataSet.Computer' table. You can move, or remove it, as needed.
        Me.ComputerTableAdapter.Fill(Me.RecordsDataSet.Computer)


    End Sub

    Private Sub ComputerBindingNavigatorSaveItem_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ComputerBindingNavigatorSaveItem.Click
        Me.Validate()
        Me.ComputerBindingSource.EndEdit()
        Me.TableAdapterManager.UpdateAll(Me.RecordsDataSet)

    End Sub

i want make password to my DB access so where&what i have to put my password in the code.

BR,
 
Last edited:
G'd morining Bellil,
Where the connection string is declared. check this site to build the connection string you need.
Please don't get me wrong, but you should use wizards when you know how to do it manually, in most cases wizards add a bunch of code that no one needs.
 
Back
Top