Viewing 15 posts - 31 through 45 (of 199 total)
ChrisM@Work (8/9/2011)
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...
August 9, 2011 at 6:34 am
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
August 9, 2011 at 5:35 am
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') +...
August 9, 2011 at 4:58 am
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
August 9, 2011 at 4:27 am
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
August 9, 2011 at 2:34 am
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...
August 1, 2011 at 5:56 am
'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...
August 1, 2011 at 3:30 am
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...
August 1, 2011 at 2:01 am
yes i have to call the EXE file with the quotation marks in it and the parameters needs to have quotation marks too.
July 31, 2011 at 12:18 pm
can it be done somehow with the xp_cmshell that can take the table and insert it to html file?
May 20, 2011 at 4:23 am
still how can i achieve that through the sql server?
May 16, 2011 at 10:10 am
the output from the sql and send it direct to the email body isn't working like it work in a regular html file.
May 16, 2011 at 8:18 am
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
May 5, 2011 at 7:57 am
Lowell (5/5/2011)
SELECT
TheDate,
USERS_COUNT,
CONNECTION_COUNT
FROM
(SELECT
DATEADD(dd, DATEDIFF(dd,0,RUN_TIME), 0) As...
May 5, 2011 at 7:18 am
i need the high result from USERS_COUNT every day.
May 5, 2011 at 3:14 am
Viewing 15 posts - 31 through 45 (of 199 total)