Viewing 15 posts - 4,726 through 4,740 (of 6,036 total)
CREATE PROCEDURE dbo.SetNewPurchasePeriod
@DateStart smalldatetime, @DateEnd smalldatetime, @price money
AS
DELETE FROM TABLE
WHERE ValidPurchaseDateStart BETWEEN @DateStart AND @DateEnd
AND ValidPurchaseDateEnd BETWEEN @DateStart AND @DateEnd
INSERT INTO TABLE (ValidPurchaseDateStart, ValidPurchasedateEnd,...
November 26, 2006 at 2:26 pm
Can you past INSERT statement you use?
Error must be there.
November 26, 2006 at 12:26 am
Jeff, you did not mention security concerns, when you need to give to all users full access to all tables, sometimes including system tables.
Than, you cannot limit the data scope...
November 25, 2006 at 1:29 pm
Create Function getData(@id uniqueidentifier)
returns @retResults TABLE (of_id uniqueidentifier, Value decimal(15,5))
AS
BEGIN
INSERT @retResults
(of_id, Value)
SELECT @id, fieldA
from table1
where tabel_id = @id
RETURN
END
I'm not sure why you need to pass original...
November 24, 2006 at 8:25 pm
Create #Table with IDENTITY column, populate it with new data and than insert from #Table to destination table with Max(ROWID) + #Table.ID
November 23, 2006 at 5:41 pm
You must do it in SP.
You should not allow application to run queries on tables or views.
November 22, 2006 at 4:27 pm
SELECT IDENTITY(int, 1,1), <list of columns>
INTO #TempTable
FROM <your query>
SELECT * FROM #TempTable
November 22, 2006 at 3:12 pm
So, Webproxy log - that's what must take all your attention.
I believe it carries all useless history staff in the worst possible way. I mean fully denormalised.
If you can delete...
November 22, 2006 at 3:30 am
Forget about SHRINKDATABASE for a minute.
You don't need much space on disk to perform big insert. Much non allocated space inside of mdf file will be quite enogh.
Find out which tables...
November 21, 2006 at 3:22 pm
What about "fields from the rows that have changed"?
Trigger is universal thing, it will be fired everytime you do something to the data in your table. It not...
November 21, 2006 at 2:33 pm
Just make sure you've run DBCC UPDATEUSAGE (0) prior to SP_SPACEUSED, otherwise results returned may be incorrect.
November 20, 2006 at 9:11 pm
Use these:
DBCC UPDATEUSAGE
master.dbo.sp_MSforeachtable
master.dbo.sp_spaceused 'TableName'
Check out BOL for complete syntax and different options.
Thanks for "UP". Not really my area of expertise... ![]()
November 20, 2006 at 7:45 pm
Viewing 15 posts - 4,726 through 4,740 (of 6,036 total)