RE: How to concatenate a New line???
Something like [code="sql"] declare @Str1 varchar(32) declare @Str2 varchar(32) select @str1='Sql', @Str2='Server' print @str1 + char(13) + @str2 [/code] ? /T
View ArticleRE: How to concatenate a New line???
Hi When I use this in a select statement as shown i get [b]Sql Server[/b] declare @Str1 varchar(32) declare @Str2 varchar(32) select @str1='Sql', @Str2='Server' select @str1 + char(13) + @str2 Am I...
View ArticleRE: How to concatenate a New line???
[quote][b]Hakuna Matata :):):) (7/8/2011)[/b][hr]Hi When I use this in a select statement as shown i get [b]Sql Server[/b] declare @Str1 varchar(32) declare @Str2 varchar(32) select @str1='Sql',...
View ArticleRE: How to concatenate a New line???
[quote][b]Hakuna Matata :):):) (7/8/2011)[/b][hr]Hi When I use this in a select statement as shown i get [b]Sql Server[/b] declare @Str1 varchar(32) declare @Str2 varchar(32) select @str1='Sql',...
View ArticleRE: How to concatenate a New line???
I am trying to implement this into the following function : [code="sql"] CREATE FUNCTION [dbo].[fnItinerary](@Itinerary_id int) RETURNS VARCHAR(max) AS BEGIN -- Declare the return variable here declare...
View ArticleRE: How to concatenate a New line???
I must say that i dont see the problem. Since that is the way you will get it out. But as i said. SSMS will NOT display the line breaks in GRID mode. The TEXT mode will. Reports will. Applications will...
View ArticleRE: How to concatenate a New line???
Tommy is right. Adding CHAR(13) or even CHAR(13) + CHAR(10) to your output string does NOT create a new row. It just creates a row with control characters in it which may be recognized by an...
View ArticleRE: How to concatenate a New line???
I am using the function to send a report using Database Mail as shown below. Is there any other go wherin I can I can show multiple itinerary's on different lines. [code="sql"] DECLARE @tableHeader...
View ArticleRE: How to concatenate a New line???
[quote][b]Hakuna Matata :):):) (7/8/2011)[/b][hr]I am using the function to send a report using Database Mail as shown below. Is there any other go wherin I can I can show multiple itinerary's on...
View ArticleRE: How to concatenate a New line???
I tried implementing by replacing with br, but br gets appended to the string.
View ArticleRE: How to concatenate a New line???
[quote][b]Hakuna Matata :):):) (7/14/2011)[/b][hr]I tried implementing by replacing with br, but br gets appended to the string.[/quote] Well you cant replace it with just BR you need the whole part...
View ArticleRE: How to concatenate a New line???
OMG:-):-):-) It works like a charm. Thaaaaaaaaaaaaaaaaaank Yoooooooooooooouuuuuu!!!!!!!! :-):-):-)
View ArticleHow to concatenate a New line???
Hi, I have two strings say @Str1 & @Str2. I want to concatenate @Str1 & @Str2 with a new line between them. @Str1=Sql @Str2=Server The output should be Sql Server rather than Sql Server. How...
View Article
More Pages to Explore .....