Viewing 15 posts - 1,426 through 1,440 (of 2,171 total)
NEWID() is guaranteed to be unique within the database.
This gives two hints. Date and Time is involved and so is the Database name.
Others are (by rumour) MAC address, bios information...
August 9, 2007 at 2:01 pm
We have to wait for OP to return with results.
And about NEWID() as random generator? We have had several tests (incluing me, Jeff and Michael) to see if ABS(CHECKSUM(NEWID())) generated...
August 9, 2007 at 3:03 am
DATETIME is a FLOAT? Since when?
I thought DATETIME was a 64-bit binary integer value, where the lowest four bytes is the data portion, and the higher 4 bytes is the...
August 9, 2007 at 3:00 am
Yes, when I used ODBC 256 characters was the default max length of returning strings.
Changing to the newer OLEDB solved that problem.
August 9, 2007 at 2:45 am
Well, the sample data was ordered so I thought this was the case in production environment.
Now OP finally seems to have released all information necessary.
August 7, 2007 at 4:24 am
-- Prepare sample data
DECLARE @Sample TABLE (RowID INT IDENTITY(1,1), col1 int, col2 int)
INSERT @Sample
SELECT 1, 1 UNION...
August 6, 2007 at 5:04 pm
August 6, 2007 at 3:17 pm
And the wonder of Google cache!
I was hoping somone could help. I need to count the number of words in a specfic column in a table if i didn'rtknow...
August 4, 2007 at 5:01 pm
select bookingsource,
bookingtype,
operatingunit,
avg(dailyrate) as average
from (
select bookingsource,
bookingtype,
operatingunit,
row_number() over (partition by bookingsource, bookingtype, operatingunit order by dailyrate) as sort_asc,
row_number() over (partition by bookingsource, bookingtype, operatingunit order by dailyrate desc) as sort_desc,
dailyrate
from testmedian2
 
August 3, 2007 at 2:58 pm
DECLARE
@TCOUNT INT,
@BARCODE VARCHAR(100),
@NEWBARCODE VARCHAR(100)
BEGIN
DECLARE CFB CURSOR FOR
SELECT BARCODE FROM FOLDERSBOX ORDER BY RECORDID FOR UPDATE OF BARCODE;
OPEN CFB
FETCH FROM CFB INTO @BARCODE
WHILE @@FETCH_STATUS = 0
BEGIN
EXEC [dbo].[SPGetNextSequence] @TABLENAME = N'FOLDERSBOX',...
August 3, 2007 at 2:04 am
Running Carr's suggestion reveals that the movies are always the same for every genre.
Why? Because there is a clustered index on MovieID. That means that TOP 1 always return the...
August 3, 2007 at 1:42 am
Also asked here http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=87234
August 3, 2007 at 1:36 am
I don't think you can reseed table variables.
CREATE
table #table (primary_key INT IDENTITY(1
August 2, 2007 at 3:28 am
SELECT d.TopicID,
d.LastPosterID,
d.PostDate
FROM (
SELECT TopicID,
LastPosterID,
PostDate,
...
August 2, 2007 at 1:16 am
Viewing 15 posts - 1,426 through 1,440 (of 2,171 total)