Viewing 15 posts - 91 through 105 (of 267 total)
The length part of your recommendation here has not bearing; varchar is actually longer.
That said nvarchar is not a bad idea to avoid the conversion. The convert is very low...
May 1, 2016 at 6:42 pm
REALLY??? WOW.. I have written a fair amount in the past however this is by far the largest dynamic project I have worked and in effect reverse engineers the relationship...
April 30, 2016 at 10:16 pm
No I am not sure I following what you are suggesting here or I am missing the point.
So I build a dynamic query. In this case it is TWO joins...
April 30, 2016 at 5:58 pm
Not exactly.
The execution comes later in another proc.
HOWEVER the printing of the variable is just BEFORE I set the variable value to the DB. What is printed to screen is...
April 28, 2016 at 8:00 pm
Oh I got rid of that, sorry. All I did was make another table with just two fields ETLMappingID and PreparedStatement varchar(max)
Then in the PROC added another block UPDATE...
April 28, 2016 at 10:44 am
Table DDL:
USE [ETL]
GO
/****** Object: Table [dbo].[ETLPreparedStatement] Script Date: 4/28/2016 12:00:28 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[ETLPreparedStatement](
[PreparedStatementID] [int] IDENTITY(1,1) NOT NULL,
[ETLMappingID] [int] NOT...
April 28, 2016 at 10:01 am
PROC:
USE [ETL]
GO
/****** Object: StoredProcedure [dbo].[ETLProcessTableFieldsDynamic_JOIN2] Script Date: 4/28/2016 11:13:55 AM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER PROCEDURE [dbo].[ETLProcessTableFieldsDynamic_JOIN] (@BatchID int)
AS
--EXEC ETLProcessTableFieldsDynamic_JOIN 4045
...
April 28, 2016 at 9:59 am
This is just crazy.
Below is the proc and the table DDL (Which I posted earlier).
When I run the proc my PRINT statement throws this on screen. I am printing the...
April 28, 2016 at 9:58 am
Wow.. That is a reach?? But what the heck why not, I obviously don't have the answer.
April 28, 2016 at 8:12 am
I know it is something with a server setting or something, not code.
Made another table varchar(8000)
I inserted few hundred characters then just did update where field = field + field.
When...
April 27, 2016 at 2:51 pm
I will check settings but I don't think that his it.
See when the stored procedure runs I have print statements that will show on screen what my built string is....
April 27, 2016 at 2:17 pm
Thank you but no triggers, no functions being called. I am the only developer on this and this is a standalone table.
I have not only done a query for the...
April 27, 2016 at 1:50 pm
In the Print statements when the proc runs; everything is fine.
The problem comes in updating the table, I am limited to 4000 characters for some reason.
If I come up with...
April 27, 2016 at 1:29 pm
Here you are:
USE [ETL]
GO
/****** Object: Table [dbo].[ETLPreparedStatement] Script Date: 4/27/2016 2:32:23 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[ETLPreparedStatement](
[PreparedStatementID] [int] IDENTITY(1,1) NOT NULL,
[ETLMappingID] [int]...
April 27, 2016 at 12:33 pm
The LEN when saved to table is 4k.
April 27, 2016 at 11:30 am
Viewing 15 posts - 91 through 105 (of 267 total)