|
-
Sep 13th, 2010, 11:04 AM
#1
Thread Starter
Lively Member
how to deploy vb.net windows in client computer
i am developing a windows application with postgres as my database.
my connecion string in my app,config file is follow....
Code:
<connectionStrings>
<add name="MyConnection" connectionString="Driver=PostgreSQL ANSI;Server=localhost;Port=5432;Database=pacs;Uid=postgres;Pwd=postgres;" />
</connectionStrings>
<system.diagnostics>
i deployed my application in my server computer and is working fine.
now i want to deploy my application in my client computer also. And i need to access same database in my server through network.
i dont how to proceed. please help me...............
-
Sep 13th, 2010, 01:31 PM
#2
Re: how to deploy vb.net windows in client computer
Moved To Application Deployment
-
Sep 13th, 2010, 01:57 PM
#3
Re: how to deploy vb.net windows in client computer
You're going to need to store the network name of your database server with the program; either hard coded, or in a data file. Then, at runtime you need to generate a ConnectionString with that value.
-
Sep 14th, 2010, 02:30 AM
#4
Re: how to deploy vb.net windows in client computer
You obviously already have the connection string in the config file. You simply edit that on the clients to specify the server name rather than 'localhost'. That's exactly the reason that you put the connection string in the config file in the first place.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|