Jump to content
big_dady

Ligacao BD - Host Server

Recommended Posts

big_dady

Public Sub abrebd()
        'construir a string de ligação
        connectstr = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" & nomebd
        'abrir a ligação para a bd
        ligacaobd = New OleDb.OleDbConnection(connectstr)
        ligacaobd.Open()
End Sub

Utilizo a seguinte funçao para ligar a uma base de dados localmente.

como é que transformo isto par ausar num servidor Host do genero.

database hotsserver url: database555666.hostserver.com

username: admin

password: root

??


Yours, Bid_dady

Share this post


Link to post
Share on other sites
Andrepereira9

Data Source=database555666.hostserver.com;Initial Catalog=Utilizador;Persist Security Info=True;User ID=admin;Password=root


A informática chegou para resolver problemas que antes não existiam

Quem ri por último é porque está conectado a 52 Kbs.

Share this post


Link to post
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.