Site search:

[Solved] ActiveX component can’t create object: ‘SQLDMO.SQLServer’ on SQL Server 2008

MS SQL Server, Windows 3 Comments »

Problem

If you execute a vb script which use SQL-DMO on SQL Server 2008, you will notice that the script doesn’t work at all.

Read the rest of this entry »

Restore Database From SQL Server 2008 to SQL Server 2005, Part 3: Export Data Wizard

MS SQL Server, Windows 6 Comments »

Export Data Wizard

On Part 1: Introduction, I mentioned about error messages when you try to restore a database from SQL Server 2008 to SQL Server 2005. You can see the first solution at Part 2: Generate SQL Server Scripts Wizard. Now let’s see the second solution to solve the problems.

Read the rest of this entry »

Restore Database From SQL Server 2008 to SQL Server 2005, Part 2: Generate SQL Server Scripts Wizard

MS SQL Server, Windows 5 Comments »

Generate SQL Server Scripts Wizard

On Part 1: Introduction, I mentioned about error messages when you try to restore a database from SQL Server 2008 to SQL Server 2005. Now let’s see a first solution to solve the problems.

Read the rest of this entry »

Restore Database From SQL Server 2008 to SQL Server 2005, Part 1: Introduction

MS SQL Server, Windows 1 Comment »

Problem

When you restore or attach a database which is created from SQL Server 2008 to SQL Server 2005 or SQL Server 2000, you will see some error messages as the examples below.

Read the rest of this entry »

[Solved] System.Data.SqlClient.SqlError: The backup set holds a backup of a database other than the existing ‘dbName’ database

MS SQL Server, Windows 26 Comments »

Problem

You have backup a database on SQL Server 2005. Then, you try to restore the backup file on an existing database and receive the error message below:

Read the rest of this entry »

[Solved] System.Data.SqlClient.SqlError: The tail of the log for the database “dbName” has not been backed up

MS SQL Server, Windows 6 Comments »

Problem

You have backup a database on SQL Server 2005. Then, you try to restore the backup file on the existing database and receive the error message below:

Read the rest of this entry »

Enable Remote Connection on SQL Server 2008 Express

MS SQL Server, Security, Windows 107 Comments »

Introduction

Last time, I wrote an article show how to enable remote connection on SQL Server 2005 Express. Now SQL Server 2008 Express is released for a while, it doesn’t allow remote connection on default installation as on SQL Server 2005 Express. So you have to enable it manually.

Read the rest of this entry »

Optional parameters in Stored Procedure

MS SQL Server, Programming, Windows 4 Comments »

Introduction

When you create a store procedure on Microsoft SQL Server with some input parameters, sometimes you don’t want to assign all of parameters (optional parameters) so you need to specify default value for the parameters. Otherwise, it shows error when execute the store procedure.

Read the rest of this entry »

SQL Server 2005 Training, Day 1, Part II

MS SQL Server, Programming, Windows No Comments »

Introduction

This part contents mostly concerns coding on VB.NET which will interacts with SQL server on pubs database. The sample database can be download at SQL2000SampleDb. You do not need to complete Part I before.

Read the rest of this entry »

How to backup and restore database on Microsoft SQL Server 2005

MS SQL Server, Windows 53 Comments »

Introduction

This post shows a step-by-step guide to backup and restore a database between two Microsoft SQL Server 2005 instances. By using backup, you can backup a database without interrupt any transactions on the database.
In the example below, I will backup a database from SQL Server 2005 and restore the database to another SQL Server 2005 Express Edition.

Read the rest of this entry »

SQL Server 2005 Training, Day 1, Part I

MS SQL Server, Programming, Windows 1 Comment »

Introduction

I have been trained SQL Server 2005 several months ago but I haven’t time to summarize yet so I’m going to write as much as possible. The training course concerns about using MS SQL Server 2005 with MS Visual Studio Visual Basic.NET so some part may contains source code in VB.NET. Most of contents will express using example and figure if you need reference or more detail of functions, you can try search at MSDN, Microsoft.com. I hope that these may be useful for programmers to review.
The training consumes 5 days so I’ll categorize this by days and also separate each day into 2 parts because it’s quite long. Read the rest of this entry »

Enable remote connection to SQL Server 2005 Express

MS SQL Server, Security, Windows 77 Comments »

Introduction

By default, SQL Server 2005 doesn’t allow remote connection so you have to enable it manually. If you try to connect to remote SQL Server without enable remote connection first, you’ll see one of these error messages.

Read the rest of this entry »

Powered by WordPress | WP Theme & Icons by N.Design Studio

Entries RSS Comments RSS Log in