Viewing 15 posts - 931 through 945 (of 1,315 total)
This should be close to what you need. Just make sure you use the format file generated for the export so the column widths are correct.
declare
@maxcol...
December 20, 2005 at 9:07 am
I use this code to add a standard set of output columns (if they don't already exist) to tables for use by our address cleaning software. This code requires the...
December 20, 2005 at 8:05 am
Presumably you're getting the index info from sysindexes? Join to sysobjects to get the owner. It might look something like this:
select
December 19, 2005 at 3:38 pm
I have learned to detest code that builds dynamic SQL by repeated concatenation, especially with char functions for line breaks and tabs. A complex statement is difficult to read when...
December 19, 2005 at 10:00 am
The situations I've seen where one database can screw up a maintenance plan and affect other databases I think are covered by automatically removing databases from plans where they don't...
December 15, 2005 at 8:43 am
You can use this:
ORDER
BY CASE Letter
WHEN 'B' THEN 1
...
December 15, 2005 at 8:06 am
You need to break the insert into chunks. Is there something in the view that could be used like a key (doesn't have to be unique), preferably a field that...
December 15, 2005 at 7:54 am
I think maintaining a separate plan for each database is overkill. That would be way too much trouble to maintain IMHO. I can't imagine having to juggle the scheduled time...
December 15, 2005 at 7:32 am
I have also seen inexplicable errors importing text files in DTS, and no amount of analyzing the file could find any strange characters or invalid EOL sequences. Of course, the...
December 14, 2005 at 9:32 am
Is it a permission issue? Does the login used by the Oracle connection have select permissions on the view?
Are the tables and views owned by the same user?
December 13, 2005 at 7:39 am
Read the first post again. He said "Wait a year before CONSIDERING" using it in production. Not deploying for a year may be the right answer in many cases, but only for...
December 12, 2005 at 7:14 am
Sheesh. Where was the damn Internet when I was doing homework 30 years ago?
December 11, 2005 at 8:55 pm
SQL Server is going to do disk I/O in 64K chunks. Forget anything else you've read about NTFS, use 64K clusters. And try to keep everything except SQL files off the...
December 11, 2005 at 8:23 pm
I'm a DBA in a small organization that also has a system admin. He's responsible for server hardware, operating systems, networks, and tape backups. The job responsibilities are pretty clear, but...
December 11, 2005 at 5:55 pm
Viewing 15 posts - 931 through 945 (of 1,315 total)