Viewing 15 posts - 8,821 through 8,835 (of 9,641 total)
Antonio,
Based on the supplied test data and the stated desired outcome if you added C1.ParentRev <> C2.ParentRev then you would not get any results because ParentRev is 0 in each...
April 9, 2008 at 7:51 am
lersner (4/9/2008)
April 9, 2008 at 7:43 am
I have run the query you provided with only one change.
In the derived table query you reference table T1 which does not exist that needs to be Table1. Here...
April 9, 2008 at 7:34 am
After running both it looks like Ryan's solution is slightly more efficient so will scale a little better.
April 9, 2008 at 7:08 am
This is basically the same solution Ryan posted without a CTE
--Create temporary table that holds Parent and Children records.
IF OBJECT_ID (N'tempdb..#Children', N'U') IS NOT NULL
DROP TABLE #Children;
CREATE TABLE #Children
(
ParentNo...
April 9, 2008 at 7:05 am
When using a script component you need to enter the package variables you want to use in the custom properties section of the script screen. Then within the script...
April 9, 2008 at 6:37 am
PW is right, it is hard to tell without knowing the SQL and the database structure, etc... Over all the plan is not that bad. It is using...
April 8, 2008 at 3:16 pm
Man Matt, am I glad you are around to clean up behind me!
April 8, 2008 at 3:09 pm
I would put the Conversion in the Select for the source. You did not specify the type of datasource so I gave SQL Server syntax your source's conversion function...
April 8, 2008 at 3:06 pm
You have not assigned the schedule to the job. You need to run sp_attach_schedule so your code should look like this:
USE NetLicenses;
GO
CREATE PROCEDURE sp_CheckLicenseStatus
AS
BEGIN
...
April 8, 2008 at 3:02 pm
Sorry. Replace the Table1.* and Table2.* with T1.* and T2.*. I copied and pasted your original code, modified it and forgot to change those to the Aliases I...
April 8, 2008 at 2:40 pm
If the stored procedure was not re-compiled after the addition of the index it is not guaranteed to use the index. Did the execution plan change? Try running...
April 8, 2008 at 2:26 pm
When you use the char or nchar data type the string is right padded with spaces so 'Customer1' (Char(9)) and 'Customer1 ' (Char(10)) are different. Thus you need to...
April 8, 2008 at 2:23 pm
Matt Miller (4/8/2008)
Oh don't feel bad. You're right that I shouldn't have used the "Regex syntax" term, since it only supports ranges and range exclusions and not all of...
April 8, 2008 at 2:16 pm
marge0513 (4/8/2008)
Thanks for responding Jack!I get a "missing keyword" error.
In the subquery put TABLE.File_Name instead of File_Name as File_Name is a function.
Antares' questions are also valid.
April 8, 2008 at 1:56 pm
Viewing 15 posts - 8,821 through 8,835 (of 9,641 total)