Field List Disappearing

Mar 18, 2008


I'm trying to modify an existing report. But if I make any change at all to the query (anything at all, like add a space), when I switch to the layout tab, the list of fields in the field list disappears. Un-doing the change does not restore the field list. The query runs fine from the data tab and returns a valid resultset.

Any suggestions?

This is with RS 2000 and Visual Studio 2003. Specifically, I'm trying to modify the Sales Pipeline Detail report from CRM.

Mike G.

View 1 Replies


ADVERTISEMENT

Return Only The Rows From A List That Has The Same Value From One Field

Aug 2, 2006

I am in need of help to develop a query
I have two tables Exams and Exams_lab, that are joined by a field id_exame. I want to return The Exams that has all the dependent rows in Exames_lab with the same value in the status_int field of Exames_lab. Can anyone Help Me?
Lets see an example
tb_exame



id_exame
date_exame

1
07/01/2006

2
08/01/2006

3
09/01/2006
tb_exame_lab



id_exame_lab
id_exame
desc_exame
status_exame

1
1
NORMAL
1

2
1

0

3
2
NORMAL
1

4
2
PROBLEMS
1

5
2
OK
1

6
3
OK
0
in this exemple my query must return only id_exame 2 and 3 because id_exame 1 has two different values on id_status on tb_exame_lab
can anyone help me?
 

View 5 Replies View Related

How To Strip A List Of Characters From A Field

Nov 8, 2001

hey,
what the best way of stripping out a list of characters from a specified field in a table. e.g If first name consists of ABCD'E-FSA, we wnat to strip the ' and the -. There is about 15-20 characters like that.
what's the best way of doing it other encapsulating in the replace function that many times.
thanks
zoey

View 2 Replies View Related

Control Source Field As Value List

Nov 22, 2005

Hi!
I have a strored proc which adds up fields separated by semicolon into a new one and I'd like to use it as a combo box's control source field as a Value list. But it's just insert the whole field into one line like value1;value2;value3 .
Is there any way to get these values selectable in the combo box?

Thanks in advance for any help.

Vill

View 1 Replies View Related

Field List From A Stored Procedure

Apr 16, 2004

I am writing a utility that creates Java code to access a database. I am looking for a way to get a list of fields and types that are returned by an sproc. Is there any easy way to get this from the master? Do you need to parse the SQL? This list would be like what Visual Studio.NET shows, or interdev if I remember correctly.

Thanks,

Larry

View 5 Replies View Related

Retreiving Records If The Ff. Field Is On A List..

Jun 23, 2008

hello dudes. i've got the following table:


table name: assassins

fields:
assassinid int, identity, primary key
assassinname nvarchar
assassincallsign nvarchar
knifekills int
sniperkills int
stealthkills int
fibergarotekills int


sample data:
1, Dana White, tapout, 12, 0, 12, 1
2, Chuck Liddell, iceman, 30, 0, 0, 2
3, Timothy Oliphant, FortySeven, 100, 20, 150, 30

supposed i want to retreive only those records whose type of kills is on a given list, how do i do that? the list is actually dynamic since the kill types is actually coming from a checkbox on my page:
[] Knife Kills
[] Sniper Kills
[] Stealth Kills
[] Fibergarrote Kills

supposed i will only check Knife Kills, it will only retreive those records whose knifekills > 0

or if i check Snipers Kills and Stealth Kills, then those records whose sniperkills and stealthkills is > 0.

any of you know how to do that?

U + U + D + D + L + R + L + R + Sel + Start...

View 12 Replies View Related

Populate DB Field From List In “storage� DB

Aug 10, 2006

I am fairly new to SQL programming and would like to see if you can provide me with some direction on a small project I would like to accomplish. I have experience working with databases (mainly in with different versions of FoxPro) and reporting with Crystal reports, etc. but not much with SQL.

The project that I would like to work on has 2 SQL DBs and entails looking in a database for empty CLASSCODE fields, populate these fields from a “storage� database that contains un-used CLASSCODE codes and delete the assigned codes from the storage DB or mark them as used possibly the book code.

