Can I use PowerShell with SQL Server 2005? - sql-server-2005

I know SQL Server 2008 has exposed some features to PowerShell as snapins. Now I want to know whether I can use PowerShell with SQL Server 2005? I guess the answer is NO, right? Thanks.

Yes -- You can use PowerShell with SQL Server 2005. The SQL Server 2008 minishell, sqlps.exe, which ships with SQL Server 2008 works against 2005 and even 2000 servers.
To get sqlps you'll need to either install SQL Server 2008 Management Studio or sqlps is available as a separate download as part of the SQL Server 2008 Feature Pack
In addition you can write PowerShell code directly using SQL Server Management Objects (SMO). SMO is the underlying classes used in SSMS and sqlps and was first introduced in SQL Server 2005. Like sqlps, SMO will work against SQL Server 2000.
The CodePlex project I coordinate, SQL Server PowerShell Extensions, provides over 130 functions and uses SMO and PowerShell that work with 2000 through 2008 R2 versions of SQL Server.

Related

SQL server version 655

what update i need to install for version 655 in vs studio 2010 for the sql server.
Can anyone tell me what i need on my computer when creating a database using sql on vs studio 2010? I need to use version 655 cos thats the version being used on Uni Computers
SQL Server 2008 (655) and SQL Server 2008 R2 (661) are not the same thing (though it is a common misconception - a lot of people think they're the same because Microsoft made a terrible, terrible, terrible naming decision, making 2008 R2 sound like a service pack).
You can't attach/restore a 2008 R2 database to a 2008 instance, period. Though there are several workarounds (that also apply for attaching 2012 -> 2008, 2008 -> 2005, 2008 R2 -> 2005, etc). You can either upgrade the engine you're trying to connect to up to 2008 R2, or you can extract the schema / data from the database using generate scripts wizard, import/export data wizard, SSIS, or 3rd party tools like Red Gate SQL Compare (for a full list of alternatives see this blog post).
This comes up extremely often, did you search for "sql server version 661 655"? I came up with a whole bunch of hits using this search term and some slight variations, all on this site and dba.SE:
Failure attaching SQL Server 2008 database to SQL Server 2005
Cannot attach 2008 R2 database to 2008 instance
Database restore error
Create Database in SQL Server 2012, Script and Use in 2008?
Cannot restore backup on SQL Server Express
How to automatically restore a SQL Server 2008 R2 backup file
Database "cannot be opened because it is version 661" when attaching .mdf file
Use database 661 version with SQL Server 2008
SQL Server: Attach incorrect version 661
https://dba.stackexchange.com/questions/21525/restoring-an-sql-server-2012-mdf-to-sql-server-2008
https://dba.stackexchange.com/questions/20588/restore-sql-server-2012-backup-to-a-sql-server-2008-database
If you are developing .NET based apps in visual studio 2010, then they will typically support all versions of Microsoft SQL Server. That does not mean you install SQL server INSIDE of visual studio, just that you can connect to a SQL Server instance running somewhere.
If you are asking "Where can I get a copy of SQL Server that my university is using?", that depends. For development, you can use a SQL Express installation on your local machine that matches the major release of SQL (2005, 2008, 2008R2, 2012), or you can request the university (or someone else) grant you access to an existing SQL instance.

Is there a query analyzer in SQL Server 2005 Express edition?

I have downloaded the SQL Server 2005 Express edition and I was not able to fine query analyzer to run the queries or design the database.
You need to download Microsoft SQL Server Management Studio Express 2005 (Or the 2008 version). It is also possible to design the database and run queries inside Visual Studio.

How do I properly configure SQL Server Management Studio 2008 to work with SQL Server 2005 DB?

How do I properly configure SQL Server Management Studio 2008 to work with SQL Server 2005 DB? The reason I'm asking is because I'm having trouble with and unable to use Integration Services.
Move from SQL 2005 to SQL 2008 (This is what I used to move my db from 2005 to 2008)
http://www.packtpub.com/article/moving-a-database-from-sql-server-2005-to-sql-server-2008-in-three-steps
Connect to SQL Server 2005 using Managment Studio 2008
http://www.serverintellect.com/support/sqlserver/sql2k8-2k5-comp.aspx
Some more info and tips found here (for trying to connect 2005 to SMS2008) http://blog.sqlauthority.com/2009/05/21/sql-server-fix-error-provider-named-pipes-provider-error-40-could-not-open-a-connection-to-sql-server-microsoft-sql-server-error/
Good Luck :)

SQL Server Express 2008 database compatibility with SQL Server Express 2005

a) I am in the process of developing a web site using the new free web development tool - Webmatrix (Beta 2) from Microsoft.
b) Web Platform Installer (recommends and also) automatically installs SQL Server Express 2008 along with Webmatrix and VWDE 2010 Express.
c) My database is created in SQL Server Express 2008. But the hosting company says that they would support only SQL Server Express 2005 (but not SQL Server Express 2008).
d) Can I go ahead with this hosting company or should I look for somebody who supports SQL Server Express 2008 specifically? In other words, the crux of the issue is:
Is it possible to open, read, update the database and tables created using SQL Server Express 2008 in SQL Server Express 2005 edition also?
Esh
I had the similar issue with hosting company.
They gave me a bak file from SQL server 2008 and I tried to restored in in my SQL 2005 environment and it consistently failed. Quite surprised to see the lack of backward compatibility. I would advise to go with hosting provider who supports 2008 or you migrate your DB to 2005.
In one word: NO.
SQL Server is never backwards compatible - if you have a database in a 2008 version, there is no way to restore and use that on a SQL Server 2005 machine. There's no trick, no third-party tool, no hack, nothing - it just doesn't work. EVER.
So if your hoster supports only SQL Server 2005 Express, you need to uninstall 2008 Express and manually install 2005 Express on your dev machine.
Or find a hoster that support SQL Server 2008 Express.

SQL Server Management Studio with SQL Server 2000

How to use SQL Server Management Studio with SQL Server 2000
Download it, install & run it. Works fine with every SQL Server edition.
SSMS 2008 will work with SQL Server 2000. You won't have access to intellisense or SQL 2008 Commands ( hierarchy, geometry, CTEs, etc) but you can run T-SQL, browse the server without issue. Just make sure you're using the correct login method.
By the way, if you need intellisense working in SSMS with SQL Server 2000, you'll need some third-party tools, like our dbForge SQL Complete. The tool has both free and shareware editions.