Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: thorny00
  • Content: Threads
  • Order by date
  1. thorny00

    Extract data in blocks of 15,000 from outside server to my SQL database

    I have been tasked with extracting data from an outside SQL server. The problem is that I am hitting their "live" database. They only want me to pull 15k records at a time. The connection is set up and working fine. I want to use a date, i.e. service_date to pull the records, WHERE...
  2. thorny00

    Looping through a table to find records

    Thanks in advance for all of your time and help. It is greatly appreciated!! First, I need to find the record where - METRIC_INTERNAL_NAME = 'LOGIN' AND DATA_MNEMONIC_ID = 'DEP' Then collect all records until METRIC_INTERNAL_NAME = 'LOGOUT' AND DATA_MNEMONIC_ID = 'TIMEOUT' then loop...
  3. thorny00

    Running a cursor with only needed fields

    We have a cursor to check for reversal claims. The main table being used has 50 fields but only 7 fields are being used in the cursor. Would it increase speed of the cursor to create a "Working" table based on only those fields being used by the cursor? Thanks for your time and help.
  4. thorny00

    Update 2 fields from different tables

    Thank you in advance for your time and help and sorry if this has been posted before. I have one table - tbl_Members with 2 fields that need to be updated. The c_MemberID field is coming from RAW_Data. Is this even possible to do? UPDATE tbl_Members SET OLD_MemberId = MemberID, MemberID =...
  5. thorny00

    Check for existing database then use else create new database

    Very green to SSIS so please bear with me. Trying to set up a package to automate ETL. All of the processes happen on one server. Using VS 2008. 1) check to see if database exists - if it does, load file(s) into a specific table in that database. 2) if the database does not exist, have some...
  6. thorny00

    Date between two or more records min and max dates

    For simplicity, I have a table – Claims that has memberid and dateof service. My other table – Elig has membered, mineffectivedate and maxeffectivedate. Now a member could have several records in the Elig table. I need to find records where the dateof service is not between any of the Elig...
  7. thorny00

    microsoft 2005 sql equivalents to unix commands

    I am very familiar with Microsoft 2005 SQL. Now I need to learn Informix. Does anyone know of a "cheat sheet" that shows the microsoft 2005 sql equivalents to informix commands? Thanks in advance for your help and time, it is greatly appreciated.
  8. thorny00

    Paramater field to change table

    Using CR v10 I have tables that have the same fields in them that are being used in the report. What I’d like to do is set up a parameter field where when a client is choosen, it points the report to that clients table. Example: Client Table Abc Abc.elig Xyz Xyz.elig Would this be...
  9. thorny00

    Count records in multiple tables

    I have the following that gives me all the tables that with FOO in the table name. Now I want to list each table that has FOO in the table name and the count of records in each of those tables. I.E. TableName Count FOO1 1000 FOO2 50,000 FOO3 100,000 F004 90...
  10. thorny00

    Select MAX and MAX minus 1

    I have the following query, but I need to change the bathcid's each week. Is there a way to select the MAX batchid and the MAX batchid minus 1? select distinct pin from IN_Carolina_834Elig where convert (datetime,dob) = convert(datetime, '<<bthdat>>') and SSN = '<<Calc_MemberID>>' and...
  11. thorny00

    Do a comparison using a date stored as a varhcar

    The e.calc_mostrecenthiredate is stored as a varchar. I have the following as part as my Where statement: IsNull(convert(datetime,e.calc_mostrecenthiredate,1),'') >= '12/1/2005 00:00:01' but get the following error: Syntax error converting datetime from character string. Warning: Null value is...
  12. thorny00

    Create a random 6 character field

    I would like to create a random 6 character field that contains but numeric and alpha characters. How can this be done? i.e. 2TRE3GFH Thanks!
  13. thorny00

    Report Header using a CR date range

    Using CR 10.0 Want to show the week to date from Sun function in my report header. Below is what I have but it isn't working. Any ideas "Hours worked for" & " " & GroupName ({tblProjectsLog.User}) & " Period of" & totext(WeekToDateFromSun) Would like it to show: Hours worked for Joe Smith...
  14. thorny00

    Calculation that nulls are in one field

    Using CR 10.0 Have the following formula. The hmsend field can have nulls in it. How do I account for the nulls in the formula? {tblBatchMaster.RecCnt}/datediff("s",{tblBatchLog.HMSStart},{tblBatchLog.HMSEnd}) Thanks in advance for you time and help, I really appreciate it!
  15. thorny00

    Uncommited Transactions

    Using SQL2000 I was running an update with a Tran Rollback in Query Analyzer. Someone cancelled the run and now when I try to close QA, I get the following: There are uncommited transactions Do you wish to commit these transaction before closing the window? Options are Yes No Cancel What's...
  16. thorny00

    Joins with criteria

    Using SQL2000. I can not for the life of me figure out why the first query won't work properly, but the second does. Can someone please explain?? Thanks in advance!! This query that drops 10 recs when you add the left outer join: SELECT dbo.tblProgram.CliProdID, dbo.tblProgram.PIN...
  17. thorny00

    Need to compare a varchar date to getdate

    Have a field - enddate that's a varchar and looks like 08122005. There are also blanks in the enddate field. I need to get only those records where enddate < getdate, I do not want the blanks either in my results. How is this done? Thanks in advance for your time and help!
  18. thorny00

    Stored Procedure counters

    I'm new to creating stored procedure and in need of help. I have the following code so far, but, need additional data. In the FILE HEADER RECORD, I need to count the number of detail records and put it in the place of the 9 zeros. I then need to create a trailer record that would count the...
  19. thorny00

    Need to pull the forth record only

    Have SSN and StartDate fields. I need to pull only the 4th record when the count of records per SSN >= 4. Example: SSN StartDate 123456789 7/1/05 7/2/05 7/3/05 7/4/05 7/5/05 I only want to show the 7/4/05. Some SSN's have...
  20. thorny00

    Need to pull the forth record only

    Using CR v.10 Have SSN and StartDate fields. I need to pull only the 4th record when the count of records per SSN > 4. I group on SSN, then set up a formula FOO- count({StartDate}, {SSN}) then in the Select Expert I made FOO > 4 Example: SSN StartDate 123456789 7/1/05...

Part and Inventory Search

Back
Top