Viewing 15 posts - 706 through 720 (of 1,109 total)
isa (10/30/2007)
...declare @rowNo int
declare @i int
select @rowNo=count(*) from Offers
set @i=1
while ( @i <= @rowNo)
begin --loop begin
declare myvar numeric(13)
if(OfferPriceUnit==1)
begin
set myvar+= Quantity*OfferPrice
end
else
begin
myvar+= OfferPrice
end
End --loop end
-- To calculate myvar:
SELECT SUM(CASE OfferPriceUnit
...
October 30, 2007 at 3:00 am
If you use the GUI installer, you will be able to specify custom paths after the registration information page, on the page where the various components can be selected. Just...
October 29, 2007 at 9:57 am
Just a further note, do make sure that you reseed to the current max value in the table. Otherwise, if you do not have a unique constraint, you may easily...
October 29, 2007 at 9:40 am
DBCC CHECKIDENT ('dbo.mytable', RESEED, 1)
Regards,
Andras
October 29, 2007 at 9:29 am
put brackets around the name, like:
[Order Details]
Regards,
Andras
October 29, 2007 at 8:55 am
This is posted and hopefully answered on http://www.sqlservercentral.com/Forums/Topic416002-145-1.aspx.
Andras
October 29, 2007 at 8:03 am
On the above page in the top right corner click on "All Releases", and then on the next page in the same location click on "SQL Server 2005 SP2a"
A direct...
October 29, 2007 at 7:59 am
Is this what you have in mind:
DECLARE @table1 TABLE (
category nvarchar(50),
startdatedatetime,
enddatedatetime
...
October 29, 2007 at 7:56 am
http://support.microsoft.com/default.aspx?scid=kb%3ben-us%3b305977&Product=sql2k also contrasts the advantages/disadvantages of table variables and temp tables.
Regards,
Andras
October 29, 2007 at 3:20 am
Fulltext search is what you are looking for. You can find more on http://technet.microsoft.com/library/ms142545.aspx
Regards,
Andras
October 26, 2007 at 8:35 am
If you do not need this on a per row group basis (so you do not need to use "group by"), for one group you can use coalesce, and self-updating...
October 26, 2007 at 8:18 am
I do not think anything else is available in SQL Server; triggers, while they should not be overused, are however exactly for this purpose. But maybe it is worth to...
October 26, 2007 at 8:13 am
Have a look at http://www.sqlservercentral.com/Forums/Topic391111-338-1.aspx
You can find here answers in forms of a user defined function (good for 2000), or a nice trick with xml path for 2005.
Regards,
Andras
October 26, 2007 at 7:53 am
October 26, 2007 at 7:51 am
Viewing 15 posts - 706 through 720 (of 1,109 total)