Viewing 15 posts - 1 through 15 (of 254 total)
Check if using ROWLOCK hint helps...
******************
Dinakar Nethi
Life is short. Enjoy it.
******************
November 5, 2007 at 10:55 am
Modify your script to drop the table explicitly at the end otherwise your tempdb will choke if you have multiple users creating objects in tempdb and they are not dropped...
******************
Dinakar Nethi
Life is short. Enjoy it.
******************
November 5, 2007 at 10:53 am
You need to use dynamic SQL. Something like this:
declare @fileg varchar(60), @sql varchar(500)
set @fileg = substring(CONVERT(VARCHAR, DATEPART(YEAR, GETDATE())), 3, 4)
Set @sql = 'create table dbo.test (id int) ON ['...
******************
Dinakar Nethi
Life is short. Enjoy it.
******************
November 5, 2007 at 10:49 am
You better put it IN the JOIN or use WHERE. example:
from dbo.Orders o
join dbo.Account acct with (nolock) on h.AccountID = acct.AccountID
join sourceOrders aa with (nolock) on h.InvoiceNumber = aa.SourceInvoiceNumber
and...
******************
Dinakar Nethi
Life is short. Enjoy it.
******************
November 5, 2007 at 10:45 am
Isnt the loading process being done during off hours?
******************
Dinakar Nethi
Life is short. Enjoy it.
******************
November 5, 2007 at 10:39 am
I would recommend disabling the replication, do your upgrades, then re-setup replication. You need to configure the distributor first. Look up books online in 2005 for replication setup steps. They...
******************
Dinakar Nethi
Life is short. Enjoy it.
******************
November 2, 2007 at 11:48 am
check out the undocumented proc sp_MSForEachDB
******************
Dinakar Nethi
Life is short. Enjoy it.
******************
October 30, 2007 at 10:07 am
You can get the data in, and run an UPDATE with REPLACE to remove the double qutoes.
******************
Dinakar Nethi
Life is short. Enjoy it.
******************
October 30, 2007 at 10:04 am
Decimal(x,y) is a better option.
******************
Dinakar Nethi
Life is short. Enjoy it.
******************
October 29, 2007 at 3:19 pm
Also, note that you can use CROSS APPLY to get the text directly and use it in a JOIN stmt instead of looping through. If your query is executing quickly...
******************
Dinakar Nethi
Life is short. Enjoy it.
******************
October 29, 2007 at 3:17 pm
I think you have to drop the indexes and recreate them on the new filegroup.
******************
Dinakar Nethi
Life is short. Enjoy it.
******************
October 29, 2007 at 12:59 pm
Usually the dateformatting should be done at the client level. If you need to use the same format irrespective of the client you can specify the SET DATEFORMAT just before...
******************
Dinakar Nethi
Life is short. Enjoy it.
******************
October 29, 2007 at 11:46 am
Try sp_removedbreplication to drop any replication related stuff from the db.
******************
Dinakar Nethi
Life is short. Enjoy it.
******************
October 29, 2007 at 11:44 am
If the table is small, try dropping the article from the publication and add it back and see if you can replicate the error.
******************
Dinakar Nethi
Life is short. Enjoy it.
******************
October 29, 2007 at 11:42 am
In sql 2005 you dont need to use sp_Repladdcolumn. You can just do a regular ALTER TABLE and the table is modified at the subscriber too.
******************
Dinakar Nethi
Life is short. Enjoy it.
******************
September 28, 2007 at 5:11 pm
Viewing 15 posts - 1 through 15 (of 254 total)