Top "Sql-server-2005" questions

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

What represents a double in sql server?

I have a couple of properties in C# which are double and I want to store these in a table …

c# sql sql-server sql-server-2005 tsql
How to compare two dates to find time difference in SQL Server 2005, date manipulation

I have two columns: job_start job_end 2011-11-02 12:20:37.247 2011-11-02 13:35:14.613 How would it be possible using T-SQL to …

sql sql-server-2005 date datediff
Alter table add multiple columns ms sql

Can anyone tell me where is the mistake in the following query ALTER TABLE Countries ADD ( HasPhotoInReadyStorage bit, HasPhotoInWorkStorage bit, …

sql-server-2005
How do you specify a different port number in SQL Management Studio?

I am trying to connect to a Microsoft SQL 2005 server which is not on port 1433. How do I indicate a …

sql-server sql-server-2005 ssms
Turn off constraints temporarily (MS SQL)

I'm looking for a way to temporarily turn off all DB's constraints (eg table relationships). I need to copy (using …

sql sql-server sql-server-2005 constraints entity-relationship
How to change identity column values programmatically?

I have a MS SQL 2005 database with a table Test with column ID. ID is an identity column. I have …

sql-server sql-server-2005 tsql identity sql-server-2005-express
How to parse string into date?

How can I convert a String to a Date in T-SQL? My test case is the string: '24.04.2012'

tsql sql-server-2005
Extreme wait-time when taking a SQL Server database offline

I'm trying to perform some offline maintenance (dev database restore from live backup) on my dev database, but the 'Take …

database sql-server-2005 performance
How to insert table values from one database to another database?

I want a query to insert records from one table to another table in a different database if the destination …

sql sql-server-2005 integration append
Drop all the tables, stored procedures, triggers, constraints and all the dependencies in one sql statement

Is there any way in which I can clean a database in SQl Server 2005 by dropping all the tables and …

sql sql-server sql-server-2005 tsql