Viewing 15 posts - 2,401 through 2,415 (of 3,543 total)
This should do it, you may have to convert the values
Function Main()
sTemp = DTSSource("Col001")
iThere = InStr(sTemp, ",")
DTSDestination("Column1") = Left(sTemp, iThere - 1)
sTemp = Mid(sTemp, iThere + 1)
iThere = InStr(sTemp, ",")
DTSDestination("Column2")...
January 19, 2005 at 9:00 am
Personally I would write an ActiveX script to parse the data into separate columns as part of the transformation process.
January 19, 2005 at 8:30 am
LEN([column])-LEN(REPLACE([column],',',''))
January 19, 2005 at 8:09 am
Yes, however ALTER will create a second entry in sysobjects with an increased value of base_schema_ver.
DROP will remove all these entries and another CREATE will set it back to 0.
using...
January 19, 2005 at 7:44 am
The only way I can see to make this work is to input the data as one column and process the data, using your eample of
20040325,000072,005309,1.00,1.00,2.00,LUNCH
pass the first 3...
January 19, 2005 at 7:34 am
This question was asked on a thread a while ago and I think someone's solution was to only DROP / CREATE procedures and to snapshot the creation dates daily (or...
January 19, 2005 at 7:28 am
I presume that LSeries can be any value or is it as per your example limited to 999?
But why a nested cursor!
One cursor to get distinct LSeries and do a...
January 19, 2005 at 7:24 am
Presumably you are writing a procedure to do this so the answer will depend on how you pass the dates.
If you pass them as a single delimited string then two...
January 19, 2005 at 7:10 am
Peter,
That is fine as long as the procedures are called in sequence, if there is any logic that may or may not execute one or more procedures (or series of procedures) then unless...
January 19, 2005 at 3:00 am
![]() | Take the same row, delete it then insert it back again. Gee, all of the PK-FK references are... |
January 19, 2005 at 2:51 am
Hmm, seems like you've been there and done that Kenneth
January 19, 2005 at 2:31 am
if you have a linked server setup then
SELECT *
FROM OPENQUERY(servername,'SELECT * FROM [TableB]')
otherwise
SELECT *
FROM OPENROWSET('MSDASQL','servername';'loginname';'password','SELECT * FROM [TableB]')
you can also join local and remote tables like...
January 18, 2005 at 8:54 am
![]() | the IDENTITY property alone does *not* guarantee uniqueness. |
** Only if you fiddle while Rome burns ** ...
January 18, 2005 at 7:39 am
Well, Frank, I've heard of sitting on the fence but it looks like you've jumped it and half way across the field.
Frank is...
January 18, 2005 at 7:36 am
I guess by your post that you want to check the table structures not the data. The comparison will depend on column sequence.
select c.*
from sysobjects o
inner join syscolumns...
January 18, 2005 at 6:57 am
Viewing 15 posts - 2,401 through 2,415 (of 3,543 total)