Viewing 15 posts - 481 through 495 (of 1,156 total)
Do I have to create a new database first in 2000 like I do in 2005?
There is no need to create a database before a restore. Restore the database...
March 2, 2008 at 10:41 am
The task is to merge Service and Corp.
What exactly do you mean by merge? Does it mean that you want to consolidate the data from two databaeses to one?...
March 2, 2008 at 10:37 am
One of the main things to note about SQL server 2005 is that it uses the tempdb to handle more operations. What you should be looking for is what...
March 2, 2008 at 10:29 am
A: Check Database Integrity
B: Reorganize Index
C: Rebuild Index
D: Update Statistics
There is no need to reorganize and rebuild indexes. Rebuilding indexes removes all fragmentation and also updates the statistics. ...
March 2, 2008 at 10:11 am
You can use triggers to collect data about altered DDL, as ALZDBA suggested.
My question to you is do you have all of your scripts in some sort of...
March 2, 2008 at 8:32 am
Use Case statement
Is this coincidental or a user with the same name answering the post?
Anyway to elaborate on the solution:
You could simple use a SUM or COUNT case statement...
March 2, 2008 at 8:21 am
One per database unless you have space issues.
Agreed. There is no real advantage to adding additional log files. Adding more log files is usually a means to spread...
March 1, 2008 at 10:12 pm
All of your requriements can be met by creating an SSIS package. SSIS is a very robust solution. It gives you the option to create delmited text...
March 1, 2008 at 10:05 pm
Are you sure you even need a cursor to accomplish your task? Post your Table DDL, some sample data, and a description of what you want to accomplish. We...
March 1, 2008 at 8:39 am
I believe I’ve seen code with “SELECT 1”. What does the 1 stand for?
Willy this is primarily used because it gives a slight performance boost. If exists evaluates if a...
March 1, 2008 at 8:29 am
The row_number function was introduced in SQL 2005. As John said, the best/easiet way to accomplish this is using temp tables.
February 29, 2008 at 8:52 am
SELECT
ROW_NUMBER() OVER(ORDER BY VatCode) AS [ROW],
VatCode
FROM Partner
GROUP BY VatCode
February 29, 2008 at 6:59 am
Your first Exists should start
IF EXISTS(SELECT * from ...
You cannot assign a variable within an EXISTS.
This is absolutely true. An if exists checks to make sure the statement...
February 29, 2008 at 6:54 am
But as Matt said, this only works if you are returning a table.
February 28, 2008 at 3:46 pm
Viewing 15 posts - 481 through 495 (of 1,156 total)