473,881 Members | 1,544 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

What fields are used?

Hi,

Is there a way in SQL Server, or Access to determine what fields are
being used in reports or joins, etc?

Scenario:

Field A in Table 1 is going to be either deleted or change data types,
and I'd like to know what impact that will have.

Yes...No?

Thanks,
Bodi
Jul 20 '05 #1
2 1291
Hi

This will usually depend on how your reports are being generated. If you
are using stored procedures to generate the data for the reports then
sp_depends may go some way to highlighting the procedure where it is used,
but overall you should still search the source code for all occurrences
either using a decent editor with a search function or manually. If your
code is in a version control system this sort of task is usually not as
painful!! Having a model of your database would also be a very good idea as
this should help to show all the relationships your table has to others,
looking at the information_sch ema views TABLE_CONSTRAIN TS and
CONSTRAINT_COLU MN_USAGE may help if the column is part of a Primary or
Foreign Key.

John

"Bodi" <az*****@hotmai l.com> wrote in message
news:89******** *************** ***@posting.goo gle.com...
Hi,

Is there a way in SQL Server, or Access to determine what fields are
being used in reports or joins, etc?

Scenario:

Field A in Table 1 is going to be either deleted or change data types,
and I'd like to know what impact that will have.

Yes...No?

Thanks,
Bodi

Jul 20 '05 #2
az*****@hotmail .com (Bodi) wrote in
news:89******** *************** ***@posting.goo gle.com:
Hi,

Is there a way in SQL Server, or Access to determine what fields are
being used in reports or joins, etc?

Scenario:

Field A in Table 1 is going to be either deleted or change data types,
and I'd like to know what impact that will have.

Yes...No?

Thanks,
Bodi


(s/field/column/g to appease Mr. Celko.)

Given that reports are something that a client creates, there's no way SQL
Server can report on what columns are used by a report.

The "Generate SQL script" function of SQL Enterprise Manager can be told to
include dependent objects, which means that if you generate the script for
Table 1, you can also get all tables and views that depend on table 1.

If you put a trace on your server, you can catch all statements issued
against a particular table or column. Or, you could add a trigger to your
table that could catch all inserts/updates/deletes against it. Not
selects, though, I don't think. Trace would seem to be your only option
there.
Jul 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
2116
by: Paul Morrow | last post by:
I have seen the technique where a number of rows in a database are displayed in an html table so that each column of each row is editable. They use a single form surrounding the table, where each field in any given column has the same control name. So for example, in the last_name column, every row in the table would contain an input field (of type "text") with the name "last_name". Is this safe to do? I know that multiple radio...
2
1925
by: Darryl Kerkeslager | last post by:
As the subject above hopefully makes clear, I want to do several reports, "with lots of fields not otherwise in database". These reports also have variable-length text. I have defined the following options (all users have Office 2000): 1. All Access solution. This appears to involve creating forms to enter data that is just put into a report, and never saved - an exercise in wasted development time, to my thinking. Also, the...
35
4221
by: wilsonidv | last post by:
Daer All: I have studied C language for just 2~3 months. I'd like to know the critical parts of C, focusing on these. Could anyone has many experiences tell me, please. Thanks and Regards.
4
965
by: John Dann | last post by:
I'm learning VB.Net with a view to converting from VB6. One simple detail I'm unsure of concerns fields (as class members). In VB6 I'd thought that declaring a class property just as a public variable (ie without get/set procedures) was deprecated though valid. I'm slightly surprised to see this same approach also turning up in what is generally the more formalised structure of .Net and even apparently being approved of with the title of...
32
2755
by: Stephen Horne | last post by:
I've been using Visual C++ 2003 for some time, and recently started working on making my code compile in GCC and MinGW. I hit on lots of unexpected problems which boil down to the same template issue. A noddy mixin layer example should illustrate the issue... class Base { protected: int m_Field;
0
9927
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9776
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10717
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10814
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9552
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7953
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7109
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5781
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4597
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.