Viewing 15 posts - 6,466 through 6,480 (of 6,678 total)
Here is a select statement that will show how to get the information you are looking for. All you need to do is convert this into an UPDATE statement:
...
June 20, 2008 at 11:55 am
A single procedure will only use multiple processors when SQL Server believes a parallel plan will produce better results.
What did you set/change to tell SQL Server that multiple cores are...
June 20, 2008 at 11:26 am
I would recommend scheduling a time when you can grow your database files. You want to have at least 20% space available in the data file (not the combined...
June 20, 2008 at 11:22 am
Also make sure you are in fact running SQL Server Standard and not SQL Server Express (which would limit you to a single processor).
If your application uses a single connection...
June 20, 2008 at 11:07 am
Lookup Common Table Expressions in BOL. You probably will need to use a recursive CTE - but it should work.
Jeff
June 19, 2008 at 2:09 pm
Then maybe something like:
SELECT *
FROM Customer c
INNER JOIN (SELECT DISTINCT cust_number
...
June 19, 2008 at 2:05 pm
anjan.ashok (6/19/2008)
CREATE PROCEDURE sp_replace_value (
@strcvalue varchar(100),
@strdesc nvarchar(100)
)
as
update testtbl set value=@strconfigvalue,desc=@strconfigdesc where value=@strconfigvalue
here assume we have value column data...
June 19, 2008 at 1:55 pm
mrogers (6/19/2008)
I want to...
June 19, 2008 at 1:46 pm
hayess (6/19/2008)
WHERE (c.CustomerID = '3942') AND (ol.DetailTableID '6/17/2008') AND (o.Opendate < '6/19/2008') AND (ol.PLU LIKE 'ONL-ANN%') OR...
June 19, 2008 at 1:43 pm
Not automatically, but easy enough using SQL:
ALTER DATABASE db1 SET COMPATIBILITY_LEVEL = 90;
June 19, 2008 at 12:43 pm
Yep - that would do it. Dang, didn't even see it myself - probably should put my glasses on :hehe:
June 19, 2008 at 12:40 pm
You can use either of these techniques:
-- find all missing rows in table2
SELECT ...
FROM table1 t1
LEFT JOIN table2 t2 ON t2.pk = t1.pk
WHERE t2.pk...
June 19, 2008 at 12:31 pm
I don't see anything obviously wrong with the syntax, but could this be caused by one (or more) of the sub-queries is returning a NULL?
Try wrapping each sub-query with COALESCE...
June 19, 2008 at 12:28 pm
John Rowan (6/19/2008)
June 19, 2008 at 11:46 am
Have you ever run a full backup on that database? Was this database created on the DEV system or restored from live?
If this is a brand new database created...
June 19, 2008 at 9:06 am
Viewing 15 posts - 6,466 through 6,480 (of 6,678 total)