Viewing 15 posts - 886 through 900 (of 1,473 total)
ak (12/17/2008)
As to the reason for asking....a client has suggested that they suspect rows are mysteriously disappearing from a...
December 18, 2008 at 5:52 am
Also, if it is actually a TEXT field, just change the RIGHT to a substring
SELECT SUBSTRING(AText,PATINDEX('%X-Ray%',AText)+5,DATALENGTH(AText)-PATINDEX('%X-Ray%',AText)-5)
December 17, 2008 at 1:43 pm
Something like this?
DECLARE @A TABLE(
ATextvarchar(1000))
INSERT INTO @A(AText)
VALUES('This is some sample text. It is almost ChristmasTime! X-Ray Results look uh... good... (I''m a programmer, not a doctor)')
INSERT INTO @A(AText)
VALUES('This...
December 17, 2008 at 1:40 pm
This is just a preliminary guess...
Although *you* can access the share... can the sql server login account that is doing the backups access it?
December 17, 2008 at 10:43 am
Jason White (12/17/2008)
December 17, 2008 at 10:39 am
Please refer to the link in my signature for an example of how to supply table structure and sample data for this request. What version of SQL Server are...
December 17, 2008 at 8:07 am
First of all, please post SQL 2000 topics in the appropriate forum. This is a 2K5 forum. (Don't repost this, just try to post in the right one...
December 17, 2008 at 8:05 am
Jason White (12/17/2008)
Here's what I've figured out after needing to split a date and time that should have been stored separately from the start.
I see no reasons listed why you'd...
December 17, 2008 at 8:02 am
jcrawf02 (12/17/2008)
mcphillipsjohn (12/17/2008)
3. I have noticed it's more common to use the JOIN keyword, I just learned it the other way and find it hard to break the habit. Maybe...
December 17, 2008 at 7:04 am
b.b (12/17/2008)
December 17, 2008 at 6:27 am
You can do it, you just need to create your temp table explicity, and not using a 'select into' from the dynamic sql (as it's not in the scope of...
December 16, 2008 at 11:05 pm
So, let me make sure I understand. You've written a recursive, cursor driven dynamic sql query... on purpose?
December 16, 2008 at 11:12 am
Looks good John. A few comments:
1. There's really no reason to order the data going into the table variables, it just adds cycles to your query.
2. You...
December 16, 2008 at 8:37 am
Try this one?
[font="Courier New"]SELECT -- 1
RRSPRB1.LRETAIL,
RRSINV1.INVCAT,
RRSINV1.BARCODE,
RRSINV1.PRIMVENREF,
RRSINV1.CONFACT,
RRSINV1.PACKQTY,
RRSINV1.TAXABLE,
-- 2
RRSINV2.SHELFLOC,
RRSINV2.ITEMCOST,
RRSINV2.LISTPRICE,
-- 19
RRSINV19.REFERENCE,
RRSINV19.LOCATION,
RRSINV19.RECNO,
-- 20
RRSINV20.POSTED,
RRSINV20.RETPERUNIT,
RRSINV20.UNETCOST,
RRSINV20.PARTNUM,
RRSINV20.DESCRIPT,
FROM
RRSINV2
INNER JOIN RRSINV19 ON RRSINV2.LOCATION = RRSINV19.LOCATION
INNER JOIN RRSINV20 ON RRSINV2.REFERENCE = RRSINV20.PARTNUM AND RRSINV20.REFLINK = RRSINV19.RECNO
INNER JOIN RRSINV1 ON...
December 16, 2008 at 8:10 am
Can you post the solution that you've come up with?
This is another way to get the beginning of the hour from 2 days ago:
SELECT DATEADD(dd,-2,DATEADD(hh,DATEDIFF(hh,0,GETDATE()),0))
December 16, 2008 at 7:54 am
Viewing 15 posts - 886 through 900 (of 1,473 total)