Viewing 15 posts - 23,746 through 23,760 (of 26,486 total)
I find separating the join criteria from the filter criteria makes working with multiple table queries easier. Also, I would rewrite your current query using a CTE to replace...
November 14, 2008 at 1:06 pm
Mani (11/14/2008)
Iam using the below procedure to Backup system Databases. It is taking the backups of master,model msdb in all instances except one instance it is not taking msdb backup?...
November 14, 2008 at 12:52 pm
I'd say by looking at what types of queries are being run against the database. You can als look at the missing index data management views and see what...
November 14, 2008 at 12:48 pm
kent.kester (11/14/2008)
Currently:
*Full Backups Daily at 6AM: ...
November 14, 2008 at 10:36 am
This code handles the values provided by Seth.
DECLARE @test-2 TABLE
(ID INT, TXT VARCHAR (MAX))
INSERT INTO @test-2
SELECT 1,'A'
UNION ALL
SELECT 2,'A'
UNION ALL
SELECT 2,'B'
UNION ALL
SELECT 3,'A'
UNION ALL
SELECT 3,'B'
UNION ALL
SELECT 3,'C'
UNION ALL
SELECT 4,'This...
November 14, 2008 at 10:25 am
I wouldn't use a case statement either. Here is what i would do (and some of this you should have done, ie the create table and insert statements)
create table...
November 14, 2008 at 8:59 am
That may be a good primary key, but remember that doesn't mean it should necessarily be the clustered index.
November 14, 2008 at 8:04 am
timscronin (11/13/2008)
November 14, 2008 at 7:59 am
homebrew01 (11/14/2008)
November 14, 2008 at 7:55 am
Just one thing to think about. The Primary Key isn't always the one that should be the Clustered Index. As you look at the processing that occurs, you...
November 14, 2008 at 7:53 am
Problem: You won't give us what we ask for so we can't provide you with the answer you are looking for.
You only give us half answers to our questions, what...
November 13, 2008 at 10:07 pm
May just be me, but I'd keep the filter in the stored procedure, unless the users also have access directly to view and not just using the stored procedure.
November 13, 2008 at 4:04 pm
Even disabled jobs can be run. You can do so manually by right clicking on the job and selecting start job, or using msdb.dbo.sp_start_job stored procedure.
November 13, 2008 at 3:26 pm
paul.starr (11/13/2008)
[CustomerID] [dbo].[C_ID] (nvarchar(30))NOT NULL,
[AddressTypeID] [dbo].[C_ID] (nvarchar(30))NOT NULL,
[CustomerAddressID] [dbo].[C_ID] (nvarchar(30))NOT NULL
insert into dbo.CustomerAddresses
(CustomerID, AddressTypeID, CustomerAddressID)
values('48313', '1', '48313-1')
('48313', '4', '48313-4')
...
November 13, 2008 at 2:58 pm
Viewing 15 posts - 23,746 through 23,760 (of 26,486 total)