Sql - Find Tables Used From A .net Application To Remove Unused Tables?

May 10, 2012

We are presently developing an application, let's call it APP1, which uses a SQL Database which have about 800 stored procedures, 600 tables, etc. APP1 was originally created in order to replace another application, APP0, from which we do not have source code but only SQL tables, Stored Procedures, views, etc. Previous programers of APP1 used some DB objects from this same database and added some other objects specific to APP1 because it becomes bigger than APP0. And we do not need APP0 anymore as APP1 does all what we want, and more.

So, now, we are thinking about a way to find out which objects are used by APP1 in order to remove objects which are ONLY used by APP0.What is the best approach to discover all objects used by APP1 without having to open every single class and form?

Once we will have a complete list of these objects, it will be easy to use a program we bought which detects all dependencies for all SQL Objects specified directly from SQL and remove objects which do not return from any dependencies. Any ideas of how I could get this list without having to go through all our program that have many, many, many classes and forms?

Note : I know, in a perfect world, all calls to PSs and tables should be in a DAL but in the case of the application we're presently working on ... this is not our case! Yippy! (sarcastic yippy) ;)

Note 2 : This application is not using any ORM. So all queries are directly using SqlCommand. So any call to any DB objects are in string format.

View 3 Replies


ADVERTISEMENT

IDE :: Creat Application - find Tables And Use Them In My App. As Databases?

Jan 29, 2012

i wont to creat application, in wich with file location find tables and use them in my app. as databases

View 1 Replies

Timeout Using SQLite - Create A Database And Several Tables - To Populate The Tables With Data From Arrays

Jul 25, 2012

I am using VS2008 and SQLite. I have created a database and several tables and am attempting to populate the tables with data from arrays.

The following code (example) works fine but stops after it inserts 30 to 50 records. I am running the VB code in debug mode and when it stops, I press pause to see where it is. It stops on "SQLcommand.ExecuteNonQuery()" and when I press continue (F5) it will insert another 30 to 50 records.

I do not get an error message. Is this a timeout issue? How do I keep the loop running to the end of the array?

Following is example code.

Dim

SQLconnect As New SQLite.SQLiteConnection()

Dim SQLcommand As SQLiteCommand

CODE:.....................

View 4 Replies

VS 2008 DataAdapter.Update To DataTables With Multiple Base Tables (Joined Tables)?

Jul 12, 2011

have a datagridview containing 2 tables left joined, so that:table1 LEFT JOIN table 2 ON table1.id=table2.idI get an error whenever I try to edit my datagridview."invalidOperationException was unhandled by the user codeDynamic SQL generation is not supported against multiple base tables."The error points to this line:

da.FillSchema(dt, SchemaType.Mapped)
da.Update(dt) << This line
'da = dataadapter

[code].....

View 3 Replies

Update Tables Using Bindingnavigator Save Button From Join Tables

Oct 29, 2010

In my datagridview I was fill in using join tables (table1 = pr_employees, table2 = pr_employee_deduction). My problem now is during save button I want to update records from table2 only.[code]

View 3 Replies

To Add More Tables - Access All My Tables Togather At A Time

Mar 25, 2009

I have a 5 tables in my database and i want to access all my tables togather at a time.e.g.I have a code for one table i.e. rs.Open "select * from Group_info", con, adOpenDynamic, adLockBatchOptimistic. instead of Group_info table i want to access 5 tables also as Login_table,User_info table,group_name table etc. How i do that

View 11 Replies

Dataset.tables<>.rows.find?

May 31, 2010

I pass it a valid dataset that has the department name and the Department id as a number..20, 40, 30..... I want to get the department number.. I pass it HR(which is in the ds.table) but I am getting an error on the rows.find() "Input string was not in a correct format" it is a string.. what else could i be doing wrong here...

Public Function GetDeptID(ByRef ds As DataSet, ByVal strDepartment As String) As Integer
'Dim dr As DataRow
' Check to see if date is already in the table

[code].....

View 5 Replies

VB And SQL - Compare 2 Tables And Find Who Is ID Number 1 ?

Jul 21, 2010

I have 2 tables

First table contains

ID and Name
1 X
2 Y
3 Z

Second table contains dates. That my employees exit time

Id and Hour

1 17:00
5 17:01
6 17:02
7 17:05

Now I want to compare 2 tables and find who is ID number 1 ? How can I do this?

View 1 Replies

Fill Combobox Using SQL Show Tables - Datagridview Does Show Table Names In Db Using The SHOW TABLES Sql Statment

Jun 6, 2011

SQL statements:

