Viewing 15 posts - 3,961 through 3,975 (of 10,144 total)
sharon.ferrer (9/30/2013)
table consist of EmpID, Empname,Logdatetime.
I can generate the first in and last out by using max and min. Unfortunately there is an employee...
October 1, 2013 at 6:10 am
ngustafson-1056093 (10/1/2013)
The stored procedure is a standard proc used for different circumstances. I prefer to have a trigger execute the insert
Can you post the code for the sproc?
October 1, 2013 at 6:01 am
Are the NVARCHAR(MAX) column types necessary?
DECLARE @PropertyRepairsHistory Table
(
Jobnumber INT
, PropertyReference NVARCHAR (max) --
, JobTitle nvarchar (60)
, Priority nvarchar (20)
, JobType nvarchar (20)
, Contractorcode nvarchar (4)
, Contractor nvarchar...
October 1, 2013 at 4:29 am
How long do the two remote queries take to run and how many rows are returned?
SELECT *
FROM OPENQUERY (ingres2, '
SELECT repheader.repairno
, repheader.propref
, repheader.repairdesc
, priority.decode
, reptype.code
, workforce.wforcecode
, workforce.wforcename
,...
October 1, 2013 at 3:37 am
dastagiri16 (9/25/2013)
I have a table like
id city
1 A
so i want to update city column from A to B...
October 1, 2013 at 2:31 am
-- solution
;WITH SampleData AS (
SELECT test = 'my email is Test@email.com.au how do i capture just the email' UNION ALL
SELECT 'No email address in this string'
)
SELECT test, x3.p3
FROM...
September 30, 2013 at 6:56 am
parulprabu (9/30/2013)
Hi,Try with this code
where id=@id and month=@month and Eid=
case when @Eid=0 then case when Eid>0 then Eid else 0 end else @Eid end =Eid
There's a syntax error and a...
September 30, 2013 at 6:32 am
Here's your query
SELECT TOP 5
qt.text AS 'SQL',
qstats.total_physical_reads AS 'Total Physical Reads',
qstats.total_physical_reads/qstats.execution_count AS 'Average Physical Reads',
qstats.execution_count AS 'Execution Count',
qstats.total_worker_time/qstats.execution_count AS 'Average...
September 30, 2013 at 3:17 am
paulcauchon (9/12/2013)
ChrisM@home (9/12/2013)
Not that complicated;
...
If I'm understanding this correctly, we're lining up all of the ID and Color groups in order, and then ascribing row numbers to them. From...
September 13, 2013 at 4:01 am
;WITH SampleData (Date, value) AS (
SELECT '01-01-2013', 10 UNION ALL
SELECT '02-01-2013', 20 UNION ALL
SELECT '03-01-2013', 0 UNION ALL
SELECT '04-01-2013', 0 UNION ALL
SELECT '05-01-2013', 30 UNION ALL...
September 13, 2013 at 2:00 am
Check if this works. It should generate a count of events per month, including months with no events. If it works then it's a trivial matter to use it as...
September 13, 2013 at 1:38 am
dwain.c (9/12/2013)
Jack Corbett (9/12/2013)
Brandie Tarvin (9/12/2013)
Go to http://www.sqlsaturday.com and see if there is a way to register for event notifications. That way if one pops up near you...
September 13, 2013 at 1:12 am
L' Eomot Inversé (9/12/2013)
ChrisM@Work (9/12/2013)
I think this is what you are looking for:
CREATE TABLE #table1(c nvarchar(1));
CREATE TABLE #table2(c nvarchar(1));
INSERT INTO...
September 13, 2013 at 1:07 am
Koen Verbeeck (9/13/2013)
dwain.c (9/12/2013)
Which of these is closer to the end of the week?
SELECT DATEADD(millisecond, -1, CAST('2013-09-13' AS DATETIME2))
,DATEADD(microsecond, -1, CAST('2013-09-13' AS DATETIME2))
Too bad SQL Server...
September 13, 2013 at 1:05 am
Erland Sommarskog (9/12/2013)
Any way, since I don't think that there was a post with CROSS JOIN for unpivotting, here is an...
September 13, 2013 at 1:01 am
Viewing 15 posts - 3,961 through 3,975 (of 10,144 total)