Viewing 15 posts - 3,121 through 3,135 (of 3,475 total)
Yep, makes it MUCH easier to see what you were doing wrong. Way to go, young Jedi.
February 7, 2014 at 5:08 pm
You could do it inside a stored procedure, and then grant the right to execute said stored procedure to whoever you wanted. You could add EXECUTE AS <user> inside...
February 6, 2014 at 9:58 pm
The problem is that you left out the other INNER JOIN statements:
...
FROM
vt_animals as A
INNER JOIN
vt_exam_headers as EH...
February 6, 2014 at 7:29 pm
You might want to see if you can find the last version of Access Developer's Handbook, Enterprise Edition The first volume is Desktop, and you don't want that, I...
February 4, 2014 at 7:12 pm
Something like....
DECLARE @TextString VARCHAR(100) = 'ACCOUNTANTS:- Signal Chartered Accountants @@ Individual:Mark John-Wilkinson';
DECLARE @StartPos INT,
@EndPos INT;
SELECT @EndPos = CHARINDEX('@@',@TextString);
SELECT @StartPos = CHARINDEX(':-',@TextString)+2;
PRINT @StartPos;
PRINT @EndPos;
SELECT RTRIM(LTRIM(SUBSTRING(@TextString,@StartPos,@EndPos-@StartPos)));
Returns:Signal Chartered Accountants
You should be able...
February 3, 2014 at 9:26 pm
February 2, 2014 at 7:37 pm
Wouldn't OR'ing the two filters together do it?
SELECT i.Configurtation_Item, COUNT(i.ID) AS CountID, I.Sub_Category
FROM ConfigIssues AS i
WHERE Configuration_Item LIKE '%outlook%' AND (Sub_Category LIKE '%Emails %' OR Sub_Category LIKE '%Managers %')
GROUP BY...
February 2, 2014 at 7:27 pm
Wouldn't OR'ing the two filters together do it?
SELECT i.Configurtation_Item, COUNT(i.ID) AS CountID, I.Sub_Category
FROM ConfigIssues AS i
WHERE Configuration_Item LIKE '%outlook%' AND (Sub_Category LIKE '%Emails %' OR Sub_Category LIKE '%Managers %')
GROUP BY...
February 2, 2014 at 7:25 pm
sure enough... must be getting old... forgot that my Tally table is indexed, so that caused me to overlook it.
Definitely need an ORDER BY clause! TOP VALUES without an...
February 2, 2014 at 5:51 pm
Here's an example... I'm just creating a bunch of dates from a table of numbers.
SELECT TOP 1 SomeDate, N
FROM
(SELECT DATEADD(dd,n,'1-1-2010') AS SomeDate, n
FROM dbo.Tally) x
WHERE SomeDate<=GETDATE();
What you want is...
February 2, 2014 at 4:03 pm
If you're using 2012, then you can use PARTITION and COUNT, then you don't need GROUP BY.
January 30, 2014 at 12:30 pm
robert.wiglesworth (1/30/2014)
TableA has customer information such as:
CustomerNumber
Firstname
Lastname
Address
City
State
Zip
TableB has order information...
January 30, 2014 at 11:12 am
This post might help a little:
They discuss calling SQL Server stored procedures from an Access front end. One of the last commenters is Van Dinh, who at least used...
January 29, 2014 at 4:23 pm
Does this work? The SQL returns what I want it to...
DECLARE @sql varchar(1000); -- just a variable to stuff the completed SQL statement into.
declare @curDate nvarchar(8)
declare @filePath VARCHAR(500)
set...
January 28, 2014 at 1:28 pm
If you do this in Reporting Services, it's simple.
create a data source that points to your database,
then a dataset that points to this query
then add a tablix and add a...
January 28, 2014 at 7:35 am
Viewing 15 posts - 3,121 through 3,135 (of 3,475 total)