Jump to content
MK2

Ler ligação num ficheiro txt

Recommended Posts

MK2

Boas..

Como posso fazer para ter uma ligação à base de dados num ficheiro txt e que no código ele leia o que está no ficheiro...

Por exemplo.

Dim GestorFrotaConnectionString As String = Data Source=EST-P01;Initial Catalog=GestorAC;Persist Security Info=True;User ID=aa;Password=aaaaaaa

E em vez de estar isso, ficar:

Dim GestorFrotaConnectionString As String = [Ficheiro.txt]

e no ficheiro ficar só:

Data Source=EST-P01;Initial Catalog=GestorAC;Persist Security Info=True;User ID=aa;Password=aaaaaaa


Cumps;Mk2_______________________________________________Se não fosse o C estaríamos a usar Pasal, obol e Basi ...

Share this post


Link to post
Share on other sites
MK2

Muito obrigado...


Cumps;Mk2_______________________________________________Se não fosse o C estaríamos a usar Pasal, obol e Basi ...

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.