The main DB called books has the following relevant fields, bookid, bookname, CLASSCODE (besides a number of other fields which are irrelevant to what I need to do). The “storage DB called classcode has 3 fields, CLASSCODE, Used (single character intended to contain either a Y or NULL) and date assigned. The original idea was to put a Y in the used field and insert the date the code was assigned to a book, but this is not entirely necessary, we have 90k unused codes and it really does not matter if they are simply deleted from the DB.

My idea is to create a script to accomplish this that I can run periodically when new books have been added to the DB. I can setup the update routine (something like the list below) but what I am stuck with is trying to do the following:

Pick the first record (classcode) from the classcode DB
Go to the books DB and update it with this classcode
Go back to the classcode DB and mark the used record with a Y in the Used field
Loop though the books DB and perform the same operation until no more records exist with an empty classcode field.

I will greatly appreciate your feedback you can provide.

Mike.

UPDATE [dbo].[Books]
SET dbo.Books.Classcode = [dbo].[classcode].[classcode]
From dbo.classcode
On [dbo].[Books].[classcode]= [NULL]

Populate DB field from list in “storage� DB


Mike Campos - CA

View 2 Replies View Related

Transact SQL :: List All Available Values Of A Field?

Aug 10, 2015

I have [TableAccount.AccountType] field which can store these values:

Value
C
S
E

How do I list all available values for a field?  Using Distinct can only list all entries in the db, but does not list all values available for the field.

View 4 Replies View Related

Append String To Field Value In Select List

Jul 26, 2004

How can I append a string to the field value in the select list


SELECT Code + '-20' FROM tb.....

I want to the above to return 2000-20 for example.

How can I do this?

Mike B

View 1 Replies View Related

Unknown Column 'state' In Field List

Feb 25, 2006

I installed a script that is suppose to accept paypal, however on trying totest a payment, I get this error msg:ErrorDatabase access errorand I get this error msg emailed to me:Unknown column 'State' in 'field list'Query: 'INSERT INTO `TransactionsMembership` (ID, Sum, State ) VALUESwhat could be swrong, importantly how do I fix it?

View 2 Replies View Related

Power Pivot :: Field List Does Not Refresh

May 31, 2015

I am having issues where the PowerPivot Field List does not refresh once I add a new table/field then select Refresh All under Data. I have to refresh every single PowerPivot Field List so they are all refreshed. ("PowerPivot data was modified" message). This doesn't happen at first but once the model is built on it tends to happen.I'm on Excel 2010 PowerPivot 2012 SP2 32bit. I have Windows 7 64bit and I'm wondering if the bitness inconsistency is an issue.

View 3 Replies View Related

Error 1052 - Column In Field List Is Ambiguous

Aug 7, 2014

I am trying to get a country name out of my database:

I have 3 tables

classified_jobs
classified_job_destinations
destination_old

I am trying to join the 3 as follows:

select DISTINCT destination_id, classified_job_id from classified_job_destinations inner join classified_jobs
on classified_jobs.classified_jobs_id = classified_jobs.classified_job_id
LEFT JOIN destinations_old
ON destinations_old.destination_id = classified_job_destinations.destination_id WHERE classified_jobs.classified_jobs_id = '438'

but I am getting the error: #1052 - Column 'destination_id' in field list is ambiguous

View 7 Replies View Related

How To View Field List On The Left Side Of Report Layout

Jan 4, 2007

I want to see all the fields list on the left side of report layout, you can drag a field and put it on the report.

Thank you very much.

View 5 Replies View Related

How Do You Parse A Single Field List Of Values Separated By Comma?

Jan 3, 2008


IE:
ID ContactID

1 4, 5, 6, 8
2 3,4,6

Someone coded their database like this. It is a SQL server table with these two fields.
How do I use SSIS to parse out that single field?

View 5 Replies View Related

SQL Server 2008 :: Turn Field Values Into Comma Separated List

Aug 11, 2015

