Viewing 15 posts - 31 through 45 (of 56 total)
Glad to know you got it figured out. BTW, BCP format file issues are a pain to understand 🙂
You can use the http://msdn.microsoft.com/en-us/library/ms191479.aspx MSDN article to understand the format better.
mpdillon...
July 15, 2010 at 8:58 am
Can you show us the code you used to import into your staging table?
mpdillon (7/15/2010)
I have stumbled upon a half a##ed solution. If I first import the whole csv file...
July 15, 2010 at 8:45 am
I believe you need to give each column a name.
mpdillon (7/15/2010)
9.0
10
1SQLCHAR00","0""
2SQLCHAR00","2TimePoint""
3SQLCHAR00","3rtPrice""
4SQLCHAR00","0""
5SQLCHAR00","0""
6SQLCHAR00","6daPrice""
7SQLCHAR00","0""
8SQLCHAR00","0""
9SQLCHAR00","9versifyId""
10SQLCHAR00"\r"10extermalNodeID""
If I do not include all the columns from the...
July 15, 2010 at 8:42 am
Pat, you will still need to use the full file definition you posted. The format file still has to define each column but when you use OPENROWSET, you can only...
July 15, 2010 at 8:39 am
If you know of a record that is not being returned, change your INNER JOINs to LEFT JOINs and look for any NULL values when you query for the specific...
July 15, 2010 at 8:30 am
If you are running SQL 2008, you can use sys.sql_expression_dependencies to determine the dependencies.
We use the following code to build the objects in the correct order. Of course, this can...
July 15, 2010 at 8:22 am
Since this has happened, you'll need to remember to encapsulate the DB name with [] every time it's used. If you use other 'dynamic scripts', make sure you check that...
July 8, 2010 at 7:42 am
Are these user-defined or static values? It looks like each insert is going to produce 6 records for each QuestionID. Have you thought about expanding the table to handle each...
April 5, 2010 at 2:43 pm
CirquedeSQLeil (3/15/2010)
;WITH Excpt
as
(
SELECT
A.DetailID,
A.ClaimID,
B.MCareNo
,Row_Number() over (Order by a.detailid) as RowNum
FROM dbo.udf_GetDetailsAsOfTaskListID(17, 0) AS A
LEFT JOIN dbo.udf_GetClaimsAsOfTaskListID(17, 0) AS B
ON A.ClaimID = B.ClaimID...
March 15, 2010 at 11:45 am
Gatekeeper (1/13/2010)
The FULL I was trying was most likely a COPY_ONLY (during our initial testing three months ago)
Figured it out. The message we correct the first time of it being...
January 13, 2010 at 10:26 am
Lynn Pettis (1/13/2010)
Example:
Full Backup -- Base for Log and Differential backups
Diff --...
January 13, 2010 at 10:09 am
Whoops, wrong window on the copy and paste but makes me wonder if the initial FULL was done with the improper arguments. But had that been the case, wouldn't the...
January 13, 2010 at 9:56 am
We use the following function and it works quite well. It will return 'empty' items in the string array as well as handle single item strings without the delimiter. However,...
December 14, 2009 at 8:26 am
The only reason I got it right was because it was multiple choice and eliminated the others. I had no idea the parser was nice about putting non-numerical values after...
September 22, 2009 at 9:57 am
Manie Verster (9/11/2009)
September 11, 2009 at 7:53 am
Viewing 15 posts - 31 through 45 (of 56 total)