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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by NiceArms

  1. NiceArms

    Email Not Sending When Adding File Names to Body of Email

    Hello, I am having an issue with adding file names to the body of an email, when I add the file names which are passed to the body via a variable the email will not send (no error appears), however if I pass some text to the body the email sends. Does anyone has any thoughts? 'on error resume...
  2. NiceArms

    Deriving a Column that Calculates Date Difference in Minutes

    This will give you the difference between the createddate and releasetime in minutes (assuming that both fields are datetimes?) DATEDIFF(MI,PCR.CreateDate,PCR.POReleaseTime) I feel sorry for people who don't drink, when they wake up in the morning that's as good as the're going to feel all day!
  3. NiceArms

    Blank a field if contains a date

    do you mean, SELECT CASE WHEN RM_JOB.ACTUAL_COMPLETION_DATE = '01/01/1999' THEN NULL ELSE RM_JOB.ACTUAL_COMPLETION_DATE END FROM ATable I feel sorry for people who don't drink, when they wake up in the morning that's as good as the're going to feel all day!
  4. NiceArms

    selective rollups?

    Gah i missed you last post!!!! http://msdn.microsoft.com/en-us/library/ms177410.aspx - PIVOT looks to be what you need :D I feel sorry for people who don't drink, when they wake up in the morning that's as good as the're going to feel all day!
  5. NiceArms

    selective rollups?

    Hey, If I have understood you correctly I think this is what you are looking for: CREATE TABLE TMP ( id VARCHAR(100), REF VARCHAR(100), DATE DATETIME) CREATE TABLE TMP2 ( id VARCHAR(100), REF VARCHAR(100), DATE DATETIME, CNT INT) INSERT TMP VALUES('PAFGLLE105000P0DMDEN', '2140628'...
  6. NiceArms

    2 Date Range Queries 2 Differing Results

    It makes 100% sense, thank you. I feel sorry for people who don't drink, when they wake up in the morning that's as good as the're going to feel all day!
  7. NiceArms

    2 Date Range Queries 2 Differing Results

    I have used the following many times (on other databases) without issue: WHERE CONVERT(varchar(10), TransactionDate, 103) >= '30/09/2011' AND CONVERT(varchar(10), TransactionDate, 103) <= '03/10/2011' I feel sorry for people who don't drink, when they wake up in the morning that's as good as...
  8. NiceArms

    2 Date Range Queries 2 Differing Results

    datetime and British I feel sorry for people who don't drink, when they wake up in the morning that's as good as the're going to feel all day!
  9. NiceArms

    2 Date Range Queries 2 Differing Results

    Hey Everyone, This one has me quite confused. I have 2 snippets of code which I would expect to return the same results but they are not. Snippet 1 returns the full range of transaction dates but snippet 2 returns nothing, not a single result. --Snippet 1 SELECT TransactionDate...
  10. NiceArms

    Strange Date Conversion

    Hey, I am pulling a date from the database which has a data type of varchar(50) and with the use of flat connection file manager I am exporting the data into a .csv. the data in the varchar(50) is a date presented as dd/mm/yyyy but the date is converting to yyyy-mm-dd 00:00:000 when exported. I...
  11. NiceArms

    OUTPUT/UPDATE - log data from the updated table

    I have found another way of doing it but I will still try this. The original query was going to become dynamic. Thank you, nice I feel sorry for people who don't drink, when they wake up in the morning that's as good as the're going to feel all day!
  12. NiceArms

    OUTPUT/UPDATE - log data from the updated table

    Hi, the follwing code is trying to insert into table1 the deleted data and some static data following an update of table2. I am trying to get the field AccountID from table1 to update into table2 but i keep receiving the following... The multi-part identifier "table1.AccountID" could not be...
  13. NiceArms

    getting data from a parameter

    I may have the fields the wrong way round but when using IF logic I tend to write it as follows: if {?Severity} = "none" then {IRSCLAIM.COVERAGE}= "FALL" and {IRSCLAIM.SPECIAL20} = "05" ELSE if {?Severity} = "Minor" then {IRSCLAIM.COVERAGE}= "FALL" and {IRSCLAIM.SPECIAL20} = "10" else...
  14. NiceArms

    report

    This may help, or at least get you started. http://msdn.microsoft.com/en-us/library/cc280478.aspx I feel sorry for people who don't drink, when they wake up in the morning that's as good as the're going to feel all day!
  15. NiceArms

    Formula Help for selecting different data rom two fields

    LBass is right - it's the OR that you need. For some reason unknown to me I was thinking of the 2 lines as 2 different formulas!!!!!! Try LBass's code. I feel sorry for people who don't drink, when they wake up in the morning that's as good as the're going to feel all day!

Part and Inventory Search

Back
Top