Top "Sql-server-2005" questions

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

Difference between database and schema

What's the difference between a Database and a Schema in SQL Server? Both are the containers of tables and data. …

sql-server database sql-server-2005 database-schema
WHERE clause on SQL Server "Text" data type

Where [CastleType] is set as data type "text" in SQL Server and the query is: SELECT * FROM [Village] WHERE [CastleType] = …

sql-server sql-server-2005 tsql
Measure the time it takes to execute a t-sql query

I have two t-sql queries using SqlServer 2005. How can I measure how long it takes for each one to run? …

performance sql-server-2005
Reading a text file with SQL Server

I am trying to read in a text file from an SQL query (SQL Server 2005) but am not having any …

sql-server sql-server-2005 xp-cmdshell
Installation of SQL Server Business Intelligence Development Studio

I have installed Microsoft SQL Server 2005. This consists of the configuration tools (SQL server configuration manager, SQL Error and usage …

sql-server sql-server-2005 business-intelligence bids
How to detect if a stored procedure already exists

I have to write a deployment script which will work if a stored procedure exists or does not exist. i.…

sql sql-server-2005 stored-procedures
Convert Xml to Table SQL Server

I wonder how can i read a xml data and transform it to a table in TSQL? For example: <…

sql xml sql-server-2008 tsql sql-server-2005
Sql Server : How to use an aggregate function like MAX in a WHERE clause

I want get the maximum value for this record. Please help me: SELECT rest.field1 FROM mastertable AS m INNER …

sql sql-server sql-server-2005 tsql aggregate
SQL Server "AFTER INSERT" trigger doesn't see the just-inserted row

Consider this trigger: ALTER TRIGGER myTrigger ON someTable AFTER INSERT AS BEGIN DELETE FROM someTable WHERE ISNUMERIC(someField) = 1 END I've …

sql-server sql-server-2005 triggers
How do I fetch multiple columns for use in a cursor loop?

When I try to run the following SQL snippet inside a cursor loop, set @cmd = N'exec sp_rename ' + @test + …

tsql sql-server-2005