Forum Replies Created

Viewing 15 posts - 226 through 240 (of 489 total)

  • RE: KILLED/ROLLBACK done, but won't finish

    Once you kill a process it will not go away until it has rolled back any uncommitted transctions. During this time when you view the process you will see...

  • RE: Looking for Optimization Suggestions

    If the slow part is when you move the data (item 2) you can try using a data pump in a DTS package. That could make moving the data...

  • RE: Splitting a column into Fname Lname

    Try this:

    SELECT LEFT(fullname,CHARINDEX(' ', fullname, 1) - 1) AS fname,

    SUBSTRING(fullname,CHARINDEX(' ', fullname, 1) + 1, LEN(fullname)) AS Lname

    FROM tablename

    Robert W. Marda

    SQL Programmer

    bigdough.com

    The world’s leading capital markets contact database and...

  • RE: Setting Priority of execution

    I don't think you can set priority levels for stored procedures.

    Robert W. Marda

    SQL Programmer

    bigdough.com

    The world’s leading capital markets contact database and software platform.

  • RE: Fixing bad data....

    If the ahoo.com is always at the beginning and always the same length then something like this should work:

    UPDATE tablename SET email = RIGHT(email,len(email) - 8)

    WHERE LEFT(email,8) = 'ahoo.com'

    Robert W....

  • RE: comparing char date vals

    I think this will work fine as long as you always have 8 digits. Such that the date 1/1/2002 shows as 01012002 and not 112002 and the time for...

  • RE: Replication vs DTS

    Replication is usually set to update changes more frequently than DTS and will comence every time a change is made if that is how you set it up.

    However, I believe...

  • RE: delete login and get error

    That is the setting that must be changed in order to delete the login from sysxlogins.

    Here is the T-SQL command that will set that setting to allow you to delete...

  • RE: delete login and get error

    If the login is appearing it has to be somewhere. You can try looking in sysxlogins in the master database. If you don't find it there then you...

  • RE: Is T-SQL enough to be a valuable Yukon DBA?

    Where I work we have 3 major programming departments. One is SQL, another is Cold Fusion for our web site, and the last is VB for our researchers. ...

  • RE: SQL 7 Maintenance Plans

    We used maintenance plans on servers that used SQL Server 7.0 with SP 1 and later with SP 2 before upgrading to SQL Server 2000.

    The only problem I remember having...

  • RE: order by CASE

    You can do it like this:

    order by

    case when x = 1 then col1

    when y = 1 then col1

    end,

    case when x = 1 then cols

    end

    Robert W. Marda

    SQL Programmer

    bigdough.com

    The world’s leading...

  • RE: Stored Procedure to create a table

    Glad to have been of service.

    Robert W. Marda

    SQL Programmer

    bigdough.com

  • RE: Stored Procedure to create a table

    This might work for you after you modify it a bit more:

    DECLARE @numcols tinyint,

    @count tinyint,

    @cmd varchar(200),

    @tblname varchar(50)

    SET @tblname = 'test'

    SET @cmd = 'CREATE TABLE ' + @tblname + '(colid int...

  • RE: Stored Procedure to create a table

    If the intent of this section is to run something like this:

    INSERT INTO tablename

    EXEC SERVERNAME.DATABASENAME.dbo.spGetEvents @param1

    It is failing because it is actually executing this:

    EXEC SERVERNAME.DATABASENAME.dbo.spGetEvents @param1

    INSERT INTO tablename

    You would...

Viewing 15 posts - 226 through 240 (of 489 total)