Viewing 15 posts - 1,486 through 1,500 (of 3,738 total)
I click on debug and nothing...
April 24, 2012 at 8:31 am
A false alarm perhaps It is validating each transformation now at a snails pace.:-D
April 24, 2012 at 8:23 am
Thanks for the all of ideas.:-)
April 19, 2012 at 10:04 am
I would have included the actual file but the table names are confidential.
I guess you know what I needed or you would not suggest that I use the splitter.
Have a...
April 18, 2012 at 3:06 pm
The items listed are table names.
I need to remove the comma and replace it with a line feed to that each table appears on a separate row.
April 18, 2012 at 10:41 am
Lynn Pettis (4/16/2012)
SET@OpenQueryPrefix = @OpenQueryPrefix + ', ''SELECT COUNT(*) AS400TableCount FROM ' -- << and here
AS400TableCount is a column alias, I am naming the column that contains...
April 16, 2012 at 1:39 pm
I reverted to you version of the code and it works.
What Line are you referring to because I do see an Table Alias?
I use them all of the time.
Thanks.
April 16, 2012 at 1:30 pm
Lynn Pettis (4/16/2012)
April 16, 2012 at 1:20 pm
I changed my code slightly so I can remove when I convert it to a Stored Procedure but I get the same results:
SQLRowCount
5
00001
5
MyCount
NULL
SET @SQLQuery = 'SELECT @cnt = COUNT(*) FROM...
April 16, 2012 at 1:11 pm
I'm sorry but I do not follow.
I do not have a column Alias in the SQL Select?
April 16, 2012 at 12:51 pm
So the first part works, the SQL Server Count.
SET @SQLQuery = 'SELECT @cnt = COUNT(*) FROM ' + @SchemaName +'.'+ @SQLTableName
DECLARE @MyCnt INT;
DECLARE @SQLRowCount int
DECLARE @ParmDefinition nvarchar(500);
SET @ParmDefinition =...
April 16, 2012 at 12:38 pm
Lynn,
It works, my vision must be failing me because I did not notice the difference?
Thanks!
April 16, 2012 at 12:21 pm
I tried changing it slightly but I get a NULL When SELECTING on @MMyCount:
SET @SQLQuery = 'SELECT COUNT(*) FROM ' + @SchemaName +'.'+ @SQLTableName
DECLARE @MyCnt INT;
DECLARE @ParmDefinition nvarchar(500);
SET @ParmDefinition...
April 16, 2012 at 12:12 pm
I tried the following which is obviously not it and a bunch of other tries"
EXEC sp_executesql
@query = @SQLQuery,
...
April 16, 2012 at 11:54 am
Viewing 15 posts - 1,486 through 1,500 (of 3,738 total)