Silly question .. "typed" connection strings

E

Earl

I've started using these typed datasets, but of course, they automatically
assign my dev. server to be the server name. However, I am using some XML
methods to save and retrieve the connection string, so that I can deploy the
app anywhere. The silly question is how to "redirect" the string from the
properties/settings that are hardwired in by the "typed" objects to the
actual string that's been set by the user?
 
E

Earl

Before anyone goes astray here, I can change the actual string on the
connection, but what to do about the default strings pointing to the dev.
server being held in Settings.settings and Settings.Designer?
 
G

Guest

Use (local) instead of the machine name. You might also want to use the
GetComputerNameAPI call to determine the machine name and add it to the
string programmatically.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top