Viewing 15 posts - 46 through 60 (of 166 total)
You can save the DTS package as a Structured Storage File within the Save As Dialog box. This will allow you to send or store the file as well as...
February 28, 2006 at 7:52 am
Here is a great article that covers this:
http://www.sqlservercentral.com/columnists/sjones/20010422115756_1.asp
February 24, 2006 at 11:56 am
There is a stored procedure called sp_MSget_current_activity in the master database which returns all the current activity on the server. This would be a good place to start. You can...
February 24, 2006 at 6:23 am
I'v run into things similar to this in the past. What I do when I want to find exactly how to add something via a script is run profiler on...
February 24, 2006 at 6:17 am
In the past when I have had to work with this I have itilised the COALESCE feature. For example:
CREATE PROCEDURE sample
@p_some_num INTEGER = NULL
AS
SELECT field1, field2, field3, some_num
FROM table
WHERE sum_num...
February 22, 2006 at 12:30 pm
I'v done this same process for our DR plan and here are the steps I use:
1. Install SQL Server and all service packs on the new server, (If the file...
February 20, 2006 at 12:15 pm
You can run this command to shrink the actual log file back to the default:
DBCC SHRINKFILE (N'your log file name')
DBCC shrinkdatabase(N'you db name', TRUNCATEONLY )
February 20, 2006 at 9:18 am
Try replacing your = with LIKE. It's better to use the LIKE indicator when comparing string information. This should give you your expected results.
February 20, 2006 at 7:32 am
It's not the xp_cmdshell that I am getting the error returned on. It's when I try to add the proxy account using xp_sqlagent_proxy_account.
February 14, 2006 at 10:44 am
Do you have Integration Services installed? I ran into a similar problem that was corrected once I installed
integration services.
February 13, 2006 at 9:09 am
These is a Server Role called dbcreator which can create and alter databases. In addition, there are roles called db_datareader/db_datawriter within each database if you need to grant access to...
February 7, 2006 at 10:27 am
This would work:
SELECT MAX(SALARY)
FROM SALARY
WHERE SALARY < (SELECT MAX(SALARY) FROM SALARY)
February 7, 2006 at 7:39 am
First thought would be to use a CASE statement in your SELECT. Something Like this:
SELECT ORDER_ID,
CASE WHEN SUM(ORDER_PRICE)<10 THEN SUM(ORDER_PRICE)
WHEN SUM(ORDER_PRICE)>10 AND SUM(ORDER_PRICE)<20 THEN (SUM(ORDER_PRICE)-(ORDER_PRICE * .10))
WHEN SUM(ORDER_PRICE)>0 THEN (SUM(ORDER_PRICE)-(ORDER_PRICE...
February 7, 2006 at 7:30 am
I'v never scene this done. I know you can use a column number that corelates to the filed order defined in your SELECT statement in the ORDER BY clause but...
February 7, 2006 at 5:56 am
To Add a default constraint of 0 and then change the filed to NOT NULL I would use the following:
ALTER TABLE DATA ADD CONSTRAINT
DF_DATA_istested DEFAULT 0 FOR istested
GO
ALTER TABLE DATA
ALTER...
February 7, 2006 at 5:51 am
Viewing 15 posts - 46 through 60 (of 166 total)