Forum Replies Created

Viewing 15 posts - 31 through 45 (of 199 total)

  • RE: help with select

    ChrisM@Work (8/9/2011)


    Chooes the column you want, min or max (or average, if you wish):

    DROP TABLE #Sample

    CREATE TABLE #Sample (LOG_NUMBER CHAR(3), EVENT_TIME DATETIME)

    INSERT INTO #Sample (LOG_NUMBER, EVENT_TIME)

    SELECT '002','2011-08-07 20:29:05.787' UNION ALL

    SELECT...

  • RE: help with select

    some sample data from table,i need to extract with select

    LOG_NUMBER,EVENT_TIME

    002,2011-08-07 20:29:05.787

    002,2011-08-07 20:29:05.787

    002,2011-08-06 20:29:05.787

    002,2011-08-05 20:29:05.787

    002,2011-08-05 21:29:05.787

    003,2011-08-05 21:29:05.787

    003,2011-08-05 20:29:05.787

    004,2011-08-08 20:29:05.787

    004,2011-08-08 23:29:05.787

    005,2011-08-06 20:29:05.787

  • RE: help with select

    i need to put the results in here

    +N'<TD>' + ISNULL( + '<p class="datarows">' + CONVERT(NVARCHAR(MAX),[eventtime ]),'<p class="datarowserror">Not Avail') + N'</p></TD>'

    +N'<TD>' + ISNULL( + '<p class="datarows">' + CONVERT(NVARCHAR(MAX),[eventid]),'<p class="datarowserror">Not Avail') +...

  • RE: help with select

    this syntax give me the right results but can it be change some how to start with a select first and not with "with cte as"?

    THX

  • RE: help with select

    the table hold a lot of events from the same event per day.

    i need to extract only one event per event per day from every event.

    THX

  • RE: xp_cmdshell help

    i only give you an example of when you call the EXE file that have space in it you must include the "" in the syntax,

    and when i need to...

  • RE: xp_cmdshell help

    'C:\FOLDER' is not recognized as an internal or external command,

    operable program or batch file.

    NULL

    and if i take the command "C:\FOLDER A\xcopy.exe" "C:\test 1\test.txt" f:\

    and run it in cmd it's...

  • RE: xp_cmdshell help

    Ninja's_RGR'us (7/31/2011)


    Should not be an issue... again what have you triedand what's the error?

    simple script that not working when i have 2 sets of quotation marks

    EXEC master..xp_cmdshell '"C:\FOLDER A\xcopy.exe" "C:\test...

  • RE: xp_cmdshell help

    yes i have to call the EXE file with the quotation marks in it and the parameters needs to have quotation marks too.

  • RE: transfer HTML code into HTML file

    can it be done somehow with the xp_cmshell that can take the table and insert it to html file?

  • RE: transfer HTML code into HTML file

    still how can i achieve that through the sql server?

  • RE: transfer HTML code into HTML file

    the output from the sql and send it direct to the email body isn't working like it work in a regular html file.

  • RE: how to write this query

    it looks good,but how i can view the "real" datetime as it was insert into the table and not 00:00:00 in the time?

    THX

  • RE: how to write this query

    Lowell (5/5/2011)


    so does this give you the results you were looking for?

    SELECT

    TheDate,

    USERS_COUNT,

    CONNECTION_COUNT

    FROM

    (SELECT

    DATEADD(dd, DATEDIFF(dd,0,RUN_TIME), 0) As...

  • RE: how to write this query

    i need the high result from USERS_COUNT every day.

Viewing 15 posts - 31 through 45 (of 199 total)