Cassio Posted March 8, 2003 Posted March 8, 2003 Hi! Very newbie question: I have an app that uses a SQL Server thats on my machine. I want to move this app to another machine and still use the SQL Server thats on my machine. What do I have to change? Heres my connection string: Private ConnectionString As String = "Database=" & Modulo.DatabaseName & _ ";Server=" & Modulo.ServerName & ";Integrated Security=SSPI;Connect Timeout=5" What do I have to add to this connection string? User ID and Password? What else do I have to do for the other machine access my SQL Server? Thanks! Quote Stream of Consciousness (My blog)
*Experts* Nerseus Posted March 10, 2003 *Experts* Posted March 10, 2003 The easies things to change are the server name (in your Modulo.ServerName variable/property/whatever) and add a UserID/Password. Make your connection string look something like this: Private ConnectionString As String = "Database=" & Modulo.DatabaseName & _ ";Server=" & Modulo.ServerName & ";Connect Timeout=5;uid=" & ModuloUserName & ";pwd=" & Modulo.Password In the end, it should look something like this: Database=DBName;Server=yourserver;Connect Timeout=5;uid=sa;pwd=test -Nerseus Quote "I want to stand as close to the edge as I can without going over. Out on the edge you see all the kinds of things you can't see from the center." - Kurt Vonnegut
Cassio Posted March 10, 2003 Author Posted March 10, 2003 Thanks Nerseus I'll try that. Quote Stream of Consciousness (My blog)
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.