Top "Sql-server-2000" questions

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

Add a column with a default value to an existing table in SQL Server

How can I add a column with a default value to an existing table in SQL Server 2000 / SQL Server 2005?

sql sql-server sql-server-2005 sql-server-2000
Check if table exists in SQL Server

I would like this to be the ultimate discussion on how to check if a table exists in SQL Server 2000/2005 …

sql-server tsql sql-server-2005 sql-server-2000
How to Join to first row

I'll use a concrete, but hypothetical, example. Each Order normally has only one line item: Orders: OrderGUID OrderNumber ========= ============ {FFB2...} STL-7442…

sql sql-server tsql sql-server-2000
How do I generate random number for each row in a TSQL Select?

I need a different random number for each row in my table. The following seemingly obvious code uses the same …

sql-server tsql sql-server-2000
Find index of last occurrence of a sub-string using T-SQL

Is there a straightforward way of finding the index of the last occurrence of a string using SQL? I am …

sql-server string tsql search sql-server-2000
How to get the first and last date of the current year?

Using SQL Server 2000, how can I get the first and last date of the current year? Expected Output: 01/01/2012 and 31/12/2012

sql sql-server sql-server-2000
Grant execute permission for a user on all stored procedures in database?

I generated script from old database, created a new database and imported all data from old database. So far so …

sql sql-server sql-server-2000
SQL get the last date time record

I'm trying to get the last datetime record from a table that happens to store multiple status. My table looks …

sql sql-server datetime sql-server-2000
INSERT INTO @TABLE EXEC @query with SQL Server 2000

Is it true that SQL Server 2000, you can not insert into a table variable using exec? I tried this script …

sql-server tsql sql-server-2000
SQL where datetime column equals today's date?

How can I get the records from a db where created date is today's date? SELECT [Title], [Firstname], [Surname], [Company_…

datetime sql-server-2000