Viewing 15 posts - 11,626 through 11,640 (of 26,486 total)
Once I got your code to run, I do see a slight problem. I have three less values than you. So I am looking into why I missed...
May 30, 2012 at 12:53 pm
Not sure this is correct, couldn't find any expected results based on the sample data provided, so you will have to tell me if it is okay.
USE Sandbox -- my...
May 30, 2012 at 12:23 pm
TravisDBA (5/30/2012)
It all depends on who is wirting the code and if they truely understand what it is they are doing.
Now that is one powerful statement there. It makes all...
May 30, 2012 at 10:48 am
You may want to do some checking of the data. You may have unprintable characters embedded in som of your data. I just ran a test and everything...
May 30, 2012 at 10:45 am
djackson 22568 (5/30/2012)
...
how bad Cobol programs were?
...
Really? Although I may also agree to an extent (considering a COBOL application I helped support and extend for 11 years), but I...
May 30, 2012 at 10:15 am
From your post it is hard to give you an answer. The problem is that we can't sse from here what you see there. Just looking at the...
May 30, 2012 at 9:49 am
I think the following is a bit simpler:
DECLARE @MyDate DATETIME;
SET @MyDate = '2/28/2009';
SELECT DATEADD(mm, DATEDIFF(mm, 0, DATEADD(yy,-1,@MyDate)) + 1, -1);
May 30, 2012 at 9:30 am
Based solely on your post, no idea. The problem here is that we can't see from here what you see there. You need to help us understand your...
May 30, 2012 at 9:16 am
How does this do?
CREATE TABLE #ProductRate(
[ProductID] [int] NOT NULL,
[FromDate] [datetime] NOT NULL,
[Rate] [numeric](9,2) NOT NULL)
GO
INSERT INTO #ProductRate(ProductID,FromDate,Rate)
SELECT 1,'2012-05-23',100
UNION ALL
SELECT 1,'2012-05-26',150
UNION ALL
SELECT 1,'2012-05-28',1000
UNION ALL
SELECT 2,'2012-05-20',1500
UNION ALL
SELECT 2,'2012-05-25',2000
UNION ALL
SELECT 2,'2012-05-28',1000
GO
DECLARE @fromdate DATETIME;
SET...
May 30, 2012 at 9:04 am
Not sure what is wrong, but since you are using SQL Server 2008 (based on the forum you posted in) try this:
DECLARE @MMOrders TABLE (
order_no char(8),
oe_po_no char(25),
sf_order char(8),
item_no char(15))
-- Data...
May 29, 2012 at 4:53 pm
tilew-948340 (5/29/2012)
May 29, 2012 at 2:46 pm
May help if you also provide the code you have tried so far. Nothing like seeing what doesn't work to help look for what does work.
May 29, 2012 at 1:51 pm
sql server developer (5/29/2012)
May 29, 2012 at 1:08 pm
Has the entire IO Subsystem been checked, not just the disks? Drivers, hardware, etc.
May 29, 2012 at 10:59 am
Jeff Moden (5/29/2012)
Grant Fritchey (5/29/2012)
May 29, 2012 at 10:51 am
Viewing 15 posts - 11,626 through 11,640 (of 26,486 total)