Viewing 15 posts - 346 through 360 (of 492 total)
You really have given minimum infornation here. No join conditions, no where clauses or column names, no execution plans, no tables or table details. Sorry we can't help with some...
September 20, 2010 at 10:09 pm
I recommend you do a little reading in Books On Line, or Google this as there are a lot of examples on how to do this.
Cheers
Leo
September 15, 2010 at 8:33 pm
You don't need to worry about TempDB, it will grow as it needs to.
Carl's solution is also a good one if you have space on another disk, AND if this...
September 15, 2010 at 7:27 pm
If TempDB or any other logs are on the same drive I would shrink those before I did anything else. SQL is pretty smart and if there is space on...
September 15, 2010 at 6:15 pm
Have you checked what the inital size of the database file was when it was created? SQL doesn't shrink a database smaller than the initial create size. Sof the db...
September 13, 2010 at 5:51 pm
Run sp_help_revlogin stored proc on the original server. This will create a script to recreate all logins with their password hashs.
If you don't have it you canget it here:
http://support.microsoft.com/kb/918992
Yo need...
September 9, 2010 at 3:23 pm
onurcivi (8/31/2010)
(
DepositEntryId int,
DepositId uniqueidentifier,
ItemCount int
)
insert into @tempDeposits (DepositEntryId, DepositId, ItemCount)
select DepositEntryId, DepositId, ItemCount from Deposits
where --- insert business rules conditions here, not having any problems with this select...
September 1, 2010 at 3:25 pm
zombi (8/31/2010)
I am getting the following error when i run the above script.
Msg 451, Level 16, State 1, Line 1
Cannot resolve collation conflict for column 1 in SELECT statement.
Please advise....
September 1, 2010 at 3:08 pm
It's been a while since I ran this, but it's one I wrote some time back for SQL 2005.
select 'GRANT ' + permission_name + ' on ' + o.name...
August 31, 2010 at 12:28 am
sqlbuddy123 (8/30/2010)
If the box is dedicated for SQL Server then grant "Lock Pages in Memory" privilege to the SQL Server engine service account.
Lock Pages in Memory is a 64...
August 30, 2010 at 5:30 pm
This is another of those "every dba has his own thoughts" issues.
You didn't say why the N/W team want to go with VMs, and this is critical. If they...
August 30, 2010 at 5:03 pm
Three issues:
1) Never use SELECT COUNT(*)...
Besides being lazy coding, SQL assumes you actually want to count all the columns. Since you only actually need DepositEntryId rather use SELECT COUNT(DepositEntryId)...
August 30, 2010 at 4:19 pm
Sharon Kumar (8/27/2010)
where object_name(i.object_id)='mytable'
By puting the conversion from i.object_id to table name, you are forcing the query paser to bypass indexes on the table and do a cluster index scan...
August 29, 2010 at 5:10 pm
This doesn't sound like good practice. For the SQL Server Stored proc to be able to save the file onto the calling server's hard drive, it needs write permission on...
August 29, 2010 at 4:32 pm
SQL is creating a parallel query, and this is independent of the size of the table. Without seeing the query and schema details etc. it's impossible to analyze much more...
August 29, 2010 at 4:01 pm
Viewing 15 posts - 346 through 360 (of 492 total)