Viewing 15 posts - 346 through 360 (of 2,006 total)
PiMané (1/31/2013)
DBCC UPDATEUSAGE is...
January 31, 2013 at 8:17 am
PiMané (1/31/2013)
is the sys.partitions table always "reliable" as for the number of rows?
It's reliable as an approximate count for an individual table or index. You may be able to...
January 31, 2013 at 8:00 am
Abu Dina (1/31/2013)
This I've answered my own question with this:
select postcode, LEFT(postcode,LEN(postcode)-3) + ' ' + RIGHT(postcode,3)from flatrecord_SemiPerm
where PATINDEX('[A-Z][A-Z][0-9][0-9][0-9][A-Z]%', postcode) > 0
What country are you doing? I'm going to assume...
January 31, 2013 at 3:24 am
It has been awhile since I've done any VB.net, but don't you need a WithEvents variable?
e.g.
Dim WithEvents ev As New EventClass
Sub TestEvents()
ev.RaiseEvents()
End Sub
Sub ev_EventHandler() Handles ev.XEvent,...
January 16, 2013 at 5:31 am
Facebook terms of service states: -
Safety
January 16, 2013 at 5:10 am
A friend works somewhere with a DA (Data Administrator) in addition to three DBAs (Production, Development & Backup). All four are heads of small teams. Admittedly, I've never worked anywhere...
January 16, 2013 at 4:57 am
Jeff Moden (1/9/2013)
January 11, 2013 at 3:15 am
In your description, you've not described any use for the table "taxes".
This fulfils your description: -
SELECT *
FROM (SELECT co.company, co.location, co.order_no,
CAST(co.order_qty AS INT)...
January 11, 2013 at 3:01 am
Did anyone get anywhere with this?
January 8, 2013 at 7:43 am
10e5x (1/4/2013)
January 4, 2013 at 9:15 am
Lynn Pettis (1/4/2013)
Actually:
DELETE FROM TABLE WHERE (CREATION_D = DATEADD(DAY, DATEDIFF(DAY, 0, ?? ), 0));
SET NOCOUNT ON;
DECLARE @a DATETIME;
SET @a = GETDATE();
--First
SELECT DATEADD(DAY, 0, DATEDIFF(DAY, 0, @a ));
--Second
SELECT DATEADD(DAY, DATEDIFF(DAY, 0,...
January 4, 2013 at 8:58 am
10e5x (1/4/2013)
Delete from TABLE where (CREATION_D = ?)
CREATION_D is the column i am discussing...
January 4, 2013 at 8:51 am
Grinja (12/21/2012)
--Load sample data
CREATE TABLE #Invoice (ID INT, InvoiceNumber INT, Created DATETIME)
INSERT INTO #Invoice
SELECT 6,125870808, '2012-12-18 15:45:30.000'
UNION ALL
SELECT 5,125870808, '2012-12-18 12:23:27.000'
UNION ALL
SELECT 4,125870808, '2012-12-18 06:45:06.000'
UNION ALL
SELECT 3,125870808,...
December 21, 2012 at 4:51 am
dwain.c (12/20/2012)
vinu512 (12/20/2012)
dwain.c (12/19/2012)
Since quote is also CHAR(25), you can also do this:CHARINDEX(CHAR(25), string_column) > 0
Single Quote is char(39) Dwain......if I am not wrong. 😉
Looked like a single quote when...
December 21, 2012 at 4:11 am
davidandrews13 (12/21/2012)
http://en.wikipedia.org/wiki/Sargable
and didn't quite understand this line
The typical thing that will make a sql query non-sargable is to include a function in...
December 21, 2012 at 3:54 am
Viewing 15 posts - 346 through 360 (of 2,006 total)