I have about 100 K records of the form below in Example 1 and I would like to turn them into the form of Example 2, basically turn the entries in field2 into a coma separated list of values sorted by field1.

Example 1:

field1_field2
1_____a
1_____b
1_____c
2_____f
2_____g

and I would like to get it in the form

Example 2:

field1_field3
1_____a,b,c
2_____f,g

View 2 Replies View Related

DTS And Disappearing Index

Jan 12, 2001

I have a similar problem to the one indicated by David Van Diest. I could not find any answers to his query.
Could anyone help!

Thanks


Mon, 8 Feb 1999 16:24:55 -0600
From: David Van Diest
[sql7] DTS and disappearing indexes


I have noticed that if I use the Microsoft ODBC driver for SQL Server when I
transfer data from one database to another my indexes disappear. If I pick
other odbc source and then fill in the data source my indexs do not go away.

Anyone else see this behavior? I don`t think it should be working this way.

Thanks,

Dave

View 1 Replies View Related

SQL Commands Disappearing!?!?!?!

Nov 7, 2001

I am experiencing a situation where I issue a lengthy SQL command to MS SQL Server 7.0 through MTS and it "disappears" - no errors or recordsets are returned. The command is "SELECT * FROM CUSTOMERS WHERE LASTNAME LIKE 'SMITH%'". When I issue this command from SQL Query Analyzer it takes 27 seconds to return 87 rows. When I issue this exact same command through MTS it does not return at all.

I've used the SQL Profiler to analyze the requests. It shows the commands from MTS starting but they never stop (or at least the profiler never reports them as stopping). The same commands coming from Query Analyzer are reported as starting and stopping without fail.

Here's a twist: I can issue less demanding commands (ie, one that doesn't take so long to process) through MTS and they come back fine. For example, when a user logs into my application, I use an SQL statement to verify the user name and password and status the user as logged in. This is routed through MTS and it comes back fine in less than a second. Same application, same PC, same MTS and SQL server, same SQL database. The only difference is that the CUSTOMERS table has over 800,000 records and the USERS table has only 5 records.

PLEASE HELP!

View 1 Replies View Related

HELP!!!! Data Disappearing

Oct 25, 2001

HELP!!!

I have three servers replicating. One is a publisher and two subscribers. If I put data in the publisher, some of it will disappear after replicating. When data is entered in one of the subscribers, the same thing happens.

Anyone have any ideas??? I am doing a merge replication and all servers are running SQL Server 2000.

Kameron

View 3 Replies View Related

Databases Disappearing!!

Jun 16, 2004

Ok, I'm new here and I REALLY need some help here.

In my organisation, we have a Server with MSSQL 7 running with some databases. Some of the databases are published for replication.

Now, since Monday, we've been losing databases that are in use! :confused:

The files are disappearing and being marked as suspect in SQL. The physical file has been deleted from the machine even when SQL is running and on some databases are replicating. In one instance, we were making permission changes on a user and it just said that the file is no longer there. And when we checked, the msdb system database had disappeared as well. So now the server is showing up as having no databases. We were able to recover some of them through backups and a handy recovery tool. But now we are helpless as to WHY this is happening. We suspect Virus but we have Norton CorporateEdition running and Liveupdate updating every day.

I've searched the web for any one that had the same problem, but nothing came up. Only some stuff saying that space was an issue, but not on a drive with 21GB remaining and the biggest database is 3GB...

Any help, insight or resolution will be greatly appreciated.

View 1 Replies View Related

Disappearing Records

Jan 17, 2007

I am running an Access 2000 MDB against a SQL 7 back end, using ODBC linkedtables over a LAN and a WAN. The system has been operational for years withrelatively few problems.Recently, WAN users have been reporting several hundred records disappearingat a time. The records are all sequential, and they're in a table thatcontains about 60,000 records. This all started last week at about the sametime (not sure if before or after) that the WAN went down for a couple ofhours for an unknown reason. Since then, every once in a while, a WAN userwill report that several hundred records in a block are just "missing."Then, an hour or two later, they reappear.Any ideas as to what's going on or what can be done to rectify this?Thanks!Neil

View 8 Replies View Related

Disappearing Data

Dec 18, 2006

I am not sure where to put this but correct me if i'm in the wrong forum.





I've been working on this database for some time now. It's an Access 2003 database with a SQL backend. Everything was going well until one of the users noticed her data was disappearing after she send an email. The database has a memo field that gets pasted in the body of an email when it is created. Sometimes, when the user sends an email and goes back into the record, the memo field is blank. I know the field has data in it at the time of the email because it will give you an error if the field is null and you won't be able to send it. And, it goes into a history table with everything the user does with each record. I've checked this history table and it shows that all records in question, an email was sent. I have no idea why the data would disappear in this field. It does not happen all the time. I've performed the same steps and I can't duplicate the problem. There's no code associated with the memo field that deletes it after sending the email. Can anyone think of anything that would cause this?

View 4 Replies View Related

Disappearing Data In SQL Server

Apr 5, 2005

The problem i am facing here is disappearing data in sql server 2000. I
not sure what is the problem, but it is getting worse and worse. Anyone
can point me to a right direction whether this is a security
vulnerability which i need to download the patch, or is it my computer
is infected with virus., or is it a bug in sql server?

I remember having read somewhere about this problem also, but not sure
in which website already. Anyone, please help!!! Because we are going
to deploy to production server soon, and this is a problem that need to
be solve ASAP..

Thanks in advance...

View 13 Replies View Related

TempDB Users Disappearing

Nov 7, 2001

I am supporting a system that needs to allow users to have access to Temp DB. I set these users up using the GUI, but whenever the server is restarted, these users are wiped out. Is there anyway to keep these users when the server is rebooted?

Thanks for any help.

View 2 Replies View Related

Disappearing Stored Procedure

Oct 15, 1998

A user created stored procedure is dropped from system tables where no known drop procedure command is executed.

From ISQL the procedure runs properly after creation but, at sometime during execution the procudure dropped from the system tables.

Any help would be appreciated.


Environment:
SQL Server 6.5 sp4, windows NT 4 sp3, db-library, visual C++

View 1 Replies View Related

URGENT! Rows Disappearing

Jul 4, 2006

Hello together,

strange things going on:

1. The table statistic shows for example 67 rows in a table, select count(*) only returns 63 rows.
2. Table statistic shows 50 rows, select count(*) returns 55 rows.

In both cases if you do an insert the newly inserted row sometimes can be retrieved by a select statement sometimes not. Row statistics sometimes is updated correctly, sometimes not.

Integrity check for these databases says everything is fine. DBCC CHECKDB, DBREINDEX, UPDATESTATISTICS, ... does not help or says everything is fine.

Already opened a case at HP's Microsoft support and they involved Microsoft itself but all are a little bit clueless at the moment.

As this is our main DB cluster and several databases are affected we had to stop most of our applications since last Thursday and now we are getting a little bit in trouble so any hint is very welcome.

Thanks in advance

PS: Restore is not an option - as all tools say everything is fine all of our backups from the last months include the error. Don't ask why nobody recognized the lost data earlier, seems they were stored but not required for some time.

View 4 Replies View Related

Fields In My Tables Are Disappearing!

Feb 24, 2006

I am using a hosted MSSQL 2000 database that powers the backend of mywebsite. Website visitors interact with it via ASP pages I havedeveloped. I also have an internal FileMaker 7 database thatperiodically synchs with it via Filemaker's ODBC functionality.Several times now, I have come in one day to discover that my ASP pagesdon't work. When I look into it, one of my MSSQL tables will be missinga few fields. There is nothing in any of my code that sends an ALTERTABLE command or any other command that affects table structure. Thesedeletions of fields is totally random.The most recent example was with a table called FreeTeacherSubs. I justdiscovered today that three fields went missing:HowDidYouHearAboutYES TEXTFollowUpCallOrEmail TEXTHowMaterialsFit TEXTSuffice to say I am baffled! Has anyone ever experienced fieldsdisappearing from their tables?Kevin

View 2 Replies View Related

Records Appearing And Then Disappearing

Jul 20, 2005

Hi,We have a SQL server db backend for our ERP system. I have written aCrystal Report to extract data from one particular table calleditemspecbomw (c.30000 records) which contains amongst other thingsBill of Materials costings. When I run the report I know that somerows are missing as when I look at values through the ERP systemitself, the values are different.What I have found is that when I run the equivalent ERP system report,the Crystal Report I have written shows extra rows. SQL Query Analyserbehaves exactly the same as the report I have written even when usinga "select * from". I have tested opening up a bigger tables (c. 700000records) which appears without a problem. If anyone knows why thismystery is happening, I woould be grateful for your help.Many thanks,Tony.

View 2 Replies View Related

Disappearing Data -- SQL 2000

Jul 20, 2005

I'm using an Access front end to a SQL 2000 database.I have a form from which I enter data. Everything seems fine, I check thetables and my records are being inserted.When I close Access and reopen it, data from three of my tables is gone.SQL Profiler turns up nothing. If I try to access a problem table fromEnterprise manager while Access is open I get an ODBC error. If I try toaccess it after I close Access, the records are gone.Where do I start looking to figure out where the problem is? I'm at a lost.TIA for help.--Jake

View 4 Replies View Related

Rows Disappearing In View

Jul 15, 2007

I have two tables that have a column called "subscriberid". I imported rows into the main table, and it's sister table.

There are 90,000 rows in the main table and 94,021 in the other table.



It appears that roughly 4,000 rows have disappeared in the main table, but not in the other table, and I don't understand why?



I'm new to SQL Server 2005 Express and I'd appreciate any help you can give me.



Thanks,

Bill

View 4 Replies View Related

Disappearing Precedence Constraints

Jan 25, 2007

Has anyone seen precedence constraints disappear in a package after closing and opening again? In this case, it's not package-wide. Only constraints inside one Foreach Loop container disappeared. Any idea what causes this to happen?

p.s: Yes, I did Save All. Most of these contraints were saved in the package for more than a week anyway.

View 14 Replies View Related

Stored Procedure Disappearing Act

Apr 11, 2008

I created a simple stored procedure shown below. It works wonderfully. The only problem is that it likes to disappear on me. I am accessing it through a VB.Net program. The system will work fine throughout the day and suddenly it will be gone. I can exit Sql Server Management Studio and come back in and it will still be there so that is not causing it. The database stays connected all the time.

Any suggestions?



Code Snippet
IF EXISTS(
SELECT *
FROM sys.procedures
WHERE name = N'VerifyPart'
)
DROP procedure VerifyPart;
--create a procedure for the part code tab verify part function
go
create procedure VerifyPart
(
@PartNumber varchar(50) = null,
@LastUpdated varchar(30) = null
)
as
--Update Part Number
update Parts
set LastUpdated = @LastUpdated
where PartNumber = @PartNumber





View 8 Replies View Related

Maintenance Plans Are Disappearing...

May 25, 2007

I'm not even sure where to post this, but has anyone had a problem with maintenance plans disappearing?



I mean the SSIS package and the job just disappearing....?



I have four servers. Two dev and two prod. I created a pretty simple maintenance plan to backup databases. There are four tasks in the plan. One for each of four databases. Backing each up to a separate file, all in the same folder.



The plan gets associated with a job that has it run daily, every six hours, with no end date.



The plan runs just fine. Then this morning, on one of the servers, the plan and its job are just gone.



This is the second time this has happened. And it's not the same server that it happened on the first time.



Why would a maintenance plan just disappear?



Anyone?



J

View 1 Replies View Related

Data Disappearing During Run Time

Jan 5, 2007

When I enter data into a SQL database and save it, the data that I have just added disapears, but when I close the applicaiton and re-open it, it's still there - is there any reason for this and any way to get it to stay?

Any ideas?

View 7 Replies View Related







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