February 20, 2017 at 11:16 pm
Comments posted to this topic are about the item Data import files
February 20, 2017 at 11:17 pm
Good question, thanks Steve.
Had me stumped for a while....
____________________________________________
Space, the final frontier? not any more...
All limits henceforth are self-imposed.
“libera tute vulgaris ex”
February 21, 2017 at 9:04 am
Tough and interesting question, but well specified and after some time, I happily found a good explanation
on MSDN in the article Data Formats for Bulk Import or Bulk Export (SQL Server). Thanks Steve for this question.
February 23, 2017 at 10:44 am
George Vobr - Tuesday, February 21, 2017 9:04 AMTough and interesting question, but well specified and after some time, I happily found a good explanation
on MSDN in the article Data Formats for Bulk Import or Bulk Export (SQL Server). Thanks Steve for this question.
Looking at that or at the page referenced in the explanation first seems odd to me, as the obvious place (for me, anyway) seems to be the - the question is effectively asking " what sort of input file can be specified by the DATAFILE parameter of TSQL's BULK INSERT command(/query/statement/whatever it's currently fashionable to call it)?
Tom
February 23, 2017 at 11:03 am
The answer given is a bit of hooie if you consider that these QOTD questions are typically based on the latest version documented in BOL. It'll import properly structured CSV and, if that's not properly structured, then it's just "character based" that needs some special care. Here's the quote from https://msdn.microsoft.com/en-us/library/ms188365.aspx
FORMAT = 'CSV'
Applies to: SQL Server vNext CTP 1.1.
Specifies a comma separated values file compliant to the RFC 4180 standard.
This is also why I don't take tests on the subject.
--Jeff Moden
Change is inevitable... Change for the better is not.
February 23, 2017 at 3:39 pm
I do BULK INSERT all the time, but not on SQL 2016 yet. I hope they didn't break what was already there and worked so well.
February 23, 2017 at 7:37 pm
Ed Wagner - Thursday, February 23, 2017 3:39 PMI do BULK INSERT all the time, but not on SQL 2016 yet. I hope they didn't break what was already there and worked so well.
The CSV functionality won't be available in normal 2016. It will only be available in VNext initially. I'm kind of happy about that. Let them do their experiment in something other than what I'm setting up to use this year. 😉
--Jeff Moden
Change is inevitable... Change for the better is not.
Viewing 7 posts - 1 through 6 (of 6 total)
You must be logged in to reply to this topic. Login to reply