Viewing 15 posts - 886 through 900 (of 919 total)
Writing good SQL requires a totally different mindset than writing good procedural code. Set oriented thinking isn't a natural mode for COBOL programmers. Many moons ago, I made that shift...
June 10, 2005 at 4:12 pm
Check the permissions for the account under which SQL Server runs. It's that account which will need permissions to create the database files. You should also check the sql agent...
June 10, 2005 at 11:47 am
In EM, could you check to make sure the server is set for mixed mode authentication?
June 6, 2005 at 5:55 pm
You could hack the sytem tables but I'd advise against it. The following will generate the stored proc calls to change everything not owner by DBO to DBO, no strenuous...
June 6, 2005 at 5:45 pm
I don't think you can do it during a restore operation but you can use dbcc shrinkfile after the restore to reduce the log size.
June 6, 2005 at 5:23 pm
The sound of this makes me a little uneasy. If your developers are doing troubleshooting on the replicate, might they not want to change physical structures and alter objects and...
June 3, 2005 at 5:37 pm
I can't see any advantage this form of access would have over a cursor. Cursors are slower than set operations, but I'd bet this is one case where the cursor...
June 3, 2005 at 5:26 pm
create table #mileage (mileage int NOT NULL)
go
insert #milage (mileage) values (3000)
insert #milage (mileage) values (6000)
insert #milage (mileage) values (9000)
insert #milage (mileage) values (12000)
.
.
.
INSERT INTO ##tblTmpMaintSched
SELECT b.Mileage, a.Task from tblMaintSched a,...
June 2, 2005 at 5:44 pm
Ok, so much for guessing....
Could you post the query execution plan? That should point out the rough spot or spots.
June 2, 2005 at 5:02 pm
Is there an index on tbl_value?
If there's no index, and it's doing a table scan, the cache is probably being re-used for pages that don't fit the criteria, so it...
June 2, 2005 at 4:46 pm
Hi.
Just a guess at an answer based on the subject.
From Books Online:
DBCC INPUTBUFFER permissions default to members of the sysadmin fixed server role only, who can see any SPID....
May 26, 2005 at 6:08 pm
I think your problem may be that the database you detatched from the old server has the old collation carried along with it when you attach it. In older releases,...
May 26, 2005 at 5:43 pm
If you don't need all the rows from the lookup tables returned, whether you find a match or not, you shouldn't be using OUTER joins.
Here's a clip from Books...
May 26, 2005 at 1:06 pm
Yes, you need the joins to do the lookups, but do they have to be OUTER joins? Outer joins may return more data than you need and hamper the optimizer's...
May 26, 2005 at 12:35 pm
Do you really need all those outer joins? You're doing a lot more than just looking up matching values with this.
May 26, 2005 at 11:49 am
Viewing 15 posts - 886 through 900 (of 919 total)