Solved

How to identify columns and db name in VB.net

Posted on 2016-08-14
9
36 Views
Last Modified: 2016-08-19
We have a series of VB.net code that we can't find the databases was designed for.  We would like to know what area to look at in the code where databases and fields are being coded.
0
Comment
Question by:rayluvs
  • 5
  • 3
9 Comments
 

Author Comment

by:rayluvs
ID: 41755677
Note: we have someone searching other computers for the database.  With the data identify we can relate code and db (also note, and forgot to put in the question, the database are in MS SQL2005)
0
 
LVL 12

Expert Comment

by:funwithdotnet
ID: 41755708
Does the vb code contain a connection string? that the only place that "needs" a database reference.
0
 

Author Comment

by:rayluvs
ID: 41755745
Don't know... how can we identify these area of connection string?

Also, these connection strings, are they called everytime the table are being read or written?
0
 
LVL 62

Accepted Solution

by:
Fernando Soto earned 500 total points
ID: 41755903
Hi rayluvs;

See if you can do a global search for one of these types in the code SqlDataAdapter, SqlConnection, SelectCommand, or SqlCommand.

To your question, "Also, these connection strings, are they called everytime the table are being read or written?", no they are used when the program needs to connect to the database before any data can be passed back and forth.
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Author Comment

by:rayluvs
ID: 41756398
Thanx!!
0
 

Author Comment

by:rayluvs
ID: 41756402
Last question, what command in the code does an actual write or read to the tables?
0
 
LVL 62

Expert Comment

by:Fernando Soto
ID: 41756514
That depends on the technology that is being used. You can look for SqlDataAdapter.Update command to see if you find it.
0
 

Author Comment

by:rayluvs
ID: 41762211
Thanx!
0
 
LVL 62

Expert Comment

by:Fernando Soto
ID: 41762272
Not a problem rayluvs, glad to help.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Red error squiggly on vb.net 7 27
Close tabpage of custom control 9 24
Error "String or binary data would be truncated" in an update on a datatable 7 29
Variable Event ? 3 23
This tutorial demonstrates one way to create an application that runs without any Forms but still has a GUI presence via an Icon in the System Tray. The magic lies in Inheriting from the ApplicationContext Class and passing that to Application.Ru…
Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…

863 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now