Quantcast
Channel: SQLServerCentral » SQL Server 2008 » T-SQL (SS2K8) » How to concatenate a New line???
Browsing latest articles
Browse All 14 View Live

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 Article



RE: 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 Article

RE: 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 Article

RE: 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 Article

RE: 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 Article


RE: 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 Article

RE: 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 Article

RE: 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 Article


RE: 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 Article


RE: How to concatenate a New line???

I tried implementing by replacing with br, but br gets appended to the string.

View Article

RE: 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 Article

RE: How to concatenate a New line???

OMG:-):-):-) It works like a charm. Thaaaaaaaaaaaaaaaaaank Yoooooooooooooouuuuuu!!!!!!!! :-):-):-)

View Article

RE: How to concatenate a New line???

Your welcome :cool: /T

View Article


How 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
Browsing latest articles
Browse All 14 View Live




Latest Images