Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. DocuMan

    Sending e-mail when a condition is met.

    If you've got SMTP running on a Windows 2003 server, you can use the following SP. If it's 2000, then use the CDONTS object (some of the properties will be different). if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[SendEmail]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)...
  2. DocuMan

    Copying entire table to a new table?

    If you need to do this repeatedly, use TRUNCATE TABLE target_table before you run the query.
  3. DocuMan

    Stored Procedure Problem

    create procedure test ( @word varchar(10), @sectionID varchar(max) ) as begin EXECUTE ( 'SELECT * FROM [testtable] WHERE sectionID IN ( ' + @sectionID + ')' ) end
  4. DocuMan

    Is there a better way to write this??

    CASE only works when you want to return different values based on a variable or condition. If you want to execute differing lines of code based on a variable then If v = 1 begin ------ end Is the way to go. It looks clunky and performance may suffer, but it's easily readable by humans.
  5. DocuMan

    Parsing out email address

    I always use REVERSE when I'm looking for the last instance of a character in a string.
  6. DocuMan

    Need Quick Help on a SQL Script Addition

    DELETE tblFeed INSERT INTO tblFeed (Category, Mfr, Title, Price) SELECT tblProduct.FeedCategory AS Category, tblCompany.name AS Mfr, tblCompany.name + ' ' + tblProduct.productName AS Title, tblProduct.salePrice AS Price...
  7. DocuMan

    IIS Hangups ALOT

    I've been experiencing IIS6 "hangs" weekly. Using the IIS Diagnostics, I traced it to one our .NET web services. I'm using two approaches: 1) Modify the machine.config file to increase threading. 2) Put the bad boy ws into its own app pool and recycle it based on memory. No hangs for two...

Part and Inventory Search

Back
Top