Database tutorials

SQL Server 2005: How to Reset a Forgotten Password for the sa Account

Contributed by shamanstears on December 22, 2008 under Database

If you’ve forgotten the sa password for your SQL server, you are probably in a panic. Fear not, for you can reset the password and once again have access to the powers of the sa account by using the query window in the Management Studio.

Comments
 

SQL Server 2005: Locating Stored Procedures that Contain a Keyword

Contributed by shamanstears on December 4, 2008 under Database

Making changes to a database that has been created by a third pary can be a difficult task, especially when you don’t want to break any of the existing stored procedures. You can search the database’s stored procedures for keywords to find which procedures use a keyword that is involved in your change. This makes it much easier in identifying these procedures so you can make the appropriate changes.

Comments
 

SQL Server 2005/2008: Disable Management Studio’s Splash Screen

Contributed by shamanstears on October 12, 2008 under Database

If you have grown tired of having to view the splash screen each and every time you open the SQL Server Management Studio, you can use a simple command line switch in your shortcut to bypass the annoyance.

Comments
 

Microsoft SQL Server: How to Find the Foreign Keys in a Database

Contributed by shamanstears on October 4, 2008 under Database

A foreign key is a column or columns that are used to enforce a link between data in two tables. While SQL Server gives you no quick and easy way to view all foreign keys in a database, this quick query will give you that information. It comes in handy when trying to troubleshoot Foreign Key Constraint errors.

Comments
 

SQL Server 2005: How to Disable a Trigger

Contributed by shamanstears on September 26, 2008 under Database

A trigger allows for the execution of SQL code anytime an UPDATE, INSERT, or DELETE command is performed on a certain table. If you are having to perform manual modifications to the table, you may not want the trigger to fire off. Here’s how to disable the trigger so that you can perform your administrative tasks:

Comments
 

SQL Server 2005: What Service Pack is Installed?

Contributed by shamanstears on January 7, 2008 under Database

If you’re running SQL Server, it’s very wise to make sure that you have the latest service pack installed for optimum performance. If you’re not sure what service pack you have installed (or if you’re still running RTM), follow these steps to find out:

Comments
 

Import CSV file directly into MySQL

Contributed by katy8439 on May 8, 2007 under MySQL

Instead of writing a script to pull in information from a CSV file, you can link MYSQL directly to it and upload the information using the following SQL syntax.

Comments
 

SQL 2000 - Find version and service pack info

Contributed by katy8439 on under Database

Run the following code in SQL Server 2000 Query Analyzer to return the Version and Service pack - useful if you’re having problems on a server and don’t know if you’re running the latest patches or not.

Comments