Viewing 15 posts - 1,306 through 1,320 (of 2,171 total)
See suggestion made at the topic linked above.
September 4, 2007 at 11:50 am
Not entirely true...
SELECT
a.*
FROM OPENROWSET('SQLNCLI', 'Server=(local);Trusted_Connection=yes;', 'EXEC...
September 4, 2007 at 11:47 am
It seems client design is Microsoft Access
DECLARE
@Events TABLE (Unit INT, Pos INT
September 4, 2007 at 11:20 am
SELECT TOP 8
JobPK,
JobTitle,
Location,
JobDescription,
dbo.udf_PAY_FORMAT('£', SalaryMin, SalaryMax, SalaryFrame, SalaryDesc) as Salary,
j.HideContactDetails,
September 4, 2007 at 5:11 am
Something like this, maybe?
-- Prepare sample data
DECLARE @Sample TABLE (Patient SYSNAME, ServiceName SYSNAME, ServiceLevel INT, StartDate DATETIME, EndDate DATETIME)
SET DATEFORMAT...
September 4, 2007 at 1:02 am
It depends.
We can guess, but showing your table's DDL will help us much.
SELECT *
FROM Table1
INNER JOIN Table2 ON Table2.Col1 = Table1.Col2
WHERE SCOPE_IDENTITY() = 99
As you can see, queries can look...
September 3, 2007 at 11:11 am
Can you post some proper expected output base on the sample data above?
September 3, 2007 at 4:38 am
SELECT
au_id,
au_lname
,
au_fname
,
phone
,
address,
city
,
state,
zip
September 3, 2007 at 4:36 am
The IN clause is 16000 characters?
May I ask if you also have some performance problems?
September 3, 2007 at 1:58 am
SELECT TOP 2000 *
FROM Table1
WHERE ID >= 30000
ORDER BY ID
September 1, 2007 at 3:27 pm
SQL Server 2005 offers a better approach!
ENABLE TRIGGER { [ schema_name . ] trigger_name [ ,...n ] | ALL }ON { object_name | DATABASE | ALL SERVER } [ ;...
August 31, 2007 at 8:29 am
SELECT *
FROM DateTableFunction() AS dtf
LEFT JOIN BookingTable AS bt ON bt.FromDate < dtf.Date AND bt.ToDate > dtf.Date
WHERE bt.FromDate IS NULL
Also, a more efficient date tabelfunction is found here
http://www.sqlservercentral.com/columnists/plarsson/howmanymoremondaysuntiliretire.asp
August 31, 2007 at 8:05 am
ROW_NUMBER() will give a unique number within the partition regardless of order by.
DENSE_RANK() will give a "rownumber" depending on order by.
If column used in order by has multiple values, all...
August 31, 2007 at 6:53 am
Sorry, but what is your question?
August 31, 2007 at 6:47 am
He is all over the places so this must be reallt important, having twice the number of helpers...
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=88706
I suggested adding a ";" before the WITH keyword
August 30, 2007 at 2:30 pm
Viewing 15 posts - 1,306 through 1,320 (of 2,171 total)