Click here to Skip to main content
15,920,217 members
Home / Discussions / Database
   

Database

 
Generalstrange problem using ado to add record Pin
Dababa21-Feb-05 15:57
Dababa21-Feb-05 15:57 
GeneralStrange problem using OLE DB Consumer Templates Pin
lisoft21-Feb-05 13:56
lisoft21-Feb-05 13:56 
GeneralExcel Oledb Pin
Devius21-Feb-05 13:38
Devius21-Feb-05 13:38 
GeneralPlease HELP! Data Source Configuration Wizard Pin
Member 169642421-Feb-05 7:13
Member 169642421-Feb-05 7:13 
GeneralEXCLUDING DATA USING DATE AS PARAMETER Pin
Brendan Vogt20-Feb-05 19:28
Brendan Vogt20-Feb-05 19:28 
GeneralRe: EXCLUDING DATA USING DATE AS PARAMETER Pin
Colin Angus Mackay20-Feb-05 19:54
Colin Angus Mackay20-Feb-05 19:54 
GeneralRe: EXCLUDING DATA USING DATE AS PARAMETER Pin
Member 174480620-Feb-05 21:17
Member 174480620-Feb-05 21:17 
GeneralSQL Server Replace Text/Characters Pin
Brendan Vogt20-Feb-05 19:27
Brendan Vogt20-Feb-05 19:27 
Hi,

I have the following 2 questions with which I need help with...

QUESTION 1:
I want to add a news article to a SQL Server 2000 database using classic ASP. I need to know what characters I should search for in the text which may/can display incorrectly.

For example this is what I do when there is an apostrophe in the text:

Replace(Request.Form("txtBody"), "'", "''")

For what other characters must I be aware of when adding to the database table?


QUESTION 2:
When displaying database text to a reader (through a web page) that has line breaks in it,is this the best way to do it? arr(2, 0) is a field in my table called NewsBody.

Replace(arr(2, 0), Chr(10), Chr(10) & " 
")

With regards to question 1, what else needs to be taken care of when displaying data from a database table.

Any help and suggestions would be appreciated!!

Thanks
Brendan
GeneralRe: SQL Server Replace Text/Characters Pin
Colin Angus Mackay20-Feb-05 19:58
Colin Angus Mackay20-Feb-05 19:58 
GeneralCreating New Table and Pump data from ActiveX Pin
Mehbub19-Feb-05 3:27
Mehbub19-Feb-05 3:27 
GeneralRowNumber in results. Pin
ABBASI_RA18-Feb-05 23:52
ABBASI_RA18-Feb-05 23:52 
GeneralRe: RowNumber in results. Pin
Mike Ellison19-Feb-05 19:53
Mike Ellison19-Feb-05 19:53 
GeneralRe: RowNumber in results. Pin
ABBASI_RA20-Feb-05 1:37
ABBASI_RA20-Feb-05 1:37 
GeneralRe: RowNumber in results. Pin
Mike Ellison22-Feb-05 9:48
Mike Ellison22-Feb-05 9:48 
GeneralRe: RowNumber in results. Pin
SimonS20-Feb-05 1:47
SimonS20-Feb-05 1:47 
GeneralRe: RowNumber in results. Pin
ABBASI_RA20-Feb-05 2:40
ABBASI_RA20-Feb-05 2:40 
GeneralBack up database Pin
GoldenStar18-Feb-05 22:56
GoldenStar18-Feb-05 22:56 
GeneralRe: Back up database Pin
Colin Angus Mackay19-Feb-05 1:10
Colin Angus Mackay19-Feb-05 1:10 
GeneralRe: Back up database Pin
GoldenStar20-Feb-05 10:13
GoldenStar20-Feb-05 10:13 
GeneralSome help with this SQL statement Pin
Tom Wright18-Feb-05 7:05
Tom Wright18-Feb-05 7:05 
GeneralRe: Some help with this SQL statement Pin
Michael Potter18-Feb-05 9:02
Michael Potter18-Feb-05 9:02 
GeneralRe: Some help with this SQL statement Pin
Tom Wright18-Feb-05 12:48
Tom Wright18-Feb-05 12:48 
GeneralAppend Column to Row Pin
Anonymous18-Feb-05 4:30
Anonymous18-Feb-05 4:30 
GeneralRe: Append Column to Row Pin
Michael Potter18-Feb-05 9:18
Michael Potter18-Feb-05 9:18 
GeneralMigrating from Acess to Oracle Pin
ashish kabra18-Feb-05 2:38
ashish kabra18-Feb-05 2:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.