Viewing 15 posts - 16 through 30 (of 57 total)
if your table is a HEAP, the space would not be released automatically.
to release the space, I guess you can create a clustered index, which will re-organise all the...
February 3, 2011 at 3:30 pm
Hi,
We were earlier using LogShipping and then moved to mirroring and snapshots. We were running LogShipping on an hourly basis during the day, and disabling it during the night, so...
October 20, 2010 at 7:13 pm
What happens when you query the table with where Ltrim(Rtrim(lastname)) = 'Smith' and Ltrim(Rtrim(Firstname)) = 'Robert'?
October 5, 2010 at 9:02 pm
pankushmehta (8/31/2010)
If your database is in simple recovery mode, you can just...
August 31, 2010 at 6:33 pm
You can query sys.dm_tran_locks or sp_lock, which can show you if there are any locks being held.
Also check if there are any open trans which have not yet been comitted...
August 31, 2010 at 5:48 pm
SQL users are mapped via SIDs which are varbinary. to have the same sid in 2 different servers for same login name is unlikely. Therefore, when you move the databases,...
August 31, 2010 at 5:40 pm
This can cause you grief, as simply copying data will not copy defaults, constraints, keys etc that are defined on the tables.
As GilaMonster rightly pointed, the easiest way is to...
August 31, 2010 at 5:22 pm
If your database is in full recovery mode, you can backup the Transaction log and then shrink the file.
If your database is in simple recovery mode, you can just shrink...
August 31, 2010 at 5:13 pm
JC-3113 (8/31/2010)
had an extra comma after program_name:
select
a.dbid,
CAST (b.name as varchar(90)) as database_name,
CAST (a.loginame as varchar(36)) as loginame,
CAST (a.hostname as varchar(18)) as hostname,
cpu,
a.login_time,
CAST (a.status as varchar(18)) as status,
CAST (a.program_name as varchar(50))...
August 31, 2010 at 5:08 pm
You can use IF Exists to check if the job has ever run before. if the job has never run, there would be no entry in the sysjobhistory table....
August 29, 2010 at 10:18 pm
Can you please provide a bit more of details. I am not sure if I understand it correctly.
August 29, 2010 at 8:58 pm
Tara-1044200 (8/27/2010)
can we create a group in sql server like windows?
You can create a windows group (or AD group) and grant it read permission to all the databases. All you...
August 29, 2010 at 8:49 pm
You should start with sys.dm_db_missing_index_details. This can possibly provide you with some information to begin with.
You can also use SQL Profiler to capture the queries and from there find out...
August 26, 2010 at 6:15 pm
If you export the data, you do not really export the metadata. you need you take note of the constraints, indexes, defaults etc.
August 26, 2010 at 6:08 pm
If you can afford it have both!
Clustering for high availability and mirroring for reporting 🙂
August 26, 2010 at 6:03 pm
Viewing 15 posts - 16 through 30 (of 57 total)