Forum Replies Created

Viewing 15 posts - 3,496 through 3,510 (of 3,543 total)

  • RE: client spid

    If you add APP=text to your SQL connection then the info appears under Application in EM (process info). I use this so I can associate spids with users.

  • RE: Green Icon

    It means your connected to the server in question.

  • RE: FTP task using DTS

    If you're referring to me maybe my reply was confusing! I have already achieved this by downloading existing source from net (to save time) compiled the DLL and wrote a...

  • RE: Mdac 2.6 or Mdac 2.7?

    I installed 2.7 on IIS server and found all my connections to SQL (DSN's) failed. It seems that the connection properties in 2.7 changed. Other than that found 2.7 OK.

    ...

  • RE: FTP task using DTS

    I wanted to do this in SQL7 and produced a DLL used by ActiveX Script in DTS.

  • RE: Calling stored proc on a remote server

    "uid" will need execute permission to db.dbo.proc_name on "server" as well as access to the database db.

  • RE: Stored Proc & Security Settings

    xp_cmdshell is a restricted command and can only be called by sysadmin/dbo users. If your testuser is non sysadmin then it does not have permissions to the command even by...

  • RE: Pulling record with the earliest date

    Try using subquery

    SELECT Case_Table.Case_Number, Note_Table.Note_Type, Note_Table.Date_Entered

    FROM Case_Table

    INNER JOIN Note_Table ON Case_Table.Case_Number = Note_Table.Case_Number

    AND Note_Table.Date_Entered = (SELECT MIN(Date_Entered) FROM Note_Table WHERE Case_Number = Case_Table.Case_Number)

    WHERE Case_Table.case_number = 15214

  • RE: Pulling record with the earliest date

    How about

    SELECT Case_Table.Case_Number, MIN(Note_Table.Date_Entered) AS 'Date_Entered'

    FROM Case_Table

    INNER JOIN Note_Table ON Case_Table.Case_Number = Note_Table.Case_Number

    GROUP BY Case_Table.Case_Number

  • RE: finding missing rows with outer join?

    The sql should do that. e.g. if A contains keys 1,2,3 and B contains 1,3 then the query will return 2 only.

  • RE: finding missing rows with outer join?

    SELECT A.*

    FROM A

    LEFT OUTER JOIN B ON B.key = A.key

    WHERE B.key IS NULL

    will show all rows in A that do not have a corresponding key in B

  • RE: Link Server under Security secttion

    Also if you specify a DSN in Data source instead of path & name of mdb will generate this error.

  • RE: Leading Zeros

    When I want leading zeros I do

    REPLACE(STR(numericcol,overalllength,numdecplaces),' ','0').

    Antares686, which solution do you think is the more efficient or does it not matter?

  • RE: right aligned data

    Try

    STR(OID,15,0)

  • RE: BCP output formatting issue

    Can u post details of the procedure. Is there a special reason why you are using a proc to generate code instead of EM?

Viewing 15 posts - 3,496 through 3,510 (of 3,543 total)