Viewing 15 posts - 4,816 through 4,830 (of 8,731 total)
j.grimanis (6/15/2015)
I have a procedure which inside I call two other Procedures, the first one is updating table Purchase Order and the second one is updating an intermediary table afterPurchase...
June 15, 2015 at 2:21 pm
The column t00.[CustNo] is never NULL, so you'll always end up with a value of 0.
You don't need the nested CASE, you can just add more conditions as needed.
Select t00.[InvDate]
...
June 15, 2015 at 2:17 pm
Full example:
CREATE TABLE dbo.SampleData(
Stip_Abv nvarchar(10),
Dt_Start nvarchar(10),
Dt_End nvarchar(10))
INSERT INTO SampleData
VALUES( 'PM', '05/15', '06/20'),
(...
June 15, 2015 at 2:07 pm
If you can have either start date and end date or no dates at all, you can make it simpler.
ISNULL(dbo.APD_Stips1.Stip_Abv + N' ', N' ') + ISNULL( N'(' + dbo.APD_Stips2.Dt_Start...
June 15, 2015 at 2:01 pm
sgmunson (6/15/2015)
sqlinterset (6/15/2015)
I am looking to calculate no of months between two dates which are in YYYYMM format.Like no of months between 201505 and 201305
WITH DATEFIELDS AS (
SELECT DATEFIELD1 =...
June 15, 2015 at 1:50 pm
From your private message, I could understand that your 2 recordsets have the same information but one has details and the other one has totals. SSRS is able to group...
June 15, 2015 at 8:51 am
You don't need an explicit transaction for a single statement.
Using a top 1 in an update makes no sense.
Your WHERE clause is not SARGable. A possible better way would be...
June 14, 2015 at 4:35 pm
Your join condition will never evaluate TRUE and that's why you're always getting NULLs.
June 14, 2015 at 4:23 pm
There's a problem here. Even if you explained exactly what you need to do, it's too generic. We can't help with the stored procedure because we can't see it. We're...
June 12, 2015 at 2:20 pm
tsobiech (6/12/2015)
Luis Cazares (6/12/2015)
The Stairway to Reporting Services will...
June 12, 2015 at 1:53 pm
Or you could use SSRS to create a nice report with parameters that can be exported to Excel, Word, PDF & others.
The Stairway to Reporting Services will guide you step...
June 12, 2015 at 1:21 pm
Lynn Pettis (6/12/2015)
Alvin Ramard (6/12/2015)
Lynn Pettis (6/12/2015)
June 12, 2015 at 10:54 am
I suppose that you could create an unformatted partition for the disk or simply deallocate all the space. I'm not sure what are you referring to.
Also, a disk corruption might...
June 12, 2015 at 10:51 am
Try the stairways[/url] on this site or the books section[/url] or even the Videos. The entire site is full of valuable information on SQL Server and we'll be happy to...
June 12, 2015 at 9:38 am
jasona.work (6/11/2015)
Jeff Moden (6/9/2015)
On that note, give me some idea of where you'd actually like to work, area wise.
Jeff, realistically, I'd probably (for the right price) go as far as...
June 12, 2015 at 9:32 am
Viewing 15 posts - 4,816 through 4,830 (of 8,731 total)