Viewing 15 posts - 49,216 through 49,230 (of 59,102 total)
You mean withing T-SQL? Sure... import the file... delete the desired rows... export the file. You could also write some VBS using the System File Object to do...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 14, 2008 at 7:57 am
First, it would be a great help if you'd take a little time to post your data in a more readibly usable format so that we can actually write a...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 14, 2008 at 6:51 am
... heh... and before anyone even thinks of suggesting ISNUMERIC, try this...
SELECT ISNUMERIC('$1000') UNION ALL
SELECT ISNUMERIC('1,000') UNION ALL
SELECT ISNUMERIC('3d2') UNION ALL
SELECT ISNUMERIC('2e3')
--Jeff Moden
Change is inevitable... Change for the better is not.
July 14, 2008 at 6:46 am
Obviously, that WHERE clause won't catch everything... but this will...
WHERE tblItem.strItem NOT LIKE '%[^0-9]%'
The circumflex (^) also means "NOT".
--Jeff Moden
Change is inevitable... Change for the better is not.
July 14, 2008 at 6:44 am
In other words, you will need to rewrite part of the app to use stored procedures instead of dynamic embedded SQL.
--Jeff Moden
Change is inevitable... Change for the better is not.
July 14, 2008 at 6:39 am
bodhilove (7/13/2008)
--Jeff Moden
Change is inevitable... Change for the better is not.
July 14, 2008 at 6:32 am
Instead of writing to a text file, why not write to a table where each row has a "create date"?
--Jeff Moden
Change is inevitable... Change for the better is not.
July 14, 2008 at 6:30 am
That's called a "Running Total". See the following URL for one of the better ways to do that.
http://www.sqlservercentral.com/articles/Advanced+Querying/61716/
--Jeff Moden
Change is inevitable... Change for the better is not.
July 14, 2008 at 6:27 am
I'm no DTS or SSIS "Ninja", so I can't help there. What I have done is create another spreadsheet that would open the others and export their data to...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 14, 2008 at 6:18 am
Eric,
What is it that you intend to do with the VBA?
--Jeff Moden
Change is inevitable... Change for the better is not.
July 14, 2008 at 5:13 am
Heh... if you're happy with 4 hours, I'm happy. 🙂
--Jeff Moden
Change is inevitable... Change for the better is not.
July 14, 2008 at 12:00 am
You're looking at the code that SQL Server generated to run some user code... better if you look at the user code. Look for long transactions to begin with...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 13, 2008 at 11:55 am
Just a side bar... if the job is taking 4 hours on anything to run, you might want to look at tuning the code instead of trying to tune SSIS....
--Jeff Moden
Change is inevitable... Change for the better is not.
July 13, 2008 at 11:51 am
Heh... cgnospam words are pretty strong and most folks who have an MVP would certainly be upset about being called a "marketing whore" or maybe even an "evangelist" :hehe:, but...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 13, 2008 at 11:46 am
You already said that... this is the third time... relax... someone else will answer...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 13, 2008 at 10:54 am
Viewing 15 posts - 49,216 through 49,230 (of 59,102 total)