Can I use Microsoft WebMatrix to access SQL Server 2008? - sql-server

I created a development web database following these instructions: http://www.w3schools.com/website/webpages_database.asp
var db = Database.Open("Northwind");
var query = db.Query("SELECT CompanyName,City,Country FROM Customers");
The example code provided uses Microsoft WebMatrix to access the database. At a later time, however, I would need to access the a SQL Server 2008 production database by a connection string.
Can Microsoft WebMatrix be used for that purpose?

Here are the instructions on how to do it using SSMS for Sql Server 2008 R2
http://msdn.microsoft.com/en-us/library/ms190209(v=sql.105).aspx

Related

SQL Server Express 2014 - ##version 2008

I have a question reharding strange behavior of Sql Server. I had sql server 2008 edition which I uninstalled and installed SSMS Express 2014 instead. However I could not perform any advanced analytics on sample northwind db i.e. lead, lag, preceding etc.
When I asked the program ##version, the output was 2008sp4.
How may it be that SSMS2014 has 2008 engine? How to fix it?
There two applications such as SQL Server and SSMS.
SQL Server is a windows service which stores data. It does not have user interface.
SSMS is an UI application which connects to SQL Server to manipulate data by T-SQL language. It has user interface.
When you execute ##version, then you get a version of SQL Server.
If you want to know your SSMS version, then just click Help -> About

Microsoft Azure + SQL Database

How can i create a SQL Server 2008 SQL Database with microsoft azure.
Looks like it is defaulted to
productversion : 11.0.9214.43
productlevel : RTM
edition : SQL Azure
Please help me
SQL Azure is a cloud service version of SQL Server. You can't opt to use different versions of it (and it's actually slightly different to the regular server hosted version of SQL Server)
If you need a specific version of SQL Server hosted in Azure, you'll need to create a Virtual Machine and run it there.
Have a look through the VM Gallery to see if they have a pre-built VM Image with SQL 2008 installed,
Alternatively, spin up a Vanilla Window Server VM, and install SQL Server yourself.

How to connect to SQL Server provided by AppHarbour

I am new to AppHarbour and I am trying to deploy an ASP.NET MVC 3 Web application here. I have successfully deployed the web application.
Now I want to run some sql scripts on the database provided.
For which I have followed the following steps...
Step 1 :
Step 2 :
Step 3 :
Now here I get the server name, username and password as well as the database name, but !
When I try connecting to this database using SQL Server Management Studio I just cannot connect to it.
I always get the following error message
TITLE: Connect to Server
Cannot connect to e2f7c78d*********b9.sqlserver.sequelizer.com.
ADDITIONAL INFORMATION:
This version of Microsoft SQL Server Management Studio can only be used to connect to SQL Server 2000 and SQL Server 2005 servers. (ConnectionDlg)
Please can some one help me on this. Thanks
Appharbor uses Sql Server 2008 R2 (Microsoft SQL Server Express Edition with Advanced Services, version 10.50.1600.1). Use Microsoft SQL Server Management Studio 2008 R2 version or newer and it should work.

Using SQL Server SDK with SQL Server Compact Edition Database

I've been looking into the following CodeProject article:
http://www.codeproject.com/KB/tips/CreateSQLDV.aspx
and I've been trying to figure out if I can get this to work both with standard SQL Server databases, as well as SQL Server CE databases.
I can create the Database object for a standard db that's on my server:
Server dbServer = new Server("myserver.com");
Database database = dbServer.Databases["MyDB"];
But I'm having my issues when in trying to create the object for a local, compact edition database:
Server dbServer = new Server("C:\PathToDb\MyDb.sdf");
Database database = dbServer.Databases["MyDB"];
I know that in most cases there isn't much overlap between SQL Server and SQL Server CE, but considering this is the SQL Server SDKs, and SQL Server Management Studio can connect to compact edition databases, I'm thinking there must be some way I'm overlooking...
There is no SMO for SQL Server Compact, to create databases, you can use the SqlCeEngine object. For othr scripting purposes, you can use my scripting API, http://exportsqlce.codeplex.com

upsizing ms access 2007 db to sql server 2008

i keep getting an error:
The upsizing wizard does not work with this version of SQL Server to which your access project is connected.
has anyone else seen this issue.
There is another version of the Upsizing Wizard: Migrating to SQL Server 2008
It's called the SQL Server Migration Assistant for Access (SSMA Access) and you can download here.
You can use DBWScript to generate sql scripts, such as CREATE TABLE.

Resources