Viewing 15 posts - 1,591 through 1,605 (of 2,062 total)
Is this only the first time or every time the query is run?
February 21, 2006 at 12:29 pm
Oops, forgot to specify the field where the values should go into.
INSERT INTO #tmpFeatured (ListingID) -- (Line 3)
SELECT ListingID from tblListings_Residential_Featured ORDER BY NewID()
February 21, 2006 at 12:25 pm
select [name],sum(datediff(n,logout,login)) /*total amount of minutes*/
from mytable
group by [name]
order by [name]
You can format the amount of minutes in your report or with a userdefined function.
February 21, 2006 at 11:14 am
That is a huge difference. Could it be the amount of data returned?
Query analyzer displays the results faster in grid than in text mode.
What is the connection technology to sql server...
February 21, 2006 at 11:03 am
assuming listingid is the primary key
Step 1:
Create a temporary table with an idenity field (listingid, autoid)
INSERT into mytemptable
SELECT ListingID
from (SELECT ListingID from mytable order by newid)
Step 2:
update mytable
set displayorder=autoid
from mytable...
February 21, 2006 at 10:51 am
I wasn't aware of that one.
Good you've found it.
February 19, 2006 at 6:32 am
*Is it possible that a bad query to cause this behaviour
I can't say for sure. There is an issue with superfast I/O where a query can monopolize I/O access...
February 18, 2006 at 6:41 am
Got puzzled again.
Do you wish to capture 1/0 (the exit code)
or the number of failed attempts?
February 17, 2006 at 12:38 pm
Instead of reading a file byte per byte (1 I/O per byte) , a program can read them in chunks of y bytes (1 I/O command for y bytes in total)
The same...
February 17, 2006 at 12:35 pm
Simply because there is no recordset in sp_IsValidLogon, just a return code.
You want to capture the exit code?
February 17, 2006 at 10:55 am
You're welcome 🙂
Keep in mind that set-based solutions are likely faster than record by record based solutions in sql
February 17, 2006 at 2:17 am
not sure if this works
select proj_name as [project name], proj_nbr as [project number] from proj
February 16, 2006 at 2:33 pm
Sergiy query looks more plausible.
*edit just a test-query
This code should be tested first
DECLARE @begin datetime
DECLARE @end datetime
select ALLSWEEPS.barcode,ALLSWEEPS.ALL_COUNTS-ISNULL(SWEEPDOUBLES.DOUBLES,0)
FROM
(
select barcode,count_BIG(*) AS ALL_COUNTS all /*all...
February 16, 2006 at 2:26 pm
Please feed us some more information.
1) What is the current patch level of sql server and the os it runs on?
2) Did anything change just before the slowdown cropped up...
February 16, 2006 at 1:44 pm
Viewing 15 posts - 1,591 through 1,605 (of 2,062 total)