tagged [sql]

How to connect to SQL Server from another computer?

How to connect to SQL Server from another computer? I want to connect from home using SQL Server 2005 to another PC. I had a look on the msd...but before connecting it says I should connect to another...

Add account to SQL Server in .net

Add account to SQL Server in .net Is there any API SQL Server 2008 offers for .net application to create and grant access authorities? Thanks!

14 Sep at 05:24

How to find third or nᵗʰ maximum salary from salary table?

How to find third or nᵗʰ maximum salary from salary table? How to find third or n maximum salary from salary `table(EmpID, EmpName, EmpSalary)` in optimized way?

7 Oct at 08:10

Delete rows from multiple tables using a single query (SQL Express 2005) with a WHERE condition

Delete rows from multiple tables using a single query (SQL Express 2005) with a WHERE condition This is the query I'm using: It's working fine in MS Access but getting error (Incorrect syntax near ','...

How can I do an UPDATE statement with JOIN in SQL Server?

How can I do an UPDATE statement with JOIN in SQL Server? I need to update this table in with data from its 'parent' table, see below: `sale.assid` contains the correct value to update `ud.assid`. Wha...

Function vs. Stored Procedure in SQL Server

Function vs. Stored Procedure in SQL Server When should I use a function rather than a stored procedure in SQL, and vice versa? What is the purpose of each?

GRANT EXECUTE to all stored procedures

GRANT EXECUTE to all stored procedures Does the following command effectively give the user, "MyUser," permission to execute ALL stored procedures in the database?

Get Hours and Minutes (HH:MM) from date

Get Hours and Minutes (HH:MM) from date I want to get only `hh:mm` from date. How I can get this? I have tried this :

20 Jun at 15:21

Datetime in where clause

Datetime in where clause How can I select 12/20/2008 in `where` clause of sql? The server is SQL server 2005.

COALESCE Function in TSQL

COALESCE Function in TSQL Can someone explain how the COALESCE function in TSQL works? The syntax is as follows > COALESCE(x, y) The MSDN document on this function is pretty vague

13 Nov at 18:25