Viewing 15 posts - 841 through 855 (of 1,124 total)
Why do we need to convert when its not required....
DECLARE @radius float
SET @radius = -0.256712789599778
SELECT lis_id, @radius AS distance FROM Listings
November 30, 2007 at 6:18 am
Hey, I've just tested this and surprisingly it works both in procedure as well as in trigger...:w00t::w00t:
November 30, 2007 at 6:07 am
The solution provided is for SQL Server 2000 or higher and wouldn't run in MS Access or any other RDBMS.
November 30, 2007 at 5:34 am
Is the column COPPersoonID a unique identifier?
A unique identifier is a 16 byte long value in the format xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx (can be generated by NEWID() function). The condition...
November 30, 2007 at 4:02 am
Try running the inner sub-query to verify the results....And also you are using a sub-query executed for each row, which can be avoided by using derived tables...
November 30, 2007 at 3:53 am
It would actually group the rows by columns b.pn_bnc, b.model_bnc and b.bnc90d. And also you have a sub-query executing for each row, will not scale well in production. ...
November 30, 2007 at 3:48 am
CREATE VIEW vw_SomeTable
AS
SELECT * FROM SomeTable WHERE SomeID IN( 1, 2, 3 ) AND SomeDate IN( '20060101', '20070101' )
EDIT:
Damn....I guess, I misunderstood the post....;)
November 28, 2007 at 4:43 am
Well, if you are taking about "real-time" data refresh then you can look more into replication, mirroring and snapshots, otherwise you can hit a search on this site to find...
November 28, 2007 at 4:41 am
Hey, you are still using sys.databases...
November 28, 2007 at 4:35 am
Assuming that you want alphabetical row numbering, here is what you can do...
UPDATE SomeTable SET Col2 = 66 - ASC( LOWER( Col1 ) )
November 28, 2007 at 4:11 am
Hey.... guess I hit someone's "sweet" spot.:D:D
November 28, 2007 at 3:54 am
I hope, next time you follow the route opposite to that you've been through:D:D
November 27, 2007 at 5:30 am
Go to Server > Management > SQL Server Logs [Right click and select Configure]
November 27, 2007 at 4:43 am
mahesh.vsp (11/26/2007)
We are again using Joins and functions and temporary tables. Don't it effect the query performance and resource utilization?
The queries which I and PW has posted will surely improve...
November 27, 2007 at 4:30 am
Viewing 15 posts - 841 through 855 (of 1,124 total)