Forum Replies Created

Viewing 15 posts - 3,046 through 3,060 (of 3,396 total)

  • RE: Access 2010 and MS SQL Server 08 r2

    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...

  • RE: SSRS Expressions

    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...

  • RE: FINDING THE DATE WHICH IS NEAREST TO CURRENT DATE

    This is a double-post... here's the original

  • RE: Two results

    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...

  • RE: Two results

    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...

  • RE: FINDING THE DATE WHICH IS NEAREST TO CURRENT DATE

    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...

  • RE: FINDING THE DATE WHICH IS NEAREST TO CURRENT DATE

    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...

  • RE: select from two tables and get count of records in joined table that match

    If you're using 2012, then you can use PARTITION and COUNT, then you don't need GROUP BY.

  • RE: select from two tables and get count of records in joined table that match

    robert.wiglesworth (1/30/2014)


    I am trying to create a query that will give me customer and order information the scenario is this:

    TableA has customer information such as:

    CustomerNumber

    Firstname

    Lastname

    Address

    City

    State

    Zip

    TableB has order information...

  • RE: Call parameter from MS Access 2010 form in SQLServer 2012

    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...

  • RE: variable file name in openrowset

    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...

  • RE: group by column as sub header

    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...

  • RE: Combine Multiple SSRS Reports

    You can create one "outer" report that acts as a container for the subreports, and then use a tablix for the subreports (or just place them, if you want) ...

  • RE: Combine Multiple SSRS Reports

    , i have tried to use sub reports but not able to split the data within subreports for specific customers.

    If your main report is just (CustomerID, CustomerName, OrderCount, OrderDate)

    and your...

  • RE: ssrs 2008 r2 dataset tied to main sql

    The query is basically "asking" which column to total, and then setting the query up to accomplish that. It's just a slightly more advanced version of using parameters.

    It's saying...

Viewing 15 posts - 3,046 through 3,060 (of 3,396 total)