Viewing 15 posts - 9,256 through 9,270 (of 26,490 total)
Besides the obvious update you show in your snippet above, are there other updates occuring in the stored procedure that are dependent on this update completing successfully?
It is really hard...
November 29, 2012 at 6:49 pm
I had it backwards. SQL Server needed to implicitly convert each of the varchar values in your table to nvarchar prior to comparing it to your constant value N'123456789',...
November 29, 2012 at 5:43 pm
Could be due to the implicit conversion from nvarchar to varchar you introduce by putting the N at the front of the string (N'1234567').
November 29, 2012 at 4:14 pm
sahmad43 (11/29/2012)
but how do i now find out the dates that are older than 10 mins ? dont i have to use datediff ?
select datediff(minute, dateadd(s, created, '19700101'), getdate())
November 29, 2012 at 2:29 pm
Combined some of the code from your code in this article with your delimited split routine to solve a problem at work. Inspiration comes from many places.
Have to give...
November 28, 2012 at 6:50 pm
Compare the following:
DECLARE @Test1 VARCHAR(10) = '01ADA10';
SELECT @Test1 WHERE @Test1 LIKE '%[0-9]%';
SELECT @Test1 WHERE @Test1 NOT LIKE '%[^0-9]%';
November 28, 2012 at 11:40 am
fluffydeadangel (11/27/2012)
IF ''?'' <> ''master'' AND ''?'' <> ''model'' AND ''?'' <> ''msdb'' AND ''?''...
November 27, 2012 at 4:23 pm
CELKO (11/27/2012)
Or not. It's not portable to versions/engines that don't follow that particular ANSI standard which would also discourage people using an older version of SQL Server from helping....
November 27, 2012 at 8:09 am
Lokesh Vij (11/27/2012)
Jeff Moden (11/27/2012)
Here's an article that explains the base method that Lynn is using (sans the formatting).
Just one doubt: Is this method optimized enough of such problems? or...
November 27, 2012 at 6:26 am
deep3.kaur 98681 (11/26/2012)
If they are...
November 27, 2012 at 6:21 am
Lokesh Vij (11/27/2012)
Jeff Moden (11/27/2012)
Here's an article that explains the base method that Lynn is using (sans the formatting).
Just one doubt: Is this method optimized enough of such problems? or...
November 27, 2012 at 6:19 am
Lokesh Vij (11/27/2012)
Lynn Pettis (11/27/2012)
Create table #Input
(LocationName varchar(20), ContactName varchar(20), AppointmentDate date)
Insert into #Input
values
('Business1', 'C1', '11/12/2012'),
('Business1', 'C1', '11/13/2012'),
('Business1', 'C1', '11/14/2012'),
('Business1', 'C1', '11/15/2012'),
('Business1', 'C1',...
November 27, 2012 at 2:28 am
This is what you are looking for:
Create table #Input
(LocationName varchar(20), ContactName varchar(20), AppointmentDate date)
Insert into #Input
values
('Business1', 'C1', '11/12/2012'),
('Business1', 'C1', '11/13/2012'),
('Business1', 'C1', '11/14/2012'),
('Business1', 'C1', '11/15/2012'),
('Business1', 'C1', '12/15/2012'),
('Business1', 'C1', '12/16/2012'),...
November 27, 2012 at 12:07 am
Take it offline and see who complains. For safety sake, be sure to have a good backup of it as well.
November 22, 2012 at 9:10 pm
jonesg 74626 (11/22/2012)
Sweet! Thanks works great!:-D
Glad it works.
Also, did you see how I setup the data for the query? That is how you should post your table DDL and...
November 22, 2012 at 9:08 pm
Viewing 15 posts - 9,256 through 9,270 (of 26,490 total)