Forum Replies Created

Viewing 15 posts - 316 through 330 (of 353 total)

  • RE: Slowing of query

    Thanks for those suggestions.

    One thing that has happened is that SQL 2K Standard has been replaced by SQL 2k Developer Edition on the laptop, and now the web based app running...

  • RE: Learning a database

    Hi,

    I take it your admin skills are fine so the actual administration of the database is fairly straightforward.

    That is a bit vague.

    It depends a lot on what the database is...

  • RE: i have a problem

    Hi,

    You could create a function within SQL and just use that in your select statement fro your asp page.

    The function could be something like

    CREATE FUNCTION dbo.funcProgramming(@CandidID int)

    RETURNS nvarchar(500)

    AS

    BEGIN

     declare

  • RE: Slow Deletion

    Thanks for all those suggestions guys.

    This site is a great resource.

    Graeme

  • RE: HELP Needed - Stored Proc accepting Input Variable!

    You could try the following

    ISNUMERIC returns an integer so...

      If isnumeric(@SPID) = 1

         Begin

     PRINT 'Select all'

            select SPID, KPID, cpu, physical_io, cmd, nt_username, memusage, WAITTIME, LASTWAITTYPE, hostname, program_name, login_time,open_tran, status...

  • RE: How to Create a Disaster Recovery Plan

    Hi,

    DR is a big subject and a plan can become complicated if you are not careful.

    There are many resources on the web on producing DR plans, but if you are...

  • RE: Slow Deletion

    Justin,

    Thanks for that!

    Yeah, that's what we are going to try.

    I think that will be the least time consuming.

    Thanks again..Graeme

  • RE: import (replace data) in Table

    Hi,

    Instead of renaming the table, why not create a second table to store the copied data.

    So you would copy the data first, truncate the original table and then let the...

  • RE: Shrink not happening... A mystery

    Yeah, I agree with Grasshopper,

    I usually run the following:

    DBCC SHRINKFILE(DBLOG)

    BACKUP LOG DB_LOG

    WITH TRUNCATE_ONLY

    THEN DBCC SHRINKFILE(DBLOG) and his does the job

    If you have replication running you may have to run sp_repldone...

  • RE: Suspect Database

    Having investigated this I have to agree with you.

  • RE: Suspect Database

    Nice one,

    I shall remember that.

    I stopped/started the service and the database came back on line.

    Fortunately this was only a test environment but it is certainly worth going through the options.

    Thanks again...

  • RE: Suspect Database

    Yeah, we tried that.

    Sysdatabases was not showing the database as suspect although Enterprise Manager IS showing the suspect tag.

    Trying the Stop/Start, detach/attach route now.

    Thanks for that.

    Graeme

  • RE: Query Problem

    I have discovered the problem.

    A rather discrete duplication in one of the minor tables.

    Many Thanks for your input

    Regards

    Graeme

  • RE: Query Problem

    That was my thought but....

    This query is being run directly in Query Analyser.

    If I select a set for a particular person, the results are correct, but if I run the...

  • RE: Query Problem

    Well,

    Like I said Person A has the following RoleIDs

    2

    10

    1316

    But having made the extra joins and using the appropriate criteria, the RoleIDs appear as

    2

    13

    I can't understand where the 13 is coming...

Viewing 15 posts - 316 through 330 (of 353 total)