Solved

Update SQL timesheet program

Posted on 2008-10-21
5
235 Views
Last Modified: 2013-11-27
Some years ago a predecessor wrote a program in VB6 for our company to use for timesheets. It stores the entries in an SQL 200 db. We have installed a new SQL 2005 and want to point the program to the new SQL server but I do not see where to change that info. The program does not add an ODBC connection to the desktops. I have Visual Studio installed on my PC but have not found where the program gets pointed to the old SQL server. What file should I be looking for?
0
Comment
Question by:LarryDAH
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 42

Expert Comment

by:dqmq
ID: 22769088
Scan the code for a "connection" object.  The connection string could be hardcoded in the code or it could be stored in a configuration file or who-knows-  what other inventive places.  But find where the code is opening a connection and  you should be on your way.  

0
 

Author Comment

by:LarryDAH
ID: 22769357
It seems that the version of Visual Studio that I have will not open the files as a project altho it will open any given file. This could take some time, know of any work around?
0
 
LVL 18

Expert Comment

by:mdougan
ID: 22769370
Yes, typically, connection logic would be stored in a global Basic module  (.BAS file), so that it could be called or used from all other code in the application.  You can search for .Open   too, or ADO, or OleDB.

If no ODBC DSN was created on the client machines, then the connection string is either hardcoded in the program, or read in from the registry, or an INI file of some sort.
0
 
LVL 18

Accepted Solution

by:
mdougan earned 500 total points
ID: 22769400
Yes, you can download for free a tool called TextPad.  This is a basic Text Editor program.  It has a feature called Find In Files.  You would click on Search|Find In Files   then specify the root directory for your project,  *.* for file type,  the word you want to search for as the search term... don't check the Compare Case checkbox or the Whole Word checkbox... if there is an option to check subfolders, check that.  Then search

You can try the same thing with the Search tool under the Windows Start Button, but that never works very well for me when I'm looking for text inside of files.
0
 

Author Closing Comment

by:LarryDAH
ID: 31508382
Textpad let me view the code but I could not find the entries that I needed to fix. I will have to go another route to fix the issue.
0

Featured Post

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Viewers will learn how the fundamental information of how to create a table.

749 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