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 SkipVought 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. FailSafe

    Update ALL Rows in one pass

    Is the Conversion correct here or is there a simpler way. CREATE PROC spUpdateTokenScore AS SET NOCOUNT ON -- Suppress record count messages for a performance boost. -- Declare two variables. DECLARE @HAMS Numeric(18,4), @SPAMS Numeric(18,4) -- Populate the variables with values from the...
  2. FailSafe

    INSERT INTO Crashes with Apostrophe

    Here is a VB Function which you can parse all your SQL Text through: Public Function SQLEncode(sqlValue As String) As String On Error Resume Next ' NOT really needed SQLEncode = CStr(Replace(sqlValue, "'", "''")) End Function Brian Gillham FailSafe Systems
  3. FailSafe

    CDONTS Confusion

    Heres the answer. Just use Visual Studio .NET (just kidding) but here is a link to a FREE Utility that will solve all your problems. http://www.freevbcode.com/ShowCode.Asp?ID=109 Brian Gillham FailSafe Systems
  4. FailSafe

    Problem with a SQL Query with VB 6

    Be careful when using Shape you cannot use a normal connection string. You have to use the SHAPE Provider. The first thing I would check is the Cursor. You CANNOT use Server Side Cursors with the SHAPE Command. Brian Gillham FailSafe Systems
  5. FailSafe

    Update ALL Rows in one pass

    I need to be able update all the rows in Table using information from another Table and a Formula. EG: Table #1 (Only has ONE Record) GoodMails (Int) BadMails (Int) Table #2 Tokens (String) GoodTokens (Int) BadTokens (Int) Score (Numeric(18,4) I only want to read Table 1 ONCE I then need to...
  6. FailSafe

    Parse an Undetermined Number of Tokens.

    Only the Tokens are Delimitered with "^". Basically a case of split Tokens and split again to access the values. Brian Gillham FailSafe Systems
  7. FailSafe

    Parse an Undetermined Number of Tokens.

    My Spam Filter is working great using Bayesian Filters and for those of you who want to know how Bayesian Values are calculated the following procedure should explain it. Anyway on with my problem. I want parse ALL the Tokens that I have collected when I process the Email to a Stored Procedure...
  8. FailSafe

    Decimals calculated as Int.

    Duh - Looks like I had a blonde moment :-) Thanks for the reply, sometimes the more you look at something the more invisible it becomes.
  9. FailSafe

    Decimals calculated as Int.

    I have this strange problem where a Calculation in my Stored Procedure only shows the Int Value. The Code below always returns 0 or 1 and never the decimal value. Can some on help? DECLARE @HAMS int, @SPAMS int, @GOOD int, @BAD int, @SCORE decimal(14,3) SET @HAMS = (SELECT...
  10. FailSafe

    Creating a Recordset Using a Range of Dates

    Be careful when using dates with SQL and ACCESS databases.<br> Firstly SQL is ALWAYS in the format MM/DD/YY<br> While Access uses the date format in the regional settings.<br> When / if you internationalize your apps these are important considerations.
  11. FailSafe

    EVALUATE() FUNCTION IN VB, Is it out there?

    Why not use the Immediate window to Evaluate Expressions. Or am I not understanding your question
  12. FailSafe

    Advice on DataEnvironment and DataReport

    Try this:<br> If RS.State = adStateClosed then<br> RS.Open<br> End If
  13. FailSafe

    Cursor types and the autonumber field with ADO/Remote acccess

    Once you update using Client Side Cursors - Do a RS.Requery<br> Do not use Server Side Cursors with Access - Do as above.
  14. FailSafe

    Print Preview

    Seagate have a free version of their Report Writer for VB6. The samples include a preview window.

Part and Inventory Search

Back
Top