Click here to Skip to main content
15,886,676 members
Home / Discussions / Database
   

Database

 
GeneralRe: search only date Pin
test-0931-Mar-10 3:14
test-0931-Mar-10 3:14 
GeneralRe: search only date Pin
dan!sh 31-Mar-10 5:00
professional dan!sh 31-Mar-10 5:00 
GeneralRe: search only date Pin
PIEBALDconsult31-Mar-10 8:40
mvePIEBALDconsult31-Mar-10 8:40 
GeneralRe: search only date Pin
Mycroft Holmes31-Mar-10 12:49
professionalMycroft Holmes31-Mar-10 12:49 
GeneralRe: search only date Pin
Luc Pattyn31-Mar-10 14:56
sitebuilderLuc Pattyn31-Mar-10 14:56 
Questionhow to convert column to row in SQL Server 2005 Pin
Chetan.visodiya30-Mar-10 23:47
Chetan.visodiya30-Mar-10 23:47 
AnswerRe: how to convert column to row in SQL Server 2005 Pin
Mycroft Holmes31-Mar-10 1:28
professionalMycroft Holmes31-Mar-10 1:28 
QuestionBULK INSERT into SQL Server from CSV with apostrophes instead the strings Pin
T210230-Mar-10 22:29
T210230-Mar-10 22:29 
I am trying to perform a bulk insert into SQL Server where some of the text fields may contain apostrophe's, which need to be removed.
Can I bulk insert from the csv and then have the last column be the file name I am inserting from?

BULK INSERT MY_DB.dbo.SYMBOLS FROM 'C:\data.csv'WITH (
DATAFILETYPE = 'char', FIELDTERMINATOR = ',', ROWTERMINATOR = '\r\n' )

My workaround is to query to csv file to a dataset, remove the apostrophes, and then run a ton of insert queries. I am doing this for more than a hundred files.
AnswerRe: BULK INSERT into SQL Server from CSV with apostrophes instead the strings Pin
Mycroft Holmes30-Mar-10 22:47
professionalMycroft Holmes30-Mar-10 22:47 
GeneralRe: BULK INSERT into SQL Server from CSV with apostrophes instead the strings Pin
T210230-Mar-10 23:22
T210230-Mar-10 23:22 
AnswerRe: BULK INSERT into SQL Server from CSV with apostrophes instead the strings Pin
R. Giskard Reventlov30-Mar-10 23:11
R. Giskard Reventlov30-Mar-10 23:11 
GeneralRe: BULK INSERT into SQL Server from CSV with apostrophes instead the strings Pin
T210230-Mar-10 23:28
T210230-Mar-10 23:28 
GeneralRe: BULK INSERT into SQL Server from CSV with apostrophes instead the strings Pin
Mycroft Holmes31-Mar-10 1:27
professionalMycroft Holmes31-Mar-10 1:27 
GeneralRe: BULK INSERT into SQL Server from CSV with apostrophes instead the strings Pin
R. Giskard Reventlov31-Mar-10 5:09
R. Giskard Reventlov31-Mar-10 5:09 
GeneralRe: BULK INSERT into SQL Server from CSV with apostrophes instead the strings Pin
T21021-Apr-10 3:25
T21021-Apr-10 3:25 
GeneralRe: BULK INSERT into SQL Server from CSV with apostrophes instead the strings Pin
R. Giskard Reventlov1-Apr-10 4:04
R. Giskard Reventlov1-Apr-10 4:04 
GeneralRe: BULK INSERT into SQL Server from CSV with apostrophes instead the strings [modified] Pin
T210231-Mar-10 19:07
T210231-Mar-10 19:07 
QuestionDeducting data vs saving it explicitly Pin
Alivemau530-Mar-10 11:11
Alivemau530-Mar-10 11:11 
AnswerRe: Deducting data vs saving it explicitly Pin
PIEBALDconsult30-Mar-10 12:13
mvePIEBALDconsult30-Mar-10 12:13 
AnswerRe: Deducting data vs saving it explicitly Pin
Garth J Lancaster30-Mar-10 15:51
professionalGarth J Lancaster30-Mar-10 15:51 
AnswerRe: Deducting data vs saving it explicitly Pin
PIEBALDconsult30-Mar-10 17:48
mvePIEBALDconsult30-Mar-10 17:48 
AnswerRe: Deducting data vs saving it explicitly Pin
Eddy Vluggen31-Mar-10 0:36
professionalEddy Vluggen31-Mar-10 0:36 
Questionlogin Pin
farokhian30-Mar-10 9:44
farokhian30-Mar-10 9:44 
AnswerRe: login Pin
netJP12L30-Mar-10 10:13
netJP12L30-Mar-10 10:13 
GeneralRe: login Pin
farokhian30-Mar-10 10:42
farokhian30-Mar-10 10:42 

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.