Viewing 15 posts - 7,786 through 7,800 (of 26,490 total)
sql-lover (4/29/2013)
Lynn Pettis (4/29/2013)
sql-lover (4/29/2013)
Deadlocks occurred because two transactions pin each other, so the 1st...
April 29, 2013 at 3:00 pm
danawexler (4/29/2013)
April 29, 2013 at 2:57 pm
YSLGuru (4/29/2013)
SOLVED.The proper connection string was:
Data Source=SQL04\SS2008R2;Initial Catalog=MYTESTDB
Thanks to those who replied.
So the fix was removing the spaces in your original connection string?
April 29, 2013 at 2:47 pm
sql-lover (4/29/2013)
Deadlocks occurred because two transactions pin each other, so the 1st one can't complete...
April 29, 2013 at 2:40 pm
Also, if the column(s) you are testing the dates against have time values other than 00:00:00.000, you will miss data at the end of the month.
April 29, 2013 at 2:33 pm
steve4134 (4/29/2013)
I just wanted to confirm that what I had wrote was indeed from last month threw the end of the month ran today. So if I ran this...
April 29, 2013 at 2:30 pm
Look at Snapshot Isolation. Will increase tempdb use but will keep readers from blocking writers.
April 29, 2013 at 1:56 pm
steve4134 (4/29/2013)
April 29, 2013 at 1:50 pm
Lowell (4/29/2013)
I'd say that is no different from storing the data unencrypted in the...
April 29, 2013 at 1:28 pm
sarwaanmca (4/29/2013)
but stili i having a doubt ..
how to show the fist Record of the EmpID
Thanks & Regards,
Saravanan.D
One of the things you need to understand, there is no concept of...
April 29, 2013 at 1:17 pm
I disagree with your friend. I do not believe that stored procedures put additional overhead on the server when compared to ad hoc queries.
April 29, 2013 at 1:12 pm
phamm (4/29/2013)
declare @controlnumber varchar(13)
set @controlnumber = '0210300000001'
select *
from Cards
where controlNum like ''''+SUBSTRING(@controlnumber,1,5)+'%'+''''
it returned nothing
however if I change the where clause to controlnum like '02103%' then...
April 29, 2013 at 1:10 pm
From the original post:
select
GETDATE() CurrentDate,
DATEADD(month, -1,CONVERT(VARCHAR(25),DATEADD(dd,-(DAY(GETDATE())-1),GETDATE()),101)) FirstOfPreviousMonth,
DATEADD(month, -1,CONVERT(VARCHAR(25),DATEADD(dd,-(DAY(DATEADD(mm,1,GETDATE()))),DATEADD(mm,1,GETDATE())),101)) [LastOfPreviousMonth-NOT]
Results:
CurrentDate ...
April 29, 2013 at 1:04 pm
I don't see where you are providing the Username and password to connect to your source system.
April 29, 2013 at 10:24 am
WWDMark (4/29/2013)
I'd be really grateful if someone could help me (probably something very basic I'm missing!)
I'm trying to create a stored procedure (code below) but it's failing. If...
April 29, 2013 at 10:02 am
Viewing 15 posts - 7,786 through 7,800 (of 26,490 total)