Viewing 15 posts - 76 through 90 (of 135 total)
Mark Fitzgerald-331224 (5/30/2012)
-- Sample data
declare @ProductRate table (
[ProductID] [int]...
May 30, 2012 at 11:36 pm
Stewart "Arturius" Campbell (5/30/2012)
Does changing the MaxtoDate CTE as follows help:
MaxToDate AS
(SELECT ProductID, MIN(FromDate) MinToDate
FROM #ProductRate
WHERE FromDate >= @todate
GROUP BY ProductID)
Hi stewart
for the following values it fails
DECLARE @fromdate DATETIME =...
May 30, 2012 at 11:28 pm
For the following set of value
DECLARE @fromdate DATETIME = '2012-05-23';
DECLARE @todate DATETIME = '2012-05-27';
ProductID FromDate Rate
1 ...
May 30, 2012 at 7:09 am
Thanks for the reply..it almost solved the problem
But for this Set of values it is not displaying anything
DECLARE @fromdate DATETIME = '2012-05-29';
DECLARE @todate DATETIME = '2012-05-30';
It should display like this
ProductID...
May 30, 2012 at 6:16 am
I tried this also
DECLARE @fromdate DATETIME = '2012-05-24';
DECLARE @todate DATETIME = '2012-05-26';
SELECT @fromdate = (SELECT TOP 1 FromDate FROM #ProductRate WHERE FromDate <= @fromdate ORDER BY FromDate DESC)
SELECT @fromdate
SELECT...
May 30, 2012 at 5:05 am
Actually we had the ToDate field..but due to some date range overlapping validation we removed that ....
May 23, 2012 at 8:38 am
The FromDate is not fixed it can be any date ..we can insert any date
May 23, 2012 at 8:21 am
anthony.green (5/17/2012)
May 17, 2012 at 7:10 am
so it is not possible without denying the view definition..
In my company the application developers want to see the procedures...so it is not possible to deny the VIEW Definition.
The problem...
May 17, 2012 at 5:29 am
thanks for the reply...yes it is true when i deny the VIEW DEFINITION to user,he cannot generate the script.
But i cannot deny the user the VIEW DEFINITION...is there any workaround...
May 17, 2012 at 5:06 am
Sachin Nandanwar (5/17/2012)
Also you can deny view definition to the userDeny View Definition To [User]
If i do this developer cannot see the procedures....all the procedures will be locked out
May 17, 2012 at 4:41 am
anthony.green (5/16/2012)
May 17, 2012 at 4:40 am
hirenio_22 (5/17/2012)
Then I added the same user in Northwind DB User's list where I gave db_read and db_write rols and restricted to a schema.
what you mean by restricted to...
May 17, 2012 at 4:30 am
Is it possible to do that
May 16, 2012 at 6:39 am
SQL Kiwi (5/1/2012)
The issue you are encountering is known as the 'lost update' problem. Alexander Kuznetsov has an excellent article that covers this topic well: http://www.simple-talk.com/sql/t-sql-programming/developing-modifications-that-survive-concurrency/
thanks paul for the...
May 4, 2012 at 3:38 am
Viewing 15 posts - 76 through 90 (of 135 total)