Viewing 15 posts - 6,826 through 6,840 (of 7,187 total)
Vladimir
If SQL Server is locking the whole table, it is because it judges that it is more efficient to do so than to issue multiple row or page locks, for...
August 30, 2006 at 9:27 am
Darren
You need to use dynamic SQL for the last bit. Something like this (not tested):
DECLARE @sql
SET @sql = 'SELECT * FROM table WHERE country IN (' + ISNULL(@new_country, @country) + ')'
EXEC @sql
Better still, look up the syntax of sp_executesql.
You...
August 30, 2006 at 3:53 am
Bart
Generally speaking, we reindex every week and update statistics once a day. Reindexing automatically updates statistics, so there is little value in updating once a month the day after the...
August 30, 2006 at 3:00 am
Ravi
I don't know, but you may find the answer if you examine the code of the stored procedure sp_configure.
John
August 29, 2006 at 8:32 am
Assuming you want to replace every '&' with a '+':
UPDATE MyTable SET
col1 = REPLACE(col1, '&', '+'),
col2 = REPLACE(col2, '&', '+'),
col3 = REPLACE(col3, '&', '+'),
col4 = REPLACE(col4, '&', '+')
John
August 29, 2006 at 6:40 am
Mick
You don't say whether it's the same character that needs changing in all places, or if so whether all occurrences of that character should be changed. However, a good place...
August 29, 2006 at 6:24 am
Chandu
It looks as if you're trying to overwrite a database on the destination server that has a different name from the database that was backed up. Is that right? I'm...
August 29, 2006 at 6:15 am
You will find the default value in the documentation. If it's the same as for SQL Server 2000, it's 0.
John
August 29, 2006 at 6:05 am
I would be surprised if this is anything to do with the fact you a restoring from a clustered environment to a "normal" server. But please will you provide more...
August 29, 2006 at 3:15 am
You should be able to use sp_configure:
sp_configure 'affinity mask'
I think you will need to insert the result set into a temporary table or table variable and select...
August 29, 2006 at 3:09 am
Mmmm.... I didn't find anything on that page about execution times. But I like rstone's idea of SET STATISTICS TIME ON.
John
August 25, 2006 at 4:40 am
Joe
If I understand correctly, then each of the attributes will correspond to a column that the user can create dynamically. If you have a finite list of these, why not...
August 24, 2006 at 9:08 am
Chris
Just to add to what Sameer said (apologies if I'm just repeating what's in the links he gave):
Don't shrink your database or log files if they're only going to grow...
August 24, 2006 at 9:03 am
For the most part, SQL Server doesn't really care that it's running on a cluster. I've never tried to rebuild master on a cluster, but I don't imagine the procedure...
August 24, 2006 at 8:34 am
Claudia
Sorry, I don't know anything about dBase 5. You'll probably have to write something in VB or ActiveX for your DTS package that generates the file name according to the...
August 22, 2006 at 9:38 am
Viewing 15 posts - 6,826 through 6,840 (of 7,187 total)