Click here to Skip to main content
15,899,937 members
Home / Discussions / Database
   

Database

 
AnswerRe: how to write this Query ?? Pin
SimulationofSai22-Aug-08 2:07
SimulationofSai22-Aug-08 2:07 
GeneralRe: how to write this Query ?? Pin
varshavmane22-Aug-08 2:24
varshavmane22-Aug-08 2:24 
QuestionScript Tool to generate indexes. Pin
Chris Meech22-Aug-08 1:29
Chris Meech22-Aug-08 1:29 
AnswerRe: Script Tool to generate indexes. Pin
SimulationofSai22-Aug-08 2:03
SimulationofSai22-Aug-08 2:03 
GeneralRe: Script Tool to generate indexes. Pin
Chris Meech22-Aug-08 3:11
Chris Meech22-Aug-08 3:11 
GeneralRe: Script Tool to generate indexes. Pin
Mycroft Holmes22-Aug-08 20:03
professionalMycroft Holmes22-Aug-08 20:03 
GeneralRe: Script Tool to generate indexes. Pin
Paul Conrad22-Aug-08 20:28
professionalPaul Conrad22-Aug-08 20:28 
QuestionBulk Insert Pin
varshavmane21-Aug-08 21:03
varshavmane21-Aug-08 21:03 
Hello All,

I am developing a Windows Service in which I download some data from net. Data which I download is in text file. Text file contains the data and column name of the Table and is seperated by $.

Something like this :

C1$C2$C3$C4$C5$C6$C7$C8$C9$C10$C11$C12$C13$C14$C15$C16$C17$C18$C19$C20$C21$C22$C23$
5476771$6638853$I$$5476771-2$$$20071003$DIR$$$$$$N$$$20071003$OT$$N$N$UNITED STATES$
5476957$6689344$I$$5476957-7$20070927$$20071002$DIR$$$59$YR$F$N$142$LBS$20070930$OT$$N$Y$UNITED STATES$

I worte the following Query for Bulk Insert:

BULK INSERT dbo.tb_DEMO
   FROM 'C:\DEMO08Q1.TXT'
   WITH 
      (
         FIELDTERMINATOR ='$'
      )


I am facing 2 problems in this:
1: I have to delete the column Names from the file and then fire this query.
2: If I delete the column Names then it works but in the last column the data is inserted with $. example: UNITED STATES$

Please help me....

Thanks in Advance.
QuestionFinding Datatype of fields in the table Pin
Preethi_12321-Aug-08 19:01
Preethi_12321-Aug-08 19:01 
AnswerRe: Finding Datatype of fields in the table Pin
Tripathi Swati21-Aug-08 19:17
Tripathi Swati21-Aug-08 19:17 
GeneralRe: Finding Datatype of fields in the table Pin
Preethi_12321-Aug-08 19:34
Preethi_12321-Aug-08 19:34 
GeneralRe: Finding Datatype of fields in the table Pin
Tripathi Swati21-Aug-08 19:39
Tripathi Swati21-Aug-08 19:39 
GeneralRe: Finding Datatype of fields in the table Pin
Preethi_12321-Aug-08 20:44
Preethi_12321-Aug-08 20:44 
GeneralRe: Finding Datatype of fields in the table Pin
Tripathi Swati21-Aug-08 20:56
Tripathi Swati21-Aug-08 20:56 
GeneralRe: Finding Datatype of fields in the table Pin
Preethi_12321-Aug-08 21:23
Preethi_12321-Aug-08 21:23 
AnswerRe: Finding Datatype of fields in the table Pin
Mycroft Holmes21-Aug-08 19:17
professionalMycroft Holmes21-Aug-08 19:17 
GeneralRe: Finding Datatype of fields in the table Pin
Preethi_12321-Aug-08 19:22
Preethi_12321-Aug-08 19:22 
QuestionQuery Help Pin
Care Career21-Aug-08 15:56
Care Career21-Aug-08 15:56 
AnswerRe: Query Help Pin
Mycroft Holmes21-Aug-08 16:34
professionalMycroft Holmes21-Aug-08 16:34 
QuestionQueue implentation in SQL Server Pin
Mona1107198321-Aug-08 4:54
Mona1107198321-Aug-08 4:54 
AnswerRe: Queue implentation in SQL Server Pin
DerekFL21-Aug-08 5:59
DerekFL21-Aug-08 5:59 
QuestionWhat SQL language? Can make SQL Server downtime (Dead, paralysis) Pin
ChinaTJBoy21-Aug-08 1:41
ChinaTJBoy21-Aug-08 1:41 
JokeRe: What SQL language? Can make SQL Server downtime (Dead, paralysis) Pin
Manas Bhardwaj21-Aug-08 4:51
professionalManas Bhardwaj21-Aug-08 4:51 
AnswerRe: What SQL language? Can make SQL Server downtime (Dead, paralysis) Pin
DerekFL21-Aug-08 6:10
DerekFL21-Aug-08 6:10 
AnswerRe: What SQL language? Can make SQL Server downtime (Dead, paralysis) Pin
Tripathi Swati21-Aug-08 19:28
Tripathi Swati21-Aug-08 19:28 

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.