Forum Replies Created

Viewing 15 posts - 31 through 45 (of 149 total)

  • RE: Debit and credit process?

    The simplest way is to record a credit as a negative "payment" amount. If your need for credits is fairly simple, that's a good way to go. It's...

  • RE: Is this Payment tables relations,and Normalizations are Correct??

    Did you actually change anything in the structure from the last time you posted this?

    Repeated ideas from last time:

    Remove customerName, and put it in the Customer table.

    Move creditCardName to the...

  • RE: Combine "Concat" results of a query is it possible?

    Grr. That's a result of combining my methods and brij's.

    Remove the SET @VDNList = '' statement from your function. That should mean that the variable is initialized as...

  • RE: Combine "Concat" results of a query is it possible?

    Put your concatenation process in a UDF, passing whatever value you're grouping on. So, in your case, it might look like:

    CREATE FUNCTION ConcatVDN (@type varchar(30), @center varchar(50))

    RETURNS varchar(4000)

    AS

    DECLARE @VDNLIST...

  • RE: substitute to Eval function

    Huh. I didn't think it would actually evaluate that. Well, there's proof that stripping semicolons is not sufficient protection.

  • RE: substitute to Eval function

    In your procedure, you would put something like:

    IF CHARINDEX(';',@formula) 0 THEN

    BEGIN

    -- raise error indicating possible injection

    END

    ELSE

    BEGIN

    -- put your EXEC statement here

    END

    Since a semicolon is not a character...

  • RE: SQL Server 2005 vs MS Access 2000

    You are giving anonymous users read and write access to a folder on your website. Which means that they can see whatever files you put up there. And...

  • RE: substitute to Eval function

    Yup, that pretty much ought to work.

    As a critical note, this method opens you up to a problem known as SQL injection. That's when a hacker is able to...

  • RE: SQL Server 2005 vs MS Access 2000

    The biggest thing to hit them with is that you already own the SQL Server. That's like insisting on leaving your pickup in the garage while you try to...

  • RE: SQL Server 2005 vs MS Access 2000

    Security is a major concern. Security in Access is essentially non-existent. There is no way to secure Access against a dedicated, knowledgeable hacker. It's pretty difficult to...

  • RE: substitute to Eval function

    Try EXEC. Except that you have to put SELECT in front of the expression. For example:

    EXEC('SELECT 10 + 20')

    Will yield 30.

    Note that this method gives poor performance if...

  • RE: Is an automatic update to script behind ALTER VIEW possible?

    If redesign is an option, I would strongly recommend it. This sort of information should be drawn from an Orders table with a GROUP BY query, not stored in...

  • RE: Cross Tab result set in SQL

    I strongly recommend that you create this with the cross-tab functionality built into Crystal Reports. It is simpler, more powerful, and more intuitive.

  • RE: Generic Dynamic DML stored procedures

    Just in case your boss needs more than one opinion, I'm going to agree with Mike. This seems like, honestly, the worst possible solution. Why can't the webmonkeys...

  • RE: Managing Identity Values Between Multiple Databases

    Identity values are meaningless. They serve solely to produce an artificial primary key. They should not have any relation to real-world values, unless you don't mind having, say,...

Viewing 15 posts - 31 through 45 (of 149 total)