Forum Replies Created

Viewing 15 posts - 46 through 60 (of 253 total)

  • RE: (nolock) or with (nolock) that''''s the question!

    I think its just difference in syntax from 2000 to 2005.

  • RE: BCP problems - help?

    Is the file on your local C drive or on the C drive of the server?

    try doing an master..xp_cmdshell 'dir C:\test\' in query analyzer and check if you can...

  • RE: Query is taking too long to Delete records

    In your code you are already committing the transaction before checking for @@error?

    Also, your DELETE is locking up the table for the INSERTS. Hence the 'suspended' state.

    Also you might want...

  • RE: Profiler leads to blocking

    Never run Profiler on Production serers. You could end up rebooting your box. Check out PSSDiag utility from MS. Run SQLDiag, get the info and analyse it.

  • RE: 2000 to 2005 replication

    Am not sure if you can set up replication from 2000 to 2005. Perhaps TLog shipping can be of interest to you until your migration is complete?

  • RE: Does JOIN order effect efficiency?

    It does make a difference. Check out the query plan set stats IO on and you can see for yourself.

  • RE: Replace or Update partial field

    Update dbo.tablename

    SET email_address = Replace(email_address, '@emailaddress.net', '@newemailaddress.net')

    Syntax:

    REPLACE(string, , )

    Before you do an UPDATE, you can do a SELECT

    SELECT email_address , Replace(email_address, '@emailaddress.net', '@newemailaddress.net')

    FROM dbo.TableName

    to see which rows get updated.

  • RE: too many index scans!

    Have the profiler running and load all the traces into a table. Query the table for all procs taking longer or having more reads or taking too much of CPU....

  • RE: Changing an empty value to NULL???

    Dont you have a PK on the tables?

  • RE: Date of month end

    Sure:

    DECLARE @d DATETIME

    SET @d = '2006-10-24'

    SELECT DAY(DATEADD(d, -DAY(DATEADD(m,1,@d)),DATEADD(m,1,@d))) AS 'Last day of the month'

  • RE: Parallelism in a Union??

    If you do SET SHOWPLAN_ALL ON and run the query it tells you where or not the queries were executed in parallel. Generally, not.

  • RE: Data Sync in Transactional replication

    yes you can drop the article from the subscription and add it back. SQL will push the entire table to subscriber.

    exec sp_dropsubscription @publication = 'Pub_Name'

    ...

  • RE: Sudden replicationproblem...

    Generally Replication bombs out on schema changes. You can add/drop columns but if you need to alter a column, its best to drop the article from the publication, make the...

  • RE: performance difference between queries

    We have had the stored proc for years without issues. Suddenly it started going wild. I will check for the query plans. I did think about recompilations but have to...

  • RE: performance difference between queries

    I cleared the cache, recompiled the proc too. I didnt check the execution plan but I had the profiler on and it kept getting stuck at this DELETE.

Viewing 15 posts - 46 through 60 (of 253 total)