Viewing 15 posts - 5,446 through 5,460 (of 6,036 total)
SET ROWCOUNT @IDCount
select agent_id
INTO #Foo
from t_1'
SET RWCOUNT 0
select ID from t_Test where ID not in (select agent_id from #Foo)
_____________
Code for TallyGenerator
April 3, 2006 at 3:57 pm
Or just:
Set @AgeAtWildParty = DateDiff(dd, @BirthDate, @DateOfWildParty) / 365.25
_____________
Code for TallyGenerator
April 2, 2006 at 4:45 pm
You are trying to supply a table as a parameter.
Does not matter that this table has only 1 row, it's a table anyway.
And it's not allowed because SQL Server does...
_____________
Code for TallyGenerator
April 2, 2006 at 4:26 pm
There are only 19 of them:
sysobjects
sysindexes
syscolumns
systypes
syscomments
sysfiles1
syspermissions
sysusers
sysproperties
sysdepends
sysreferences
sysfulltextcatalogs
sysindexkeys
sysforeignkeys
sysmembers
sysprotects
sysfulltextnotify
sysfiles
sysfilegroups
_____________
Code for TallyGenerator
March 29, 2006 at 6:28 pm
Topic "System tables" in BOL.
_____________
Code for TallyGenerator
March 29, 2006 at 4:28 pm
It's not about performance.
The logic of your queries is completely wrong.
You are receiving wrong results no matter how fast. Unless you have only 2 different ContractId's.
_____________
Code for TallyGenerator
March 29, 2006 at 4:27 pm
INNER JOIN
_____________
Code for TallyGenerator
March 29, 2006 at 2:21 pm
Would you mind to read at least BOL?
Article "Using EXPLICIT Mode" for example?
Or some basic books about XML in SQL 2000?
_____________
Code for TallyGenerator
March 28, 2006 at 7:12 pm
CONVERT(DECIMAL(10,2), ROUND(tp.parhrs*2, 0)/2 ) AS dhrs
_____________
Code for TallyGenerator
March 28, 2006 at 6:51 pm
See BOL for xp_cmdshell.
_____________
Code for TallyGenerator
March 28, 2006 at 3:47 pm
The value in that column must be not null but empty string.
'' is not NULL.
Try this:
where len(ResourceEnterpriseRMV21ID) > 0
_____________
Code for TallyGenerator
March 27, 2006 at 7:37 pm
Create Table Address
(Id int, Street Varchar(40), City Varchar(20), State Char(3), Country Varchar(30)
)
Create Table Customer
(CCode char(3) Not Null Primary key, CName Varchar(50) Not Null, CAddressId int,
CONSTRAINT FK_Customer_Address FOREIGN KEY (CAddressId) REFERENCES Address (Id)
)
_____________
Code for TallyGenerator
March 26, 2006 at 10:51 pm
select Job_Id, MIN(End_Job_Time - Start_Job_Time) as MinDuration,
MAX(End_Job_Time - Start_Job_Time) as MAXDuration,
AVG(End_Job_Time - Start_Job_Time) as AVGDuration,
YEAR(Start_Job_Time) as StartYear, MONTH(Start_Job_Time) as StartMonth
FROM JobRecords
GROUP BY Job_id, YEAR(Start_Job_Time), MONTH(Start_Job_Time)
Use...
_____________
Code for TallyGenerator
March 26, 2006 at 4:29 pm
What exactly does not work?
What are trying to do?
Any exaple of your code having problem?
_____________
Code for TallyGenerator
March 26, 2006 at 4:39 am
You can create a view from those table and INSTEAD OF DELETE trigger on it.
It gonna be several delete statements inside of this trigger, but than you can execute all...
_____________
Code for TallyGenerator
March 23, 2006 at 9:22 pm
Viewing 15 posts - 5,446 through 5,460 (of 6,036 total)