Viewing 15 posts - 241 through 255 (of 1,186 total)
I believe that sysobjects is per database for that db's objects only. If there are objects in your DB that are not in your db's sysobject table then I don't...
June 30, 2005 at 9:51 am
I don't know about SQL-DMO but the query is SELECT * FROM sysfiles from inside the database you want...
June 30, 2005 at 9:46 am
1. Is this a STORED-PROCEDURE or an AD-HOC QUERY?
2. Is this using DYNAMIC SQL?
A possible reason for QA running MUCH faster is because QA is running off of the SERVER...
June 29, 2005 at 10:41 am
If you are trying to determine products that are IN Boston AND IN Chicago AND IN Denver you will need to create three DISTINCT sub-queries
FROM (SELECT Product FROM Product_Cities WHERE City...
June 29, 2005 at 5:35 am
Ron,
In answer to your Vampiric example:
How can you determine that IF his blood type IS NULL THEN NOT DELETING him is CORRECT?
Secondly, What is to stop someone from DELETE...
June 27, 2005 at 3:31 pm
Have you tried researching sp_change_users_login with AUTO_FIX?
June 27, 2005 at 8:49 am
Please see below example
sp_addextendedproperty 'caption', 'One digit identifier of system. See TimeSystem table for more information', 'user', dbo, 'table', 'Your Table Name Here', 'column', 'TimeSystemID'
GO
sp_addextendedproperty 'caption', 'up to 4 digit...
June 27, 2005 at 5:38 am
El,
Unless you have auditing enabled (created by you to track changes) then unfortunately, there is no audit trail.
Sorry
June 24, 2005 at 5:12 pm
my 2 cents worth.
IF you ALLOW NULL you have to determine: Is it really NULL or did someone TYPE NULL? I have been fighting NULL for a long...
June 24, 2005 at 5:06 pm
NULL is a bad idea. I would use a DEFAULT value of '1900-01-01'. This way you deal with either a date value or a date value and not
WHERE Field BETWEEN...
June 24, 2005 at 9:59 am
How bout
UPDATE S1 SET Price = S2.Price
FROM dbo.Stock S1
INNER JOIN (SELECT Product, MAX(Price) Price
FROM dbo.Supplier
GROUP BY Product) S2
ON S1.Product = S2.Product
June 24, 2005 at 6:32 am
#1. Do you know when it's schedule is?
#2. Do you have the source code to see what it does?
#3. Fire up Profiler to capture the traces....
June 24, 2005 at 5:35 am
This may help
IF EXISTS (SELECT 1
FROM dbo.Contracts
WHERE lastpd < nextperiod AND Claim = 1)
BEGIN
UPDATE contracts
Set printedpd = nextperiod,lastprinted = getdate (),nextperiod = nextperiod ...
June 24, 2005 at 5:34 am
ILANGO,
The problem is that Evan is > just E. If you want the E's as well have your query do < F. Kind of like dealing with date fields...
June 24, 2005 at 5:31 am
How bout something like:
CAST(CAST(REPLICATE('0', 6 - LEN(@Field)) + @Field AS VARCHAR(6)) AS VARCHAR(6))
June 24, 2005 at 5:29 am
Viewing 15 posts - 241 through 255 (of 1,186 total)