Viewing 15 posts - 11,221 through 11,235 (of 26,486 total)
dustinprevatt (6/20/2012)
select *
from table where cast (postdate AS int(128)) between ({fn Curdate()}) and ({fn Curdate()}) + ({fn minute(1439)})
I originally had this
select *
from table...
June 20, 2012 at 8:59 am
I thought I'd look at the resource database on one of our development servers, it is only 60.5 MB (63,438,848 bytes) in size.
For it to be 69GB seems really...
June 19, 2012 at 4:00 pm
We need to see how the data is related between the two tables to be able to help you.
June 19, 2012 at 3:40 pm
If you have Jeff's split function, this works:
DECLARE @TestStr VARCHAR(128);
SET @TestStr = '/DBNAME/TEST DATA/PRODUCTION_CONTROL ';
SELECT * FROM dbo.DelimitedSplit8K(@TestStr,'/') WHERE ItemNumber = 3;
Jeff's function if you don't:
USE [Sandbox]
GO
/****** Object: UserDefinedFunction...
June 19, 2012 at 3:11 pm
TravisDBA (6/19/2012)
Here is a real good example of the difference between taking a calculated risk in life and just being plain stupid. 😀http://www.sun-sentinel.com/news/broward/fl-cellphone-robber-folo-20120619,0,654321.story
If you used the url /url ifcode short...
June 19, 2012 at 3:03 pm
krypto69 (6/19/2012)
Did you force a failover or did you break the mirror then do a restore database with recovery on the mirror database to bring it live?
Lets say the power...
June 19, 2012 at 2:49 pm
CELKO (6/17/2012)
Floating point math...
June 19, 2012 at 2:41 pm
The witness, by the way, has nothing to do with transferring transactions. It sole purpose in life is to automate the failover from the principal to mirror database.
June 19, 2012 at 2:31 pm
krypto69 (6/19/2012)
That sounds like a misconfigured environment. Mirroring won't require setting up from scratch unless people break the mirroring instead of failing over.
Maybe then I'm doing something incorrectly..
I have...
June 19, 2012 at 2:30 pm
Well, with no details from which to work, here is a shot in the dark.
WITH basedata AS (
SELECT
ROW_NUMBER() OVER (PARTITION BY ProductID ORDER BY ReceiptDate DESC)...
June 19, 2012 at 2:23 pm
krypto69 (6/19/2012)
If I read this correctly, asyncronous mirroring is only possible with Enterprise Edition. Using Standard Edition you must use syncronous mirroring (with or without a witness).
Okay..
I'm stuck with using...
June 19, 2012 at 2:12 pm
Or this.
DECLARE @TestStr VARCHAR(20),
@CharToFind CHAR(1);
SET @TestStr = 'This is a string';
SET @CharToFind = ' ';
WITH
e1(n) AS (SELECT 1...
June 19, 2012 at 2:05 pm
This is something that may be better handled in an application of perhaps a CLR aggregate function of some sort.
Reminds me of something used for packaging parts, looking for the...
June 19, 2012 at 1:29 pm
If I may, what is the business case for this? I don't understand why you would be looking for a set of unrelated items whose sum(quantity) = aconstantvalue.
June 19, 2012 at 1:15 pm
hi2u (6/19/2012)
Create a table with an Identity column, insert data / restart the server / insert more data / restart the server/ insert some more data.
My data looks like...
June 19, 2012 at 1:09 pm
Viewing 15 posts - 11,221 through 11,235 (of 26,486 total)