Viewing 15 posts - 196 through 210 (of 212 total)
Greg,
See how this works:
SELECT DATENAME(year, sys_requestdate) AS Year, DATEPART(mm, sys_requestdate) AS Month_No, DATENAME(month, sys_requestdate) AS Month_Name,
COUNT(sys_request_id) AS Opened, COUNT(sys_requestclosedate) AS Closed
FROM request
GROUP BY DATENAME(month, sys_requestdate), DATENAME(year, sys_requestdate), DATEPART(mm, sys_requestdate)
HAVING (DATENAME(year,...
December 7, 2009 at 4:18 pm
I think you answered your own question. The incorrect order of the REPLACE function parameters is the problem. You should run it like this instead:
December 7, 2009 at 3:46 pm
If you found two duplicated item_no's why did four rows get deleted? Wouldn't you want to delete just one of the duplicates so that one unique row would remain?
I must...
December 1, 2009 at 9:45 am
To answer the 'Why don't you just use replication/triggers to keep the tables in sync' questions:
Our app is being phased out, and was developed by 2 teams of developers that...
November 30, 2009 at 8:00 am
I agree, I think there's no way around the fact that you have to convert first. This should put you in the right direction for converting to standard MSSQL...
October 15, 2008 at 1:34 pm
The answer is 6 seconds. 😉
But seriously, what kind of date format is that? I couldn't find any examples of converting from that format.
October 15, 2008 at 12:54 pm
Wow, that's sweet! I hadn't seen that before.
October 15, 2008 at 11:46 am
To implement a join, you need fields of like data types with potentially matching data to act as the join fields. They DO NOT, however, have to be named...
October 15, 2008 at 7:12 am
This may start you off in the right direction for the first part of your question:
create proc uspGetAdmins @User varchar(40), @IsAdmin varchar(1) OUTPUT
as
set @IsAdmin = (
select IsAdministrator
from tbl1 as t1
join...
October 14, 2008 at 3:43 pm
How about using a distributed query to copy all the data after adding the 2000 server as a linked server? This is after using the Generate Scripts wizard in...
October 14, 2008 at 2:38 pm
James, I think you are right. SET IDENTITY_INSERT YOURTABLENAME ON should perform the same function as (in DTS) checking the Enable Identity Insert box, right?
Seth
May 15, 2008 at 9:27 am
Thanks, but that still doesn't work in SQL Express. Guess I'll just install the real thing. 🙂
October 16, 2007 at 7:10 am
I was referring to the error logs. I think the problem is I'm running SQL Server 2005 Express, and it doesn't seem to allow you to see any activity...
October 15, 2007 at 8:17 am
Viewing 15 posts - 196 through 210 (of 212 total)