Forum Replies Created

Viewing 15 posts - 1 through 15 (of 86 total)

  • RE: Naming Conventions

    Yes, I've seen everything under the sun too. I still like what I was told to use when I started my current, very long term project:

    t_ for tables (fyi...

  • RE: Local Variables in a Stored Procedure

    I really wouldn't expect to see much, if any, difference. One question though, why does your WHERE clause read

    WHERE TBL_STATUS = @ldeleted_status = 50025

    and not

    WHERE TBL_STATUS = @ldeleted_status

    ?...

  • RE: Incrementing records

    I'd have to agree with folks on this one. I have done both. We still use a procedure in our Sybase database to get the next ID to...

  • RE: Select Statement Using Not In and Null Values

    Might I suggest that you use a NOT EXISTS? It should perform better than a NOT IN. It's also curious that I couldn't reproduce your issue. It...

  • RE: Grantor does not have GRANT permission

    It still sounds like the users that can't run it aren't members of the appropriate group. What happens if you grant the exec on the stored proc to 'public'?...

  • RE: Should DBAs attend Development Meetings

    Personally I would only invite a DBA if it made sense. The majority of the developers either know enough about SQL or have other developers they can use as...

  • RE: query optimization\

    If there is only one row coming back from the IDTABLE you could do something like this:

    DECLARE @ID INT (?)

    SELECT @ID = ID FROM IDTABLE WHERE EMAIL_ADDRESS = 'key1'

    DELETE FROM...

  • RE: Passing parameters with '@' in the code.

    Zoltan,

    I think you missed the point. You really shouldn't name your variables like that. You should do as a number of folks have pointed out. Have a...

  • RE: Drop temp tables

    I always clean up after myself as well.

    Gary, Even if you don't drop the temp table within your stored proc you can run it multiple times within QA. When...

  • RE: Update several records in TRIGGER - how?

    You are probably going to have to cursor through this to do row-by-row processing as you have a lot of subqueries that are likely to return multiple rows. For...

  • RE: Development Tools

    I have been using DBArtisan for years with regard to data querying and manipulation. A lot of folks here use RapidSQL but only for Sybase as they think you...

  • RE: NULL vs. Empty String

    Definitely NULL. I would never even consider using a blank. In fact, it drives me nuts when a front end tool inserts a blank instead of a null...

  • RE: Incremental SUM

    If you are having problems with temp tables and Crystal Reports you could always create a stored procedure. Crystal should play nice with that.

  • RE: Export to a text file

    Yes, you are the Gary I was referring to. I apologize as I didn't follow the whole flow. I did learn something new though. I'll put OpenDataSource...

  • RE: Export to a text file

    Gary,

    Looks like you are opening a text file. I think Guarddata was looking for outputting to a file. Can OpenDataSource be used for outputting?

Viewing 15 posts - 1 through 15 (of 86 total)