Viewing 15 posts - 541 through 555 (of 1,315 total)
DBREINDEX is useful for regular maintenance, but as you're finding out it can be a very long process for a large table that is heavily fragmented.
The equivalent to the Oracle...
March 20, 2007 at 7:25 am
Using LIKE is forcing it to convert all the datetime fields to strings, but not necessarily in the same format as your @year_month parameter, so none of the records match...
March 16, 2007 at 11:57 am
Maybe you've got char(10)+char(13) instead, or some other goofy combination. You could take a look at the characters before and after the linefeed with something like this:
SELECT
pub_id
March 14, 2007 at 2:36 pm
I would be tempted to use DTS, or maybe script a series of BCP OUT and TRUNCATE TABLE/BCP IN commands. I even thought of snapshot replication, where you could create...
March 14, 2007 at 12:13 pm
Here is what I found in Books Online that said you could do a partial restore to a different location. It doesn't say you'll get a complete working database, it...
March 14, 2007 at 10:47 am
If you put the queries I posted above, especially the second one, into an Excel spreadsheet and turn it into a pivot table, it looks very impressive. Just the thing...
March 14, 2007 at 10:33 am
That sounds exactly like what I said would happen.
Partial restore into an existing database makes the unrestored parts of the database unusable. You would only do this in extreme...
March 13, 2007 at 7:31 pm
The REPLACE function will work if you use SUBSTRING to get the text data, or if you cast to varchar(max) as Aaron suggested.
SELECT
REPLACE
March 13, 2007 at 2:42 pm
You can do a partial restore to another server which includes the PRIMARY filegroup and the filegroup(s) you specify, but if you do it over the existing database it will...
March 13, 2007 at 1:31 pm
The Transfer Objects task will copy your procedures, but sometimes I want to script them so I can check the script in case of errors. You can use the All...
March 13, 2007 at 1:10 pm
You can get the size of backups from msdb.dbo.backupset. If you use split backups you have more than one file per backup, so you don't want the individual file sizes. I...
March 13, 2007 at 12:55 pm
Windows 2003 introduced some security constraints that screw up linked servers. It won't trust a Windows login that it can't verify with Kerberos, and it can't do that with Windows...
March 13, 2007 at 12:40 pm
This script generates ALTER TABLE commands for all columns with user-defined types. I hope you don't have any evil side-effects from a wholesale type change, but I can't think of...
March 13, 2007 at 12:14 pm
Using GO splits the input into separate batches, just like in Query Analyzer. An error in the first batch should not prevent the second batch from executing.
Just because you can...
March 12, 2007 at 7:43 am
The alternatives to having separate paths for 32-bit and 64-bit code are not very attractive. One is to have a 64-bit architecture like Itanium that doesn't run 32-bit code at...
March 12, 2007 at 7:36 am
Viewing 15 posts - 541 through 555 (of 1,315 total)