I am trying to import a very 'messy' flat file into SQL SERVER 2000 via T-SQL. It is a screen dump. I do not know the record delimintors but think that the lines are 160 characters long. I do not see were the BULK INSERT command lets you specify a line length.
Thank you.
I have the example data:
A1234 RX9999
A1234 RX8989
A1234 RX1234
A5674 RX2
A5674 RX999
I need like:
A1234 RX9999 RX8989 RX1234
A5674 RX2 RX999
All fields are dynamic. Does anyone know how to pivot this in a query? I have done it with a procedure and a temporary...
I am being passed the dayofyear (example: 169) and need to convert that into the actual date. I realize that I will need to be passed the year also. Does anyone know how to get date from dayofyear. Thank you!!!!
Below is a simple T-sql cursor. It seems to get stuck on the first row. What am I doing wrong?
USE ADatabase
go
IF EXISTS (SELECT name FROM sysobjects
WHERE name = 'pr_Update_Aircraft' AND type = 'P')
DROP PROCEDURE pr_Update_Aircraft
go
CREATE PROCEDURE pr_Update_Aircraft...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.