If you have ever tried to run or create a SSIS extract package that exports to Excel, you may run into the error below:
Have you ever deleted a row of data and then needed to put it back due to being told it was the wrong row, but the table had and identity column and will not let you insert the row back? Using the Set Identity_Insert command, you can insert into the table.
Here is an easy way to get (extract) all of the characters before a special character in a string. In our example we have a listing of email addresses and we want to get the name before the @domain.
Here is a useful technique to know. We have a delivery service and we want to know what hour of the day is most popular for completed deliveries. Using the DATEPART function, this can be easily calculated.
Here is a way to find out information about your SQL Server instance using TSQL. You can query all kinds of properties, for example, what edition are you running, what server is it on, etc.
You can also restore your SQL Server database using T-SQL instead of SSMS. Today I will show you how to do an easy recovery with restoring just a full backup and another scenario of restoring a full backup and any available transaction logs.
In last weeks posting, we created our first SSIS package which queried a database and saved the information to a file so we could send the information to a user. This week we are going to modify that same package to save the file with the date and time included in the filename.