| Author |
Topic |
|
DonLoukes
Starting Member
6 Posts |
Posted - 2011-12-27 : 17:00:34
|
| I am trying to write an email application. I am able to download messages (Pop3) and would like to save them unchanged to a database table. Is there a way to write a SELECT INTO statement that will do so without having to worry about special characters? If not, would saving them to a random access file be easier?I will welcome all suggestions. |
|
|
tkizer
Almighty SQL Goddess
38200 Posts |
|
|
DonLoukes
Starting Member
6 Posts |
Posted - 2011-12-27 : 17:57:34
|
| Hi Tara, I don't want to use random access, I would like to use a database. Please explain "you would need to use one of the unicode data types such as nvarchar" and can you supply an example.Thanks. |
 |
|
|
tkizer
Almighty SQL Goddess
38200 Posts |
|
|
DonLoukes
Starting Member
6 Posts |
Posted - 2011-12-27 : 18:16:28
|
| Sorry, I was talking about characters such as " ' & () [] etc. I don't want to have the program go through a long email with all sorts of attachments adding or changing characters in order to be able to save it. I was asking if there is a way to write a SELECT INTO statement that will avoid that. |
 |
|
|
tkizer
Almighty SQL Goddess
38200 Posts |
|
|
DonLoukes
Starting Member
6 Posts |
Posted - 2011-12-27 : 18:35:32
|
| You say, "I wouldn't remove characters though as there's no problem saving those kinds of characters to a SQL table". That's great - exactly what I want! Please give me an example of an INSERT INTO statement that will save anything I put into it. |
 |
|
|
DonLoukes
Starting Member
6 Posts |
Posted - 2011-12-27 : 18:40:51
|
| By the way, there are only 2 fields in the table, ID (autoincreasing) and Message (string). I want to save the email message in its original form in the Message field. |
 |
|
|
tkizer
Almighty SQL Goddess
38200 Posts |
|
|
DonLoukes
Starting Member
6 Posts |
Posted - 2011-12-28 : 18:44:31
|
| Thanks TaraI eventually solved my problem by using a paramatized Insert Into statement.Regards. |
 |
|
|
|