Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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!

  • *Experts*
Posted

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

"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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...