Click here to Skip to main content
15,908,274 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I currently have a field in my database that is 3025 characters


I need to write the data to a csv file but i need to break the field into strings of 55
So i want to know if the is a way that i can do this

eg

my field has a string of 120char

i want to split the string to show in 3 different columns
column 1-String(55) char,
Column 2-String(55)Char,
Column 3-String(10)Char,
Column4-55-String(0)char,

How can i do this in SQL script or Vb.net code?
Posted
Comments
[no name] 23-May-14 9:46am    
You could use SubString in SQL and VB.NET to do this.
isi19 23-May-14 10:07am    
Thank you

1 solution

use the substring[^] fucntion in sql server
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900