Viewing 15 posts - 436 through 450 (of 459 total)
I added a couple more features as well, to extend to object level permissions as well and check for orphaned logins. It's based of the main table your script...
Gaby________________________________________________________________"In theory, theory and practice are the same. In practice, they are not." - Albert Einstein
November 11, 2008 at 12:35 pm
This script is a lifesaver. It keeps our Loss Prevention folks happy when they need to audit any servers.
Gaby________________________________________________________________"In theory, theory and practice are the same. In practice, they are not." - Albert Einstein
November 11, 2008 at 10:39 am
GilaMonster (11/11/2008)
Depends what kind of maintenance window you have nightly. Last big DB I worked on took 4 hours to backup fully. Nightly maintenance window was 2 hours. Hence we...
Gaby________________________________________________________________"In theory, theory and practice are the same. In practice, they are not." - Albert Einstein
November 11, 2008 at 10:19 am
We hardly use differential backups here anymore. Less headaches is to have a full backup daily and transaction log backups every 30-60 minutes.
For example, if you use diff backups,...
Gaby________________________________________________________________"In theory, theory and practice are the same. In practice, they are not." - Albert Einstein
November 11, 2008 at 6:55 am
Thanks...and as a point of reference, the original query of 14000 separate updates, with 'go' placed every 1000 updates, took about eleven hours. With any luck, this will take...
Gaby________________________________________________________________"In theory, theory and practice are the same. In practice, they are not." - Albert Einstein
November 10, 2008 at 8:58 am
Here's the pertinent code within the trigger:
UPDATE a
SET a.DateChanged = getdate(),
FROM dbo.tblCatalogData a -- tblCatalogData was my targetTable
...
Gaby________________________________________________________________"In theory, theory and practice are the same. In practice, they are not." - Albert Einstein
November 10, 2008 at 8:17 am
Archive tables with little or no frequent access afterwards are probably the only time I'd avoid an index. Should I have to retrieve data from it in some manner,...
Gaby________________________________________________________________"In theory, theory and practice are the same. In practice, they are not." - Albert Einstein
November 7, 2008 at 9:21 am
Here's a useful method. This assumes that your backup is copied remotely on a regular basis, which I STRONGLY recommend (we use Netbackup but you can use many different...
Gaby________________________________________________________________"In theory, theory and practice are the same. In practice, they are not." - Albert Einstein
November 7, 2008 at 9:09 am
Another option, and this involves being a bit more proactive, is if you have any archive type tables in your database, let them be located on a secondary filegroup on...
Gaby________________________________________________________________"In theory, theory and practice are the same. In practice, they are not." - Albert Einstein
November 7, 2008 at 8:56 am
Once in awhile, I enter online contests of the more legitimate type, but as I have no idea what even they would do with my email, I keep just one...
Gaby________________________________________________________________"In theory, theory and practice are the same. In practice, they are not." - Albert Einstein
November 7, 2008 at 7:24 am
How about get rid of NT AUTHORITY\SYSTEM on all production servers? That, along with picking the right form of authentication (mixed vs. SQL only) can help avoid aggravation in...
Gaby________________________________________________________________"In theory, theory and practice are the same. In practice, they are not." - Albert Einstein
October 24, 2008 at 7:08 am
Sorry about the late reply, was swamped at work. 🙂
One way to do it for each database is either the undocumented sp_msforeachdb feature or roll it into a loop. You...
Gaby________________________________________________________________"In theory, theory and practice are the same. In practice, they are not." - Albert Einstein
October 22, 2008 at 7:25 am
Even more importantly, I recommend for sanity purposes in the future, you come up with a formal process whether or not to use varchar/nvarchar in tables. This keeps things...
Gaby________________________________________________________________"In theory, theory and practice are the same. In practice, they are not." - Albert Einstein
September 23, 2008 at 8:37 am
If this is anything like my experience up here in Canada, it should be pretty straightforward.
We get a monthly CD from CanadaPost with a basic flat ASCII file that has...
Gaby________________________________________________________________"In theory, theory and practice are the same. In practice, they are not." - Albert Einstein
September 23, 2008 at 7:47 am
What do I want for my birthday? World peace...or failing that, developers in our company agreeing to stick with one collation.
Okay, seriously, a new laptop. If I'm going...
Gaby________________________________________________________________"In theory, theory and practice are the same. In practice, they are not." - Albert Einstein
September 12, 2008 at 6:36 am
Viewing 15 posts - 436 through 450 (of 459 total)