Solved

How do I change the datasource for my Visual Basic 2008 project?

Posted on 2009-04-08
3
164 Views
Last Modified: 2012-05-06
I have a Visual Basic 2008 project that I've created using my local SQL database as the datasource.  I need to distribute this project to another department using the network SQL server's database as the datasource.  I need to know how/where I need to change config to get the project to point to this new location.    
0
Comment
Question by:MCSF
  • 2
3 Comments
 
LVL 11

Expert Comment

by:srikanthreddyn143
ID: 24102070
In the connection string, where you wrote change the DataSource name

"Data Source=SQLServerName;database=DBName;User Id=User Id;password =pwd;"
0
 

Author Comment

by:MCSF
ID: 24110816
Okay, after I've done this now it says it can't find the table.  I created this project click and drag style.  Are there other things to consider with regards to data paths  in my bindingsource, tableadapter, dataset etc?
0
 
LVL 11

Accepted Solution

by:
srikanthreddyn143 earned 500 total points
ID: 24111022
If it says it can't find the table, then you need to have a table of the name what you are using in you dataset/binding source in the network SQL Server.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Name Space error VS2015 1 35
Code enhancement 4 32
Vb.net progressbar with timer1 in visual studio win app 11 34
How can I add google maps in vb.net. 2 13
Article by: jpaulino
XML Literals are a great way to handle XML files and the community doesn’t use it as much as it should.  An XML Literal is like a String (http://msdn.microsoft.com/en-us/library/system.string.aspx) Literal, only instead of starting and ending with w…
1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question