Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Friday, April 19, 2024 
 
slxdeveloper.com Community Forums  
   
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
 Data & Imports Forums - T-SQL & Queries
Forum to discuss general T-SQL questions and help with queries related to SalesLogix data. View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to T-SQL & Queries | New ThreadView:  Search:  
 Author  Thread: How to create a new line through sql sever
Amjad Omar
Posts: 2
 
How to create a new line through sql severYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 06 Jul 12 6:10 PM
fiogf49gjkf0d

I am trying to store data in the notes section on SLX, and I am trying to use new line in my notes to make it easier to read. I store data in sql server database, I am trying to use char(10), char(13), "\n"...etc. but nothing seems to work.


Can someone please assist.

[Reply][Quote]
John H. Hedges
Posts: 62
 
Re: How to create a new line through sql severYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 07 Jul 12 2:22 AM
fiogf49gjkf0d
Maybe if you posted the actual SQL you're using...? And could you tell us exactly how it's not working - does it store anything at all, or are you just not seeing the carriage return-linefeeds (CRLFs) in the notes? Maybe you could also tell us what version of SLX you're on, and why you can't use VBscript for this...

I submit an INSERT command like this, directly through the SLX provider:

Insert into History (historyid, accountid, notes, longnotes)
Values ('HSITE0000001', 'ASITE0000001',
'This is a' + CHAR(13) + CHAR(10) + 'note',
'This is a' + CHAR(13) + CHAR(10) + 'slightly longer note')

...and it stores the CRLFs with no problem. You might not actually see the CRLF displayed in the NOTES field if you're looking at it in a datagrid or a textbox, but it's there.
[Reply][Quote]
Raul A. Chavez
Posts: 1300
Top 10 forum poster: 1300 posts
 
Re: How to create a new line through sql severYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 08 Jul 12 10:33 AM
fiogf49gjkf0d

I second John's response:


 


  SQL will store the new Line Characters. If you are using the LAN client, you will see the line breaks accordingly, however on the Web Client you may not be able to see them (depends on the control they are linked to, etc, etc).


 


  In Datagrids (on the Web Client), it won't display the line breaks (unless you replace them with <br /> tags....

[Reply][Quote]
Amjad Omar
Posts: 2
 
Re: How to create a new line through sql severYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 17 Jul 12 7:17 PM
fiogf49gjkf0d

You guys are totally correct. I followed John's steps and they appeared just fine.

[Reply][Quote]
 Page 1 of 1 
  You can subscribe to receive a daily forum digest in your user profile. View the site code of conduct for posting guidelines.

   Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
 

 
 slxdeveloper.com is brought to you courtesy of Ryan Farley & Customer FX Corporation.
 This site, and all contents herein, are Copyright © 2024 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.

code of conduct | Subscribe to the slxdeveloper.com Latest Article RSS feed
   
 
page cache (param): 4/19/2024 10:35:29 AM