Forum Replies Created

Viewing 15 posts - 1 through 15 (of 18 total)

  • RE: Upgrading to Sql server 2005

    I had the software assurance...got 2005 std for the cost of the media. Less than $30.

  • RE: How to check if file exist under a folder?

    Here is how I did it:

    Function Main()

    Dim oFSO, sImportFile ...

  • RE: need Qry assistance

    I think I figured it out.

    Instead of: SELECT *

    I did: SELECT tblVisit.*

    I got it to work! Thanks for all your advice!

  • RE: need Qry assistance

    DavidP,

    Your code pulls the data I want...except...I don't want the columns from tblPatient.

    I only want the fields from tblVisit.

    Any ideas how to do that?

    Thanks

  • RE: need Qry assistance

    Yes there is a unique Patient MedRec# and then ACCT#'s for each visit. The ACCT#'s duplicate in tblVisit because there are multiple updates...like if they are moved to another...

  • RE: need Qry assistance

    Yes it is a DateTime field.

    There could be multiple records in the tblVisit but I do just want the latest record.

  • RE: System database maintenance - best practices

    On #4.

    If your database has a lot of use you might consider doing transaction log backups.

    A couple of my databases have heavy use. I do hourly transaction logs. ...

  • RE: Tranfer data into text file

    Nice!

    Thanks, I am a noob that is still learning.

    I appreciate your tips.

  • RE: Tranfer data into text file

    If you need to delete the archived files after a certain time period...I am doing that too. I only need to keep them one week.

    You could easily modify this...

  • RE: Tranfer data into text file

    No prob...glad it helped you.

  • RE: Tranfer data into text file

    Can you do the copy command instead of the move command?

    oFSO.CopyFile

  • RE: Tranfer data into text file

    This is how I am naming a file with the datetime stamp and moving it to a different directory:

    Function Main()

    ' Declare variables

    Dim oFSO

    Dim sSourceFile, sDestinationFile

    Dim sArchiveFile, dtMonth,...

  • RE: Top value

    Ok, I appologize Sergiy, I see now Farrell used your code.

    Yes, it works for me now.

    Thanks a bunch!

  • RE: Top value

    I was able to use your code Farrell.

    I added the check for no Case end date.

    It runs very fast too. Thanks

    SELECT MAX(l.clrec_sysid) AS clrec_sysid,

    l.cons_entity_id AS cons_entity_id,

    lm.Max_event_date AS...

  • RE: Top value

    I get the following error on Sergiy's code:

    Server: Msg 107, Level 16, State 2, Line 11

    The column prefix 'l' does not match with a table name or alias name used...

Viewing 15 posts - 1 through 15 (of 18 total)