Click here to Skip to main content
15,881,812 members
Home / Discussions / Database
   

Database

 
GeneralRe: ms access 2016 database Pin
Richard Deeming5-Jul-17 7:54
mveRichard Deeming5-Jul-17 7:54 
GeneralRe: ms access 2016 database Pin
Richard MacCutchan5-Jul-17 21:56
mveRichard MacCutchan5-Jul-17 21:56 
GeneralRe: ms access 2016 database Pin
Richard Deeming6-Jul-17 0:58
mveRichard Deeming6-Jul-17 0:58 
GeneralRe: ms access 2016 database Pin
Richard MacCutchan6-Jul-17 1:19
mveRichard MacCutchan6-Jul-17 1:19 
GeneralRe: ms access 2016 database Pin
jschell10-Jul-17 4:18
jschell10-Jul-17 4:18 
GeneralRe: ms access 2016 database Pin
jschell10-Jul-17 4:16
jschell10-Jul-17 4:16 
GeneralRe: ms access 2016 database Pin
Richard Deeming10-Jul-17 4:39
mveRichard Deeming10-Jul-17 4:39 
QuestionTrying to replace local file links with actual file contents Pin
J Snape2-Jul-17 19:53
professionalJ Snape2-Jul-17 19:53 
I've been trying to do this for while and haven't made any progress.

I have a tab-delimited file with records for a database file. One of the fields has a local file link for a text file. Each record points to a different text file and there are 151,806 rows, so replacing the file names ("C:\files\LAW_SECTION_TBL_1.lob", "C:\files\LAW_SECTION_TBL_2.lob", ..., "C:\files\LAW_SECTION_TBL_151806.lob") one-by-one with the file text will take a decade or so. The .lob files are utf-8 plain text files.

I'd like to load the text files into the individual records as I insert all the data, but I'm not sure how to do it. The file I have to load it into MySQL has the following lines (shortened to essentials only):

...
  ,HISTORY
  ,@var1      // Where the "C:\files\LAW_SECTION_TBL_1.lob" is stored
  ,ACTIVE_FLG
  ,TRANS_UID
  ,TRANS_UPDATE
)
SET CONTENT_XML=LOAD_FILE(concat('c:\\files\\',@var1))


I just don't know how to do it for MS SQL Server. Any help or links to webpages that will help me write this INSERT statement are extremely appreciated!
AnswerRe: Trying to replace local file links with actual file contents Pin
J Snape3-Jul-17 19:51
professionalJ Snape3-Jul-17 19:51 
AnswerRe: Trying to replace local file links with actual file contents Pin
jschell5-Jul-17 6:51
jschell5-Jul-17 6:51 
QuestionHow do I get all the Ids from my last insert in Mysql? Pin
karengsh27-Jun-17 18:05
karengsh27-Jun-17 18:05 
AnswerRe: How do I get all the Ids from my last insert in Mysql? Pin
Richard MacCutchan27-Jun-17 19:54
mveRichard MacCutchan27-Jun-17 19:54 
GeneralRe: How do I get all the Ids from my last insert in Mysql? Pin
karengsh27-Jun-17 21:07
karengsh27-Jun-17 21:07 
GeneralRe: How do I get all the Ids from my last insert in Mysql? Pin
Richard MacCutchan28-Jun-17 8:51
mveRichard MacCutchan28-Jun-17 8:51 
AnswerRe: How do I get all the Ids from my last insert in Mysql? Pin
Richard Deeming27-Jun-17 23:51
mveRichard Deeming27-Jun-17 23:51 
GeneralRe: How do I get all the Ids from my last insert in Mysql? Pin
karengsh28-Jun-17 0:36
karengsh28-Jun-17 0:36 
AnswerRe: How do I get all the Ids from my last insert in Mysql? Pin
ZurdoDev28-Jun-17 9:48
professionalZurdoDev28-Jun-17 9:48 
QuestionAccess ComboBox Query Question Pin
Bassam Abdul-Baki27-Jun-17 14:16
professionalBassam Abdul-Baki27-Jun-17 14:16 
QuestionNeed to load bulk Data with some conditions Pin
indian14327-Jun-17 10:14
indian14327-Jun-17 10:14 
AnswerRe: Need to load bulk Data with some conditions Pin
Mycroft Holmes27-Jun-17 19:26
professionalMycroft Holmes27-Jun-17 19:26 
GeneralRe: Need to load bulk Data with some conditions Pin
indian14328-Jun-17 8:14
indian14328-Jun-17 8:14 
GeneralRe: Need to load bulk Data with some conditions Pin
indian14312-Jul-17 7:41
indian14312-Jul-17 7:41 
QuestionORDER BY issue with Interbase XE SQL Server Pin
User 1106097925-Jun-17 2:32
User 1106097925-Jun-17 2:32 
QuestionRe: ORDER BY issue with Interbase XE SQL Server Pin
Eddy Vluggen25-Jun-17 3:06
professionalEddy Vluggen25-Jun-17 3:06 
GeneralRe: ORDER BY issue with Interbase XE SQL Server Pin
User 1106097925-Jun-17 3:24
User 1106097925-Jun-17 3:24 

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.