Forum Replies Created

Viewing 15 posts - 61 through 75 (of 137 total)

  • RE: procedure to return set of records

    Can you give me the exact example? The row number is arbitrary depending on how you sort so this seems like an odd thing to do. I have...


    Darren

  • RE: procedure to return set of records

    Is the 100 to 150 a field that you can reference in your table or are you talking simply row numbers? If you have a field just create a...


    Darren

  • RE: Renaming columns, stored procs, triggers

    To find objects with name > 30:

    select *

    from sysobjects where len(name) > 30

    and name not like 'sp_%' --eliminates system procs as long as u dont use sp_

    to find columns >...


    Darren

  • RE: Read a .ini file

    Take a look at BOL on the topic "OPENROWSET". I think this is what you are referring to. Ad hoc queries on different servers.

    Darren


    Darren

  • RE: data security

    Do you have the user name field on each table that you need to filter? If so, you could use a stored procedure that passes in that username when...


    Darren

  • RE: UDF in SubQuery causing odd error

    I'm not sure about the nesting you are using? You simply select and then subselect with no qualification? What is this query supposed to do or is it...


    Darren

  • RE: How can I pull this max ID row?

    Also, right after you insert into that table the last IDENTITY created is stored in @@IDENTITY variable. You could use that as a return value from your insert proc.

    Darren


    Darren

  • RE: Error Reporting from Query Anaylser

    Also, is the update changing a field in the primary key? That could cause the dup insert.

    Darren


    Darren

  • RE: Error Reporting from Query Anaylser

    I would do an IF EXISTS on the primary key before you do the insert.

    Darren


    Darren

  • RE: SQL7 CPU 99% - help?

    Try setting a trace event (sp_trace_setevent)

    using the column_id = 18 which shows the CPU time. Would that help?

    Darren


    Darren

  • RE: Rollbacks for no apparent reason

    Could you paste the chunk of vb code that is rolling back, I need to see in order to understand this scenario.

    Darren


    Darren

  • RE: SQL7 CPU 99% - help?

    Did you try sp_who2 to see what is running?

    Darren


    Darren

  • RE: SP Columns

    Try something like this.

    select b.* from syscomments a, syscolumns b where

    a.id = object_id('YourStoredProcName) and a.id = b.id

    Darren


    Darren

  • RE: SQL Server licenses

    The front end will have to change in that you will have to specify a new connection string to the SQL Server. That is if you are using ADO....


    Darren

  • RE: how to find if index key is DESC from sys tables?

    Do a sp_helpindex on your table. The "index_keys" column will have a (-) next to the column that is descending, otherwise it will show nothing if ascending.

    Darren


    Darren

Viewing 15 posts - 61 through 75 (of 137 total)