Viewing 15 posts - 46 through 60 (of 253 total)
I think its just difference in syntax from 2000 to 2005.
February 14, 2007 at 1:20 pm
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...
February 14, 2007 at 1:13 pm
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...
February 12, 2007 at 4:47 pm
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.
February 5, 2007 at 3:40 pm
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?
February 5, 2007 at 3:25 pm
It does make a difference. Check out the query plan set stats IO on and you can see for yourself.
February 5, 2007 at 3:23 pm
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.
January 3, 2007 at 12:38 pm
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....
January 3, 2007 at 12:22 pm
Dont you have a PK on the tables?
January 3, 2007 at 12:18 pm
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'
December 20, 2006 at 11:05 am
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.
December 20, 2006 at 10:53 am
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'
...
December 15, 2006 at 1:08 pm
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...
December 11, 2006 at 3:04 pm
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...
November 22, 2006 at 1:40 pm
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.
November 22, 2006 at 12:59 pm
Viewing 15 posts - 46 through 60 (of 253 total)