SQL = "SHOW TABLES;"
Try

conn.Open()

The remarked area works fine when I'm accessing a specific table. I've successfully inserted the products_model field into the combobox too. The datagridview does show the table names in the db using the SHOW TABLES sql statment, but I'm not understanding how to get this info into the combobox instead.

View 1 Replies

Connect MS Database Tables To VB Windows Application?

Jun 10, 2009

I've been trying to connect a MS database to a V.B. form unsucessfully.Actually when i try to do that, i can't connect the tables information to the form or store the information i enter in the form in the MS table.I was doing an exercise here, and to store the information in the table called readers, i typed:

View 1 Replies

Develop An Application That Involves A Lot Of Tables And Maths?

Mar 7, 2011

I would like to develop an application that involves a lot of tables and maths, and then displaying the results. I can visualize how this would work in SQL, as far as creating the stored procedures and tables required, however the front facing application would be a completely new experience to me.I would probably be sharing the built application with friends, but completely as a no profit tool. I assume that the developer edition of dot net is a suitable option? My main query is, is dot net really the best way to develop this tool? I have a strong feeling that I will not be able to use SQL as this would require a server to be run, and this is not practical. Can the tables be implemented into a DLL or similar to be used by the application for example?

View 4 Replies

Storing 3 Tables Of Data In Application Settings

May 16, 2010

I will need to store 3 tables of data. Instead of implementing an entire database backend, I just want to store the record for these tables in application.settings.I don't care about security. Is it advisable to do it with application settings? how else would you do it? Perhaps storing a matrix in application.settings would be OK?

View 4 Replies

Insert Into Multiple Tables In Windows Form Application?

Jan 11, 2011

i am using vb.net(2008) and MS access as my database.[CODE]...

now i want to insert into these tables. how can i do that? i know how to insert into a single table for example listed below, so how can i modify that so that i can insert into multiple tables[CODE]...

View 1 Replies

VS 2008 Multi Language Application - Two Tables In Database

Jul 10, 2009

I'm building a multi language application, but in the application, there will be some data that will be retrieved from the db. In the db I have two tables (Access Groups, Teams) the two tables are related, there are some groups, that have teams, example (sellers can belong to team 1, team 2, team 3...). The data that will change it's the names for the access groups and the names for the teams. The only way that I can think to do this, is to have the different values for all the languages in the code, or some auxiliar file, and when loading the application I'll truncate the two tables and fill them with the current language values. By the way those values never change...

View 5 Replies

.NET Remove Unused Code Tool?

Apr 23, 2009

I need to remove all the unused code in my companies project. There is about 1.5 million lines of code, therefore I need a tool to help track it all down. I was wondering if anyone could recommend a tool. I found Project Analyzer but I need good justification on why we need to use this software because the verndor is foreign based.

View 2 Replies

Make A Database Fill It With Tables And Then Fill Tables

Aug 14, 2009

I am trying to make a database, fill it with tables and then fill the tables. I am having problems connecting to the server and am really not sure why. I have posted this thread in two areas of this site because I was not sure what was the best area to put it in. [code]

View 3 Replies

Wpf - Load Dropdown Lists From Reference/lookup Tables For A Desktop Application?

Aug 15, 2011

what is the best way to load dropdown lists from reference/lookup tables for a desktop application? the application is layed out into 3 tiers. I've built up my entities.the front end has a form with 6 tabs. and one big save (another discussion :)Should I load them all when the form is initially loaded? Are there any caching mechanisms I could use?

it is vb.net app on a network drive that is accessed by several users.it's also worth noting that some reference tables may be updated. Via another form.

View 2 Replies

VS 2010 Remove Null / Unused Arrays From A Program?

Sep 19, 2011

How to remove unused arrays from a program? The array is has an upper bound of 19. If the array isn't full, I get a null array error.

View 9 Replies

In MS Access, Have To Compare Values From Two Different Tables, And Find The Difference Between The Values?

Jul 15, 2011

I have a two different tables, Table 1 and table 2.

Table 1
-----------
Resource
Start Date
End date

[Code]....

Here I have to match the total hours of each table according to the resource,
then have to find the mismatched data and find difference with that values of mismatched data.

View 2 Replies

How To Find Unused Variables In Project

Sep 22, 2009

In my project there are lot of variables, and some of them are not used at all.I want to clean up the code by removing these unused variables. These variables are not shown as unused when i build the application. The problem is with the global variables, and not with the local varible for a function .Is there a method to find these unused variables?

View 8 Replies

Get Rid Of Unused System Properties Like Unused Button Names In VB 2005?

May 30, 2009

I have created some check boxes and buttons, and changed the names, but it seems like the system.properties saved both names now I would like to rename the button back to the original name but the name is being stored for some reason, and I cant access the original name, how do I clean this up?

View 6 Replies

Forms :: VB - MDI - Application That Consists Of Mainly One Main Form - Ranging Form Graphs, Tables, Dropdown Boxes, Print Preview

Apr 7, 2010

I have to write an application that consists of mainly one main form, but several different things I wanna display. Pretty standard I guess. So there is a menu, some controls, and the main stuff below (ranging form graphs, tables, dropdown boxes, print preview, etc). I would like to use it like one would use frames in html, design an object that is limited to a box or panel that I define. The literature I have does not give me a clear idea of how to do this (yet). The most obvious seem to be the use of MDI, open a predefined form with no borders, maximize it before showing and remove all minimize/maximize options. But that does not work so well. The form inside the MDI parent does not fit the size that is given for it when it is loaded. e.g.

[CODE]:......................

So my main question is: Is MDI the way to go here at all or are there better/easyer ways to achieve this? If MDI is the way to go, how do I sucessfully restrict a child form inside another object, without giving the user any opportunity to resize (i noticed that I have minnimize/maximize/close buttons, even if I disable them on the child forms themselves)

View 6 Replies

.net - The Report Has No Tables

Sep 13, 2011

Private Sub frmReportExpenses_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim objDatasetExpence As New dSetExpences // dataset object named as dSetExpences
Dim objRptExpence As New rptExpences // Crystal report object
Dim MyCommand As New OleDbCommand()

[code]....

This code show error "Report has no tables"i want to show crystal report using Access 2003 Database pragmatically. blank report is added in project and trying to fill it DataSet object.

View 1 Replies

Anyway To Create Tables

Dec 31, 2010

I signed up for a free 30 of Azure. I logged in, created a database. I am able to connect (=Test Connectivity). But that's it. I don't see anyway to create tables, etc. Also how can I connect this db to vb.net (I am using vs.net 2010)?

View 3 Replies

Are There String-tables In Dot-net

Dec 5, 2010

I've been programming an application for someone, and have run into various questions.

View 2 Replies

Can't Get It Right Multi-tables

Jun 10, 2012

I really need assistance for this multiple problem am facing here. Let me take you to my hell: I've got three tables in my database that are:

1) tbAthlete (athleteID, nationID, gameID, fname, lname)

2)tbNation (nationID, nation)

3)tbGame (gameID,game)

I connected the database to vb and created a (form1) based on a query that use all fields except IDs. that form1 is just good as displaying and navigating throug records. Now i wanted to link that form1 to another form(2) which will allow me to update and add new record. in the form2, country and game need to be combobox as there is no need to enter new record for them. so when adding new record, only "tbAthlete" table get affected. form1 works as excpected. how do i go for the form2

View 6 Replies

Check Whether Two Tables In SQL Are The Same?

Jun 21, 2010

How to check whether two tables in SQL are the same using vb.net? Would u mind giving me the code?

View 2 Replies

Compare Two Tables In .net?

Apr 13, 2011

I would like to know how to compare two tables which are in a datagridview each one. I imported one from excel and the other one from sql, i want to add the info that is in each cell of excel's table in sql table..though i don't want to have duplicated data.I want to do something like this

'datagridview1=exceldv
'datagridview2= sqldv
for each item1 in exceldv
for each item2 in sqldv

[code]....

View 2 Replies

Comparing Two Tables?

Aug 30, 2009

I want to track changes of a document which sits in a DB table like :

document starts
document continues 1
document continues 2
document continues ...
document ends

(Each line is a record but if needed I can combine them all to one record)I have the document before changes in one table and the document after the change in another table.My problem is that if I just compare them by ID then I'll get many more changes than actually occured. Ex: If a line (/record) was added between record 2 and record 3, instead of tracking 1 change I will see that all the records from 3 and on have changed (because they will be pushed off by one record). Can be also something which knows to compare documents and I'll take the information out to document for comparison.

View 1 Replies

Connection Between Two Tables?

Dec 31, 2010

I have a table called PARTS and table called PARTEXT.

PART has:
PartID
PartDescription
PartCostPrice
PartSalePrice
PARTEXT has:PartID
PartImagePath

For some reason (please don't ask me why) the designer of the database splitted the tables.I need a sql command to "combine" between the two tables by making new View, so it will show the content of the PART table and in each row it will get the PartImagePath of the same PartID that both tables have.

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved