Viewing 15 posts - 3,046 through 3,060 (of 3,475 total)
The usual way to do something like that is to do an outer join to the destination table and only insert the values that don't exist there already.
April 3, 2014 at 10:15 pm
Good points... good to hear I'm just behind on the learning curve... and not just headed off in the wrong direction.
April 3, 2014 at 9:47 pm
Silly me. Didn't even think of using a trace! Schooled again!
April 3, 2014 at 9:08 pm
This might help.
http://sqlfool.com/2009/08/find-recently-executed-stored-procedures/
But you could also do something simple like creating a simple logging table (ObjectName, ExecuteDate) and then create another stored procedure to do the insert...
CREATE PROCEDURE
uspLogSprocExecution(
@ObjName)
AS
BEGIN
SET NOCOUNT...
April 3, 2014 at 4:48 pm
Oh, I see now... pity, because as I said, it's simple in SSRS. Did it in about 30 seconds. Normally, you do all the formatting in the front end...
April 2, 2014 at 10:09 pm
David,
This was really easy in SSRS. Here are the steps:
1. Add a tablix to the report canvas (or whatever it's called).
2. Add Order Qty and Bin Qty to the...
April 2, 2014 at 9:47 pm
Sorry, can't fix what I can't see, but if you drop a matrix into your report with
ROW Groups: [CustID]
COLUMN Groups: [Year], [Quarter]
Intersection: SUM([Amount])
I think it will do what you want....
April 1, 2014 at 10:59 pm
Okay, I guess I'll bite...
Can you post some consumable data? here's one way to do it:
SELECT "Glass" AS ItemType ,109.52 AS Weight
UNION ALL
SELECT "Cardboard",55.86
UNION ALL
SELECT "Wood",150.54
UNION ALL...
March 30, 2014 at 10:38 am
If you're using pass-through queries, it means that your SQL syntax will work against SQL Server without modification. If not, you may have a lot of work to do...
March 29, 2014 at 5:09 pm
here's a really article example of creating an XML file...
Here's a really simple query on a table I had handy...
SELECT CompanyID
, RTRIM(CompanyName) AS CompanyName
, RTRIM(Address) AS StreetAddress
, RTRIM(City) AS City
,...
March 29, 2014 at 1:44 am
I think I understand what you're doing. It sounds like you're trying to use some kind of grouping on states on the X axis... but the design sounds really...
March 28, 2014 at 9:34 pm
just for grins, can you attach to SQL Server from Access and create a Make Table query to create the columns you need? I'm just wondering because maybe the...
March 28, 2014 at 9:24 pm
Here's a create table statement and the insert statements to populate your table. The column names are a guess. If they're descriptive, it helps a LOT to explain...
March 28, 2014 at 7:09 pm
Good to know I got a similar solution...
SELECT SampleDate
, CASE WHEN MONTH(SampleDate)%2=0 THEN SampleDate
ELSE DATEADD(m,-1,SampleDate) END
FROM
(
SELECT CAST('03-25-2014' AS DATE) AS SampleDate
UNION ALL
SELECT CAST('01-01-2014' AS DATE)
) x;
March 25, 2014 at 6:39 pm
I like the empty Totals row option (hint hint)... see if you can figure that part out. You won't learn anything if you don't try things for yourself.
BTW,...
March 25, 2014 at 4:58 pm
Viewing 15 posts - 3,046 through 3,060 (of 3,475 total)