Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options answers only not deleted user 34

SQL Server 2008 (major build version 10.00.xxxx). Please also tag with sql-server.

3 votes

In what situation can snapshot restore be blocked after SET SINGLE_USER?

When you set the database to single user, it allows a single user into the database. If there's someone else trying to get into the database, and you don't have a connection to the database someone e …
Paul White's user avatar
  • 90.2k
10 votes

Attempt to fetch logical page (5:65424) in database 2 failed

The error indicates your database is corrupt. The good news is that database ID 2 indicates this is the tempdb database, so fixing this is easy - just restart the database instance. Once you resta …
Hannah Vernon's user avatar
  • 70.5k
2 votes

Restoring SQL Server 2000 database to SQL Server 2008

No. In fact you can't restore the system databases from a SQL Server 2000 system to a SQL Server 2008 instance. If you did parts of (or the entire) database engine won't work as the SQL Server 2000 sy …
marc_s's user avatar
  • 9,012
0 votes

What permissions does db_owner not have? (In SQL Server 2008)

Any members of the db_owner fixed server role can do anything they want within that database (include drop the database). They can't do anything outside the database without additional rights.
mrdenny's user avatar
  • 27k
9 votes
Accepted

Datawarehouse bad practice?

If it works for you then it's a good practice. There are basically no hard rules for databases.
mrdenny's user avatar
  • 27k
2 votes

Allow public use of functions without giving them database control

You need to grant rights to use the function. GRANT EXECUTE ON Function to UserOrRole
mrdenny's user avatar
  • 27k
3 votes

SQL Query in suspended state causing high CPU usage

CXPACKET is not the cause of high CPU workload. CXPACKET simply means that the query has gone parallel and that the thread which is reporting CXPACKET is waiting for another thread of the query to run …
mrdenny's user avatar
  • 27k
0 votes

Log shipping - switchover and failback

In either case (Log Shipping or Mirroring) when you bring the DR server online for testing any changes will be replicated back to the production server. If you don't want this to happen you'll want t …
mrdenny's user avatar
  • 27k
0 votes
Accepted

How to update a single record in a table based of foriegn key ID in another table?

OK, so I'm not going to comment on the table design as I assume that this is just part of the tables. To do the update that you are looking for there's a couple of options. You can get the Permissio …
mrdenny's user avatar
  • 27k
1 vote

Are #tables and #procedures 'not best practice' or 'bad practice'?

No there are no specific bad things about using temp tables and temp procedures. For the temp tables you'll want to make sure that you've got indexes as needed when querying from them, but that appli …
mrdenny's user avatar
  • 27k
2 votes

Is it ok to change from full recovery to simple recovery in Sql Server

You can change this at any time from full to simple. After making the change manually run checkpoint for the databases, then you can begin shrinking the transaction log. This does require a short lo …
mrdenny's user avatar
  • 27k
0 votes
Accepted

Rebuild Index in system database

The SQL Server will maintain these indexes automatically. If they have become fragmented you'll need to defragment them manually or via a scheduled job just like the user databases.
mrdenny's user avatar
  • 27k
2 votes

Having DB Mirroring and Replication together

When you have Mirroring and Replication you usually have two different problems that you are trying to solve. You are using the mirroring to solve a high availability problem and you are using replic …
mrdenny's user avatar
  • 27k
1 vote
Accepted

How can a connection for one DB block a connection to another DB in SQL Server?

So there's a couple of ways that this can happen. The queries in the blocking database reference objects within the blocked database. The queries are waiting for tempdb to allocate pages and one que …
mrdenny's user avatar
  • 27k
1 vote

Generic SQL Job Scheduler for multiple RDBMS's?

What you are looking for is an Enterprise Job Scheduler. Computer Associates has a good one called AutoSys. There's also JAMS, OpCon, Tivoli as well as others. There's a decent list available on wi …
mrdenny's user avatar
  • 27k

1
2 3 4 5
12
15 30 50 per page