Viewing 15 posts - 601 through 615 (of 1,315 total)
There's a free course on your computer (assuming it was installed with your client tools), called SQL Server Books Online.
February 7, 2007 at 7:25 am
Pages are allocated in a round-robin fashion among all the files in a filegroup. If the table is more than a few extents, it probably has pieces in every file.
If...
February 7, 2007 at 7:17 am
The command is DBCC UPDATEUSAGE, and there's actually a second parameter for sp_spaceused to run it for you.
EXEC sp_spaceused @objname = '', @updateusage = 'TRUE'
February 7, 2007 at 7:04 am
The only problem with your DELETE query is the column list in the subquery. It would work like this:
delete from table where (rowid)
not in
(select min(rowid) from table group by...
February 5, 2007 at 9:50 pm
ExecuteScalar returns the value of a one row, one field result set. Mohammed's procedure doesn't return any result set, it sets the return value.
You have to create a return value parameter...
February 5, 2007 at 9:43 pm
I created a VBScript file to set up standard server definitions in Enterprise Manager. We have two production servers that we access over a VPN that require alias definitions and...
February 5, 2007 at 10:31 am
I don't know that changing the fill factor will help, I'm also concerned about the full tables scans where you expect index seeks. But I wondered if you rebuilt the indexes after changing the...
February 5, 2007 at 9:46 am
SQL 2005 x64 will definately perform better with more memory. If your databases add up to 9GB and you put them on a system with 16GB RAM, it can hold...
February 5, 2007 at 9:29 am
You could migrate your butt to a job where they let you buy a new server once in a while
February 5, 2007 at 8:56 am
SELECT
s.st_id, s.st_name
FROM Student s
INNER JOIN
February 5, 2007 at 8:48 am
Creating nonclustered primary keys is the only way to put the primary key in a separate filegroup from the table, but that doesn't mean it is a good idea. I...
January 31, 2007 at 12:09 pm
I do something similar to add a standard set of columns to selected tables, but in our case some of the columns may already exist. This query will only add the...
January 31, 2007 at 11:44 am
Variable values are loaded with the original package, then configuration files are processed in the order you specified, then variable values and/or more config files can be specified on the command...
January 30, 2007 at 11:39 am
You want SQL 2005 x64 on a 64-bit server, with as much RAM as you can possibly get. Right now you can only get quad-core processors from Intel and that...
January 30, 2007 at 10:50 am
If you don't want the entire string returned by CONVERT, use a CHAR datatype to limit what you keep.
Try CONVERT(CHAR(5
January 30, 2007 at 10:07 am
Viewing 15 posts - 601 through 615 (of 1,315 total)