Top "Sql-server-2005" questions

Use this tag for questions specific to the 2005 version of Microsoft's SQL Server.

SQL query to group by day

I want to list all sales, and group the sum by day. Sales (saleID INT, amount INT, created DATETIME) NOTE: …

sql sql-server sql-server-2005 group-by
How to delete all rows from all tables in a SQL Server database?

How to delete all rows from all tables in a SQL Server database?

sql-server-2005
How to export SQL Server 2005 query to CSV

I want to export some SQL Server 2005 data to CSV format (comma-separated with quotes). I can think of a lot …

sql-server sql-server-2005 bcp sqlcmd
What is the difference between a stored procedure and a view?

I am confused about a few points: What is the difference between a stored procedure and a view? When should …

sql sql-server-2005 stored-procedures views
Insert multiple values using INSERT INTO (SQL Server 2005)

In SQL Server 2005, I'm trying to figure out why I'm not able to insert multiple fields into a table. The …

sql sql-server sql-server-2005 tsql
Real life example, when to use OUTER / CROSS APPLY in SQL

I have been looking at CROSS / OUTER APPLY with a colleague and we're struggling to find real life examples of …

sql sql-server sql-server-2008 sql-server-2005
SELECT FOR UPDATE with SQL Server

I'm using a Microsoft SQL Server 2005 database with isolation level READ_COMMITTED and READ_COMMITTED_SNAPSHOT=ON. Now I want …

sql sql-server sql-server-2005 tsql read-committed-snapshot
Find stored procedure by name

Is there any way I can find in SQL Server Management Studio stored procedure by name or by part of …

sql database sql-server-2005 ssms
"Prevent saving changes that require the table to be re-created" negative effects

Preamble I was modifying a column in SQL Server 2008 today, changing the datatype from something like currency(18,0) to (19,2). I got …

sql-server sql-server-2008 database-design sql-server-2005
Login failed for user 'DOMAIN\MACHINENAME$'

I know this is almost a duplicate of : The error "Login failed for user 'NT AUTHORITY\IUSR'" in ASP.NET …

.net sql-server sql-server-2005 web-applications iis-6