Wrox Programmer Forums
Go Back   Wrox Programmer Forums > SQL Server > SQL Server 2000 > SQL Server 2000
|
SQL Server 2000 General discussion of Microsoft SQL Server -- for topics that don't fit in one of the more specific SQL Server forums. version 2000 only. There's a new forum for SQL Server 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server 2000 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 13th, 2005, 01:16 PM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 1,348
Thanks: 0
Thanked 5 Times in 5 Posts
Default

See Books On Line that comes with Sql Server. Also you can search on Google.

 
Old October 1st, 2005, 06:12 PM
Authorized User
 
Join Date: Jun 2004
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Default

If they are submitting through a web page surely it would be easier to do this when they submit it, so it never even hits the db?
 
Old October 3rd, 2005, 08:29 AM
Authorized User
 
Join Date: Jun 2005
Posts: 40
Thanks: 0
Thanked 0 Times in 0 Posts
Default



Hello,

I tried a vbscript to do that but it was giving errors. Is there anything you can suggest me to get this done please?
I will be thankfull.

Palvin

 
Old October 3rd, 2005, 11:09 AM
Friend of Wrox
 
Join Date: Aug 2004
Posts: 385
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Just for clarification. Do you want to replace from a specific list like (yahoo.com, hotmail.com, micro$oft.com) or ALL (*.com, *.net, *.org) type values? Because the second option is much more difficult.

 
Old October 3rd, 2005, 12:08 PM
Authorized User
 
Join Date: Jun 2005
Posts: 40
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hello,

Even if I am able to go by the first option, it will be great. Then I will omit certain words like hotmail, hotmail.com, hotmaildotcom etc.

Thanks.

 
Old October 3rd, 2005, 12:52 PM
Friend of Wrox
 
Join Date: Aug 2004
Posts: 385
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Ok then in that case I suggest you do in in the front end app like suggested above. If you do it in SQL I suggest the below listed process. But I suggest you use both. Filter them in the front end then if new vales you don't like make it to the database. You can remove them and revise the front end with additional exceptions. Create a table of the values you want to exclude. Run a nightly job the compares the exclude list to whats been entered. This is easier than doing the trigger approach but the disadvantage is you allow the saving of the data you don't want until the job is run. The advantage is if you want to grow your list of exceptions it will go back and fix all historical instances of what you don't want. If you want the best of both worlds you could compare against the list in the trigger. But the disadvantage of this is it will be extremely slow. As your list grows the trigger method will also be be slower and slower. Question to ask yourself is can you live with the undesirable data for a period of time. Best solution still is on the front end app. My suggestions are only if you want/have to do it in the backend and to get you to think about the ramifications of the direction you choose.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Text Strings need help! julz127 Visual Basic 2005 Basics 2 January 26th, 2008 09:49 PM
Deleting text from a RichTextBox wslyhbb C# 0 October 29th, 2005 08:00 PM
Place text strings in a text box error_help Excel VBA 1 October 6th, 2005 05:26 AM
Automatically deleting from databases gmoney060 Classic ASP Basics 5 July 25th, 2004 12:02 PM
Automatically Finding and Deleting Blank rows Romulus Excel VBA 3 October 18th, 2003 09:04 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.