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 Chriss Miller 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: EriRobert
  • Content: Threads
  • Order by date
  1. EriRobert

    Check for overlapping date range

    Hi Can anyone come up with a neat where statement to catch overlapping date ranges. My table has a from and to date eg. ID F_FromDate F_ToDate 1 1-Mar-2008 18-Mar-2008 2 1-Jan-2000 31-Dec-2010 3 10-Mar-2008 01-Apr-2008 4 13-Mar-2008 15-Mar-2008 5 1-Jan-2008 01-Mar-2008 6...
  2. EriRobert

    Sql Server 2005 - Fast growing msdb

    Hello Our SQL server 2005 msdb database is growing at rate of 100 Meg per day and is currently 4844 Meg. Having looked at thread962-1142670 I can discount dts packages (none in use), and backupset (1325 records). Job history is 999. I'm struggling to find a table with a large number of...
  3. EriRobert

    SQL 2005 Database Mail - Attachments Saved

    Hi We recently started to use Database Mail to send information packs to our clients (pdf attachments). The emails + attachments are sent without a problem. I have subsequently noticed that the attachments are being saved on the C drive causing space issues - for example: C:\Documents and...
  4. EriRobert

    SQL 2005 Database Mail - Format Question

    Hi Is it possible to change the default font and font size settings for emails sent using 'Database Mail' with 'Text' as the value for the @body_format parameter. Many Thanks
  5. EriRobert

    Loading workstation components

    Just a quick question - how do you go about loading workstation components onto a Win32 PC where the SQL Server itself is x64? I can't use the x64 setup disk on my XP (Win32) workstation. Thanks in advance
  6. EriRobert

    Job History Messages

    For some time now we have been receiving the message: The job was scheduled to run, but the availability window closed before the job could start. There may not have been any destination devices available during the window, or the job may have been submitted to run when the window was closed...
  7. EriRobert

    I've made my select faster but ... - Advice please

    I've been looking at some poorly performing queries. These queries contain conditional conditions of the form: Where C_PartitionCode Like Case When @intPartitionCode = 0 Then '%' Else Cast(@intPartitionCode as varchar(3)) End And ... etc When I build it up into a...
  8. EriRobert

    Conditional User Defined Function Slows Up Select

    Morning I have a stored procedure that contains a user defined function that slows considerably the performance of the SP. Extract as below WHERE dbo.usf_PostCodeRules(@tinPostcodeCheckType, C_Postcode) = 0 The problem is not with the performance dive, which is expected, but the...
  9. EriRobert

    Compare to NULL

    Hi I keep getting tripped up when comparing a column to Null because instead of saying P_FieldName Is Null I'm saying P_FieldName = Null This second condition doesn't fire if the field contains null. As a matter of interest - why?
  10. EriRobert

    VBA Excel Encription

    Hello All oExcelWSheet.SaveAs "C:\abc.xls", , "pass123" This will save an excel document with a password. How can you also instruct the save to add encryption (e.g. RC4, Microsoft Enhanced Cryptographic Provider v1.0). Easy, manually through Excel itself, but through VBA, how? I was...
  11. EriRobert

    General Error Handling

    Hello My form based procedures are in the format: Private Sub ProcedureName() On Error GoTo ErrorSection …… Exit Sub ErrorSection: MsgBox "Error occured in Form: " & Me.Form.Name & vbCrLf & _ "Routine: ProcedureName" & vbCrLf & _ "Error Code: " &...
  12. EriRobert

    Indexes on bit fields

    Hello You don't seem to be able to index a bit field in a table. I can sort of understand this as there are only 2 values to index. However if the distribution of the values in the field are, say 99% (0) and 1% (1), and you are searching for values of 1 then the index is beneficial. Is SQL...
  13. EriRobert

    SMDR Missing Entries

    Hello We suspect a problem with our SMDR logger (5.0.14). Over the last week it has not been logging 100% of the calls - more like 60%. Has anyone else had this problem. I can't see any configuration settings to make it work in this way - we use this file for invoicing, so it is important...
  14. EriRobert

    Problem with xp_sendmail and Outlook

    Hello everyone I'm trying to send email from a stored procedure (SQL Server 2000) using the xp_sendmail procedure call. My code is: exec xp_startmail exec xp_sendmail @recipients = 'robert@phoneticgroup.co.uk', @message = 'Test Message A', @subject = 'Test Subject A' exec xp_stopmail...
  15. EriRobert

    SQL Query Analyzer Cutting Columns

    Hi Sorry the search is out of order so I can't check whether there is an existing solution to this one... Why does SQL Query Analyzer, but not Views run outside QA, truncate my columns to 256 characters for example SELECT 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...
  16. EriRobert

    TAPI Dialout Phone Mixup

    Hi I'm using TAPI API calls to make outbound calls. This works on 70% of our computers. On the others the call seems to be sent out from a different phone. Has anyone any idea how a call from one handset is transferred to another. The situation is fixed (eg. extension 222 always works, 224...
  17. EriRobert

    TAPI API Calls

    Hello everyone I'm trying to get more information about the TAPI API call lineOpen and specifically the second parameter dwDeviceID. Declare Function lineOpen Lib "TAPI32.DLL" _ (ByVal l_hLineApp As Long, _ ByVal l_dwDeviceID As Long, _ l_lphLine As Long, _ ByVal...
  18. EriRobert

    Best Practice for Identical Multiple Databases

    Hello All I am developing a system where I will have multiple databases on the same server which share the same structure (but contain differing data). What is the best method for handling the identical stored procedures which will live along side each database? I'm concerned that the sps are...
  19. EriRobert

    Assign Account Codes via TAPI

    Hello Everyone I am making outgoing calls via TAPI. I would like to to assign an Account Code to these calls (through TAPI). Can anyone point me in the right direction. Many Thanks Robert
  20. EriRobert

    Stationery Banner from VBA

    Hello everyone I'm new to this forum so bear with me. I'm using Outlook Express and am sucessfully sending plain text emails dynamically from Access via VBA, using code: strAddedtext = "&Subject=" & strSubject strAddedtext = strAddedtext & "&Body=" & strBody If Len(strAddedtext)...

Part and Inventory Search

Back
Top