sql-server-2008-express

Unable to connect to SQL Server 2008 Express database locally

Hi, I'm trying to set up a CMS locally, using a MSSQL database. Ordinarily I do this on a live web server via a test domain, but I'd like to start developing locally rather than having to FTP things all the time. I have IIS running locally, which is fine, but am struggling big-time to get a SQL database running locally (more specifica...

Sql 2008 Debugging from Management Studio

How do i attach debugger to Sql 2008 Express edition from Management Studio? ...

SQL Server 2008 Datetime field overflow

I am using C# to interface with a SQL database. the database has a DateTime field. When I try to write a DateTime object from C#, I get the following error: ERROR [22008] [Microsoft][ODBC SQL Server Driver]Datetime field overflow I found this on the topic: http://social.msdn.microsoft.com/forums/en-US/sqldataaccess/thread/ac1b5a6d...

Normalized Database Question

I should know this but I expect it to be a simple answer... This is my simple database so far for this question: Am I supposed to insert the Id from Contact and Phone into Contact_Phone when I insert a record into Contact and Phone tables - or can this be done automatically? I am using SQL Server 2008 Express. ...

What is the default username and password of my SQL Server Express?

It installed automatically with Visual Studio 2010 Ultimate. I didn't create any users for the server or ANYTHING. I'm using: string connectionString = @"Server=.\SQLEXPRESS;Database=SportsStore;Trusted_Connection=yes;"; I get error that authentication failed. So the server is being found, but my credentials are wrong. What would the...

Can I upgrade from sql server 2008 Nov 2009 CTP to sql server 2008 r2 express

Can I upgrade from sql server 2008 Nov 2009 CTP to sql server 2008 r2 express without losing data? I can't even FIND my data. ...

Prepared Statements and Stored Procs Used Together

I'm in the planning stages of a Microsoft ASP.NET / SQL Server 2008 based web application and In thinking about database design, I began to think about injection attacks and what strategies I should employ to mitigate the database as a vector for injection attacks. I've heard from various sources that using stored procedures increases s...

SQL Server 2005: what LINQ generated query is better - with "Where()" or "Any()" ?

var query = from c in db.Customers select c; query = query.Where(c => c.Orders.Where(o => o.OrderItems.Where(oi => oi.SellerID == sellerID).Count() > 0).Count() > 0); that generates SQL: SELECT [t0].[CustomerID], [t0].[FirstName], [t0].[LastName], [t0].[Email], [t0].[Company], [t0].[BillingAddress1], [t0].[BillingAddress2], [t0].[Shi...

SQL Server Express 2008 R2 Installation error at Windows 7

Hello, I created install script that will install SQL Server 2008 R2 on windows XP SP3, windows vista and windows 7. One of the command that i used in the installation is for silent installation of SQL Server 2008 R2. When i install it on windows XP everything works just fine but when i try to install it on Windows 7 i get an error. ...

SMO install database via Backup

The project I'm working uses SMO to restore the needed databases as part of the application installer. The problem is, on a machine that has never had the application installed. From the event logs, it seems like the database can't be restored because it doesn't exist in the instance. (Due to the fresh install) Can I use SMO to restore...

Getting error after installing sql server 08 Express edition

I have installed SQL server 08 express edition and then tried to connect using SQL server management studio, but getting below error: TITLE: Connect to Server Cannot connect to My-PC\SQLSERVER. ------------------------------ ADDITIONAL INFORMATION: A network-related or instance-specific error occurred while establish...