Viewing 15 posts - 18,406 through 18,420 (of 18,926 total)
So you're logged as SA and you still can't create objects??
That's gonna be behond my knowledge. Good luck.
March 10, 2005 at 8:59 am
Can't really explain why except that it makes more sens that way... but see for yourself :
CREATE TABLE MyTest(
Atest varchar(50) not null,
constraint ck_test_ATest check (ATest = '1')
)
GO
CREATE TRIGGER [trMyTest_IO_Insert]...
March 10, 2005 at 8:56 am
Select CustomerId, COUNT(*) as Total from dbo.CustDtl GROUP BY CustomerId
March 10, 2005 at 8:47 am
Depends on what you need.
exec spAnomResults qte = 1, Cost = 1
WITH ORS
Create proc spAnomResults @qte as int = null, @price as decimal(18,4) = null, @Cost as decimal(18,4) = null,...
March 10, 2005 at 8:02 am
Maybe I'm blind but I don't see anything wrong with the function. Have you tried this :
GO
create function calc_interest ( @principal int , @rate numeric(10,5) , @years int...
March 10, 2005 at 6:44 am
I wish I didn't lose the link to this great article about sets vs selects but :
"To sum it up very briefly - both is allowed, SET is recommended...
March 10, 2005 at 6:16 am
Maybe something like this could be a substitute for the OR requirements :
Create proc spAnomResults @qte as int = null, @price as decimal(18,4) = null, @Cost as decimal(18,4) =...
March 10, 2005 at 6:06 am
Think about what you just said.
Create proc spAnomResults @qte as int = null, @price as decimal(18,4) = null, @Cost as decimal(18,4) = null, @DateStart as datetime, @DateEnd as datetime, @CostPriceCheck...
March 10, 2005 at 5:59 am
assuming both fields are numbers
Select CAST(IDNUMBER as varchar(15)) + CAST(PRINTCOUNT as varchar(10)) as ConcatenatedField from dbo.MyTable
March 9, 2005 at 2:31 pm
The short version :
SET is the AISNI 92 standard and you should use it unless you are doing err handling. In which case you have no choice but...
March 9, 2005 at 2:28 pm
I'm not gonna say this again to you. DON'T USE DYNAMIC SQL FOR THIS.
Create proc spAnomResults @qte as int = null, @price as decimal(18,4) = null, @Cost as decimal(18,4) =...
March 9, 2005 at 2:21 pm
Article on dynamic sql and why it should NOT be used... especially in this case.
March 9, 2005 at 12:26 pm
Create proc spAnomResults @qte as int = null, @price as decimal(18,4) = null, @Cost as decimal(18,4) = null, @DateStart as datetime, @DateEnd as datetime
Select * from dbo.Orders where OrderDate between...
March 9, 2005 at 12:24 pm
What I proposed will do it... but you will have to code something on the client side to check if the record has been updated, if yes then fetch the...
March 9, 2005 at 11:39 am
Viewing 15 posts - 18,406 through 18,420 (of 18,926 total)