Viewing 15 posts - 76 through 90 (of 156 total)
It should be
CAST(IA.IAT_DATA AS VARCHAR(25)) AS Subject
November 8, 2006 at 6:24 am
I have tried this, and it seems to work.
SELECT COUNT(*) FROM card_pins WITH (TABLOCK, HOLDLOCK)
Put this as the first line after BEGIN TRAN. On Commit the lock is released.
November 6, 2006 at 7:18 am
Remi, you query returns count of clock records on each date - an employee may have 10 clock records on that day but it has to return 1 for that...
November 3, 2006 at 8:06 am
This is not an actual table but a query. For simplicity sake, I had given the output as a table.
Thanks anyway.
October 18, 2006 at 3:39 pm
If the SP just does that, you do not need a cursor
INSERT INTO INET.dbo.jones_report (ReportNumber, Adjuster, RGnameLast, ClientOffice, IOofficeName, WRworkOfficeID, WRid, Subject, FilterDate, ClaimNumber, VideoAmount, CaseCost, Results, WRinjury, WRnotes)
SELECT...
July 31, 2006 at 10:29 am
July 31, 2006 at 6:59 am
This will not work if you have 2 (or more) clock record at the same start time for different employees. The time clock table also holds clock records for jobs done...
July 25, 2006 at 12:52 pm
if object_id( 'tempdb..#Temp' ) is not null drop table #Temp
July 20, 2006 at 8:01 am
SELECT CONVERT(varchar(10), current_timestamp, 110)
Not sure if you still need a stored procedure.
July 1, 2006 at 12:32 pm
Create a SP that accepts parameters of all columns for the table with a default of Null.
Update TableA SET col1 = COALESCE(@col1, col1) , col2 = COALESCE(@col2, col2), .....
where...
June 30, 2006 at 3:06 pm
DECLARE @t TABLE ( ID int, Dt datetime)
INSERT INTO @t VALUES (1,'2006-06-29 10:00')
INSERT INTO @t VALUES (2,'2006-06-29 11:00')
INSERT INTO @t VALUES (3,'2006-06-29 12:00')
INSERT INTO @t VALUES (4,'2006-06-29 13:00')
SELECT t1.ID, t1.Dt,...
June 29, 2006 at 1:22 pm
The query timeout is set to 30 seconds in the app. How can I set the LockTimeout in my .Net application ?
May 16, 2006 at 10:01 am
Search for "Split" in the script section and you will get quite a few funtions.
Here in one that I have used
http://www.sqlservercentral.com/scripts/viewscript.asp?scriptid=592
May 15, 2006 at 11:35 am
Viewing 15 posts - 76 through 90 (of 156 total)