| Login

Search this Blog


Links I like to keep around


Here are the most recent postings to this blog. Use the archive calendar or search to find other entries.
Author:R TeachoutCreated:6/15/1999 6:20 AM
Just some stuff I find or create that may be useful later.

How to Find Orphaned Users on a database use database; exec sp_change_users_login 'Report'

Read More »

Ever need to immediately disconnect users on a database, such as when running a Database Restore? Here's a quick trick.

Read More »

Need to transfer your users from SQL2000 to SQL2005? Here's how

Read More »

Useful with a combination of some other scripts I have in blog entries. I found this online, so I can't take credit for this, but I swear I at least had started the same type of script before I googled..

Read More »

Useful when transferring all databases from one SQL server to another.

Read More »

Useful when transferring all databases from one SQL server to another.

Read More »

Have you ever faced the problem of assigning more than 8000 characters to varchar data type or more than 4000 characters to nvarchar data type?

Read More »

This is actually a simple method to do it, but it is extremely effective.

Read More »

So, no, you do not know the 'sa' password, but…you do know that the 'sa' password will only be needed for an upgrade or something, not for ongoing connectivity, so you proffer a solution, "I will change the 'sa' password for you for long enough to complete the upgrade, and then I will need to change it back again. This is because I do not know what processes may be trying to use 'sa'".

Read More »

Ever have a need to disable your triggers to do some maintenance or update work? Here's a way!

Read More »

MSSQL Scripts to do this.. (Set Identity Insert)

Read More »

Just run this query, which will build a list of commands you can put into a batch file, and execute!

Read More »

Just a SQL Script Hack to make it easier to do a restore. Or just a quick way to add the same username on MANY MANY (ALL) databases at once.

Read More »

SELECT dbid FROM master.dbo.sysdatabases WHERE name = 'database_name'

Read More »

Need to make a clone of a database structure, but have too many procedures/functions/tables to do it all manually? I believe this is a good answer to that problem:

Read More »

EXEC sp_MSforeachtable "exec sp_spaceused '?'"

Read More »

Use this SQL server script from the SQL query window to rename an existing database. The script below will place the database in single user mode then rename the device and put then new device name back into multi user mode for use.

Read More »

Run a query against sysprocesses to figure out what is going on on a SQL Server

Read More »

Exception from HRESULT: 0xC0010014 (Microsoft.SqlServer.DTSRuntimeWrap)

Read More »

Search error log for "Return value 3" and trace to find out what you're missing, then install that, then go with it.

Read More »

Here's a quick how-to (for those technically inclined) on: How to Get the Current Activity for a Single Database (SQL2000) when running as a DBO not as a sysadmin

Read More »

Great for queries where you need > date < date results..

Read More »

This procedure generates INSERT statements using existing data from the given tables and views. Later, you can use these INSERT statements to generate the data. It's very useful when you have to ship or package a database application. This procedure also comes in handy when you have to send sample data to your vendor or technical support provider for troubleshooting purposes.

Read More »

To Load from a Text File into MSSQL

Read More »

Closes the current error log file and cycles the error log extension numbers just like a server restart. The new error log contains version and copyright information and a line indicating that the new log has been created. MSSQL.1\MSSQL\LOG\ERRORLOG

Read More »


Old programmers never die. They just terminate and stay resident.
-Unknown

Inspired by Nina