Viewing 15 posts - 91 through 105 (of 209 total)
Providing your NA_BANKACCTTYPELOOKUP table has 7 columns, all wide enough to accommodate the data, then this should work
BULK INSERT TEST.dbo.NA_BANKACCTTYPELOOKUP
FROM 'C:\TEST\WXBankAcctType.txt'
WITH
(
FIELDTERMINATOR = '|'
)
August 26, 2010 at 9:45 am
Thanks for the feedback Mare. I appreciate it:-)
August 25, 2010 at 11:32 pm
I have managed to come up with an ACCESS variation which is self-contained without the requirement of a physical tally table. I have created a derived tally table...
August 25, 2010 at 4:47 pm
Actually I wanted to come up with an ACCESS version which uses a virtual tally table so that the whole query was self-contained. However I'm not sure whether...
August 25, 2010 at 3:11 pm
As an UPDATE
IF NOT OBJECT_ID('tempdb.dbo.#t', 'U') IS NULL DROP TABLE #t
CREATE TABLE #t
(Firstname VARCHAR(100),
Lastname VARCHAR(100),
url VARCHAR(200))
INSERT #t (Firstname, Lastname)
SELECT 'David', 'Glance' UNION ALL ...
August 25, 2010 at 2:30 pm
Does this give you what you're looking for?
IF NOT OBJECT_ID('tempdb.dbo.#t', 'U') IS NULL DROP TABLE #t
SELECT 'David' AS Firstname, 'Glance' AS Lastname into #t UNION ALL ...
August 25, 2010 at 2:00 pm
BTW did you try running the below as a SQL PASS-THROUGH query as I suggested previously? That should work fine too;-)
SELECT ProdColortbl.ProductNbr, ProdColortbl.Date, Z.Color, Z.Units
FROM ProdColortbl
CROSS APPLY
(
SELECT 'Red', Red UNION...
August 25, 2010 at 1:20 pm
OK so here it is, an ACCESS UNPIVOT query. You will need to create a table called Tally with a single field N, Data Type Number. Simply enter...
August 25, 2010 at 1:04 pm
Looks to me like you are still missing a quote either side of @rolepwd
August 25, 2010 at 9:35 am
You realise that
select @roleval = name, @rolepwd = cast(datalength(name) as varchar(20)) + left(pwd,2) from test
will only be meaningful if you have only one record in test since if you have...
August 25, 2010 at 8:59 am
Do you have any other triggers associated with these tables?
August 25, 2010 at 6:40 am
If you insert multiple records into TAAdditionalWork then you will get "duplicate" entries based on AuditDate in your Audit table. However I would not expect to see duplicates across the...
August 25, 2010 at 1:38 am
Using OPENROWSET BULK you can specify the columns in any order you like, as if you were selecting from a table eg
SELECT STATE, COUNTRY, LAST_NAME, FIRST_NAME FROM OPENROWSET (BULK...
August 24, 2010 at 4:10 pm
From what you are telling me, it is clearly absolutely fine to use FIRSTROW = 2. Yes it is crazy fast!:crazy: Format files can be a bit tricky...
August 24, 2010 at 2:12 pm
Viewing 15 posts - 91 through 105 (of 209 total)