Questions tagged [sql-server-2005]

Microsoft's SQL Server is a relational database management system (RDBMS) that runs as a server providing multi-user access to a number of databases. This tag is for questions on the 2005 version

1072 questions
3
votes
3 answers

How to bring DB Engine Security together with Database Security MSSQL 2005 Express?

When we restore a backup created with the command below we get all the security settings on the database level but the users on the engine level are not created. osql -s myserver -E -Q " BACKUP DATABASE MyDB TO DISK =…
Geo
  • 3,071
  • 11
  • 42
  • 52
3
votes
3 answers

Run a SQL Server 2005 Job as Administrator on Windows Server 2008

I have a job, C:\foo.bat. When I run the job from windows explorer it fails. When I right click on the file and click "Run as administrator..." the job passes. Now when I setup the job in SQL Server Agent, it fails. I can't figure out how to run…
John Oxley
  • 278
  • 1
  • 6
  • 19
3
votes
1 answer

Why won't SQL Server use an index seek when running a parameterized query?

When I execute the following query in SQL Server 2005 it uses an index seek, as verified by viewing the execution plan. SELECT * FROM Account WHERE Number = '123456789' But when I run the same query, but use a parameter, it uses an index…
Stefan Moser
  • 177
  • 1
  • 9
3
votes
4 answers

SQL Server Maintenance Plan failing - Failed to acquire connection "Local server connection"

I've got a recently installed sql 2005 database server (an upgrade from 2000 on the same machine), I'm trying to get maintenance plans set up to reindex etc but they are constantly failing. This is the message I get, I presume some permission for…
Robin
  • 817
  • 3
  • 11
  • 20
3
votes
2 answers

ShareWebDb_log.ldf is 97GB - How to reduce?

We run an SBS 2008 server with WSS. On the drive I have set aside for WSS, I'm fast running out of space due to the ShareWebDb_log.ldf file: I've tried doing to do what I've read online - change the recovery mode, backup and truncate - but I can't…
pierre
  • 189
  • 6
  • 17
3
votes
3 answers

Simplest way to shrink transaction log files on a mirrored production database

What's the simplest way to shrink transaction log file on a mirrored production database? I have to, as my disk space is running out. I will make a full database backup before I do this, so I don't need to keep anything from the transaction log…
MGOwen
  • 307
  • 2
  • 4
  • 11
3
votes
2 answers

How do you backup a database within SQL Server 2005 from the command line?

I need to create a scheduled task that will backup a database within a SQL Server 2005 instance. Is there a command line argument that I can use to achieve this?
Josiah
  • 269
  • 1
  • 5
  • 10
3
votes
2 answers

Can I still use WMI to manage SQL Server 2005 and 2008?

I've seen some articles on how to use WMI to manage SQL2000 servers (after installing SQLWMI80.msi manually) but I've not seen anything about this for SQL2005 and SQL2008. Has this been depreciated? Or is WMI now installed as standard with 2005 and…
Guy
  • 2,668
  • 2
  • 20
  • 24
3
votes
3 answers

Queries run extremely fast locally, extremely slow on remote machines

We have a query that take takes anywhere from 24-38 seconds to run when you run it from SQL Server Management Studio from a remote machine, but <1 second to run when it is run from the machine locally using SQL Server Management Studio. SQL Server…
nvahalik
  • 203
  • 1
  • 2
  • 6
3
votes
2 answers

Cannot rebuild index because row above maximum size (Microsoft SQL)

I'm trying to rebuild a clustered index on a SQL Server 2005 table, and I keep getting the error: Cannot create a row of size 8078 which is greater than the allowable maximum of 8060. The command is just a standard ALTER INDEX ON …
Richard Gadsden
  • 3,686
  • 4
  • 29
  • 58
3
votes
1 answer

Can I restrict how many CPUs SQL Server 2005 uses?

I have a SQL Server 2005 instance running on a production server. CPU load is relatively low in part thanks to some recent improvements in the code. I'm trying to work out if I could safely reduce the number of CPUs in the machine and would like to…
Robin
  • 817
  • 3
  • 11
  • 20
3
votes
2 answers

Windows Cluster - Can I failover without disturbing SQL?

I have a 3 node cluster. All of the nodes are part of Cluster01 in what should be A/A/P mode. Usually instanceA and instanceB of SQL Server would reside on NodeA and NodeB respectively. the windows cluster resources would reside on NodeA and NodeC…
LeedsDBA
3
votes
1 answer

Does Sql Server Express supports MSDTC

I need MSDTC(Microsoft Distributed Transaction Coordinator) in one of my application. I am not sure whether it is available on Sql Server Express editions. I googled on MSDN and haven't got clear answer on this. It seems with googling that it is…
Shantanu Gupta
  • 219
  • 1
  • 8
3
votes
5 answers

Licensing a SQL DR box

Possible Duplicate: Can you help me with my software licensing question? I'm tempted to use a DR server which holds a mirrored copy of a database to also perform test restores and integrity checks of the principle database. There maybe issues…
3
votes
7 answers

Unable to connect SQL Server instance from Visual Studio 2008 SP1 on Vista x64

I installed on a Vista x64 machine Visual Studio 2008 SP1 (with integrated SQL from the installation package) and when I try to add an MDF file to a project or to the App_Data when working with web, I get the following message: Connections to SQL…