Showing posts with label reports. Show all posts
Showing posts with label reports. Show all posts

Monday, March 26, 2012

ODBC datasource wont work on report server!!

Hi,

I have VS2005 and sql server express and ive created some reports using sql server
as a backend. everything works as it should.

THEN...

i created a report that uses a system DSN odbc source and it works in VS2005 it works fine.
i have deployed it to the report server and the datasource appears t be there, but when i try and run the report i ge the following message

  • An error has occurred during report processing.
  • An attempt has been made to use a data extension 'ODBC' that is not registered for this report server.anyone got any ideas how i can make this work? i have tried to find an explanation using google, but i cannot seem to see any thing that answers the question.

    Regards,

    Russ
    Express versions of Reporting Services allow for data sources to only be local and must be a matching SKU of SQL Server.

  • ODBC datasource / dataset problem

    Hi,
    I'm using the Visual Studio designer to create my RS reports. When I
    add a new project to the solution, the new project wizard allows me to
    choose ODBC as the datasource type I want to use. However, I amn't
    given the ODBC option when I try to add a datasource to an existing
    project. I work around this by copying and manually editing the ODBC
    .rds file that was created by the new project wizard. Does anyone know
    "the right way" to add an ODBC datasource to a project without using
    the project wizard? I'm a bit concerned about my workaround because I
    now have multiple .rds files in the same project with the same
    <DataSourceID>.
    Also, I don't know if this problem is caused by my workaround, but when
    I use the "hacked" .rds file as a report's datasource and open the
    "Data" tab I see the message:
    "The query could not be loaded. Verify your connection string and query
    string"
    The report still runs fine, and if I open the "Generic Query Designer"
    (in the "Data" tab), the query appears, and returns results if I click
    the "!" button.
    Thanks in advance,
    DonRight click on shared data sources, add new data source. When the data link
    properties box comes up it is on the connection tab, click on the Provider
    tab where you can now pick ODBC.
    Bruce Loehle-Conger
    MVP SQL Server Reporting Services
    "Don" <donalmurtagh@.yahoo.co.uk> wrote in message
    news:1127296726.880744.15570@.g44g2000cwa.googlegroups.com...
    > Hi,
    > I'm using the Visual Studio designer to create my RS reports. When I
    > add a new project to the solution, the new project wizard allows me to
    > choose ODBC as the datasource type I want to use. However, I amn't
    > given the ODBC option when I try to add a datasource to an existing
    > project. I work around this by copying and manually editing the ODBC
    > .rds file that was created by the new project wizard. Does anyone know
    > "the right way" to add an ODBC datasource to a project without using
    > the project wizard? I'm a bit concerned about my workaround because I
    > now have multiple .rds files in the same project with the same
    > <DataSourceID>.
    >
    > Also, I don't know if this problem is caused by my workaround, but when
    > I use the "hacked" .rds file as a report's datasource and open the
    > "Data" tab I see the message:
    > "The query could not be loaded. Verify your connection string and query
    > string"
    > The report still runs fine, and if I open the "Generic Query Designer"
    > (in the "Data" tab), the query appears, and returns results if I click
    > the "!" button.
    >
    > Thanks in advance,
    > Don
    >

    Friday, March 23, 2012

    ODBC connection prompting for 'sa' password

    We use Pivot Tables in Excel to provide users with reports. The Pivot Tables connect to SQL Server via an ODBC connection. In the ODBC connection, SQL Server authentication is specified and the 'sa' user name and password are entered. In prior versions
    of Excel, the password would be saved in the Pivot Table. However, in Excel 2003 the user is prompted to enter the 'sa' password in order for the pivot table to update. Is there a way to have Excel 2003 pivot tables function as they did in prior versio
    ns so that the password in the ODBC connection does not have to be re-entered?
    Don't know much about Excel. But can you create another account (not sa)
    to access the DB? This way you can keep your sa password secret.
    Eric
    Mike wrote:

    > We use Pivot Tables in Excel to provide users with reports. The Pivot Tables connect to SQL Server via an ODBC connection. In the ODBC connection, SQL Server authentication is specified and the 'sa' user name and password are entered. In prior versio
    ns of Excel, the password would be saved in the Pivot Table. However, in Excel 2003 the user is prompted to enter the 'sa' password in order for the pivot table to update. Is there a way to have Excel 2003 pivot tables function as they did in prior vers
    ions so that the password in the ODBC connection does not have to be re-entered?
    Eric Li
    SQL DBA
    MCDBA

    Monday, March 19, 2012

    ODBC call failed

    Hello,
    I use Linked Tables to connect to my SQL Server database.
    I have a number of reports which worked fine when I was
    using test data (few thousand records).
    I just loaded in a million records and ran a report, and
    received the following error:
    ODBC call failed
    when running this query:
    SELECT regionorder, Regions3, 1 As Quarter, January as
    A, February as B, March as C FROM
    RegionofResidenceCrosstab
    UNION ALL
    SELECT regionorder, Regions3, 2 As Quarter, April, May,
    June FROM RegionofResidenceCrosstab
    UNION ALL
    SELECT regionorder, Regions3, 3 As Quarter, July, August,
    September FROM RegionofResidenceCrosstab
    UNION ALL SELECT regionorder, Regions3, 4 As Quarter,
    October, November, December FROM
    RegionofResidenceCrosstab;
    RegionofResidenceCrosstab looks like this:
    TRANSFORM "~" & Count(IIf(DatePart('yyyy',
    & #91;F_ARRV_DAT],1,0)=forms!DateRangePrev
    iousCurrentYear!
    PrevYear,[Final_Clean Tourists Query].[TRAV-KEY])) & "~"
    & Count(IIf(DatePart('yyyy',[F_ARRV_DAT],1,0)=forms!
    DateRangePreviousCurrentYear!CurrYear,[Final_Clean
    Tourists Query].[TRAV-KEY])) AS Expr1
    SELECT [Final_Clean Tourists Query].REGIONS3,
    [Final_Clean Tourists Query].regionorder
    FROM [Final_Clean Tourists Query]
    WHERE [Final_Clean Tourists Query].REGIONS3<>''
    GROUP BY [Final_Clean Tourists Query].regionorder,
    [Final_Clean Tourists Query].REGIONS3
    PIVOT Format([F_ARRV_DAT],"mmmm") in
    ("January", "February", "March", "April","May","June","Jul
    y","August","September","October","November","December");
    1. I am wondering if the query is not simply timing out.
    2. Given that these queries were written for MS Access
    maybe I need to convert them into stored procedures to be
    called by the report.
    Any other suggestions?Your particular query is way too much for Access to handle. The UNION
    clauses are causing all rows to be fetched locally into Access for
    processing. Then Access tries to run the IIf and other functions on
    each row, one row at a time. So the answer is, yes indeedy, you need
    to convert this monster query to a stored procedure, which you can
    then call from a pass-through query that you can base the report on.
    One other point -- Keep all format functions and the like in the
    report itself, don't put those in the stored procedure. You'll just
    slow down the execution of the stored procedure, and the report has to
    process each line in the result set one at a time anyway. What you
    want to do is let the stored procedure do all the data processing,
    hand the result set back to Access, and let Access do the
    presentation.
    -- Mary
    Microsoft Access Developer's Guide to SQL Server
    http://www.amazon.com/exec/obidos/ASIN/0672319446
    On Fri, 19 Mar 2004 09:20:34 -0800, "blinton25"
    <blinton25@.hotmail.com> wrote:

    >Hello,
    >I use Linked Tables to connect to my SQL Server database.
    >I have a number of reports which worked fine when I was
    >using test data (few thousand records).
    >I just loaded in a million records and ran a report, and
    >received the following error:
    >ODBC call failed
    >when running this query:
    >SELECT regionorder, Regions3, 1 As Quarter, January as
    >A, February as B, March as C FROM
    >RegionofResidenceCrosstab
    >UNION ALL
    >SELECT regionorder, Regions3, 2 As Quarter, April, May,
    >June FROM RegionofResidenceCrosstab
    >UNION ALL
    >SELECT regionorder, Regions3, 3 As Quarter, July, August,
    >September FROM RegionofResidenceCrosstab
    >UNION ALL SELECT regionorder, Regions3, 4 As Quarter,
    >October, November, December FROM
    >RegionofResidenceCrosstab;
    >RegionofResidenceCrosstab looks like this:
    >TRANSFORM "~" & Count(IIf(DatePart('yyyy',
    >& #91;F_ARRV_DAT],1,0)=forms!DateRangePrev
    iousCurrentYear!
    >PrevYear,[Final_Clean Tourists Query].[TRAV-KEY])) & "~"
    >& Count(IIf(DatePart('yyyy',[F_ARRV_DAT],1,0)=forms!
    >DateRangePreviousCurrentYear!CurrYear,[Final_Clean
    >Tourists Query].[TRAV-KEY])) AS Expr1
    >SELECT [Final_Clean Tourists Query].REGIONS3,
    >[Final_Clean Tourists Query].regionorder
    >FROM [Final_Clean Tourists Query]
    >WHERE [Final_Clean Tourists Query].REGIONS3<>''
    >GROUP BY [Final_Clean Tourists Query].regionorder,
    >[Final_Clean Tourists Query].REGIONS3
    >PIVOT Format([F_ARRV_DAT],"mmmm") in
    >("January", "February", "March", "April","May","June","Jul
    >y","August","September","October","November","December");
    >
    >1. I am wondering if the query is not simply timing out.
    >2. Given that these queries were written for MS Access
    >maybe I need to convert them into stored procedures to be
    >called by the report.
    >Any other suggestions?
    >|||Hi,
    Thanks for the pointers, guess I have my work cut out for
    me. I may also try upsizing to an ADP to try to improve
    performance.

    >--Original Message--
    >Your particular query is way too much for Access to
    handle. The UNION
    >clauses are causing all rows to be fetched locally into
    Access for
    >processing. Then Access tries to run the IIf and other
    functions on
    >each row, one row at a time. So the answer is, yes
    indeedy, you need
    >to convert this monster query to a stored procedure,
    which you can
    >then call from a pass-through query that you can base the
    report on.
    >One other point -- Keep all format functions and the like
    in the
    >report itself, don't put those in the stored procedure.
    You'll just
    >slow down the execution of the stored procedure, and the
    report has to
    >process each line in the result set one at a time anyway.
    What you
    >want to do is let the stored procedure do all the data
    processing,
    >hand the result set back to Access, and let Access do the
    >presentation.
    >-- Mary
    >Microsoft Access Developer's Guide to SQL Server
    >http://www.amazon.com/exec/obidos/ASIN/0672319446
    >On Fri, 19 Mar 2004 09:20:34 -0800, "blinton25"
    ><blinton25@.hotmail.com> wrote:
    >
    database.
    August,
    ("January", "February", "March", "April","May","June","Jul
    be
    >.
    >|||You will gain nothing in performance simply from upsizing to an ADP.
    There's nothing magical about an ADP vs. an mbd with linked tables --
    you're going to need to rewrite your app no matter which way you slice
    it. You'll still need to re-do that query as a proc (since there's no
    such thing as a saved query in an ADP anyway). What you give up in an
    ADP is a lot of flexibility (local storage, queries, etc.). Also,
    forms work differently by fetching snapshots, not dynasets. There's
    simply no easy way to upsize a large, complex Jet app that doesn't
    involve a re-write.
    -- Mary
    Microsoft Access Developer's Guide to SQL Server
    http://www.amazon.com/exec/obidos/ASIN/0672319446
    On Sat, 20 Mar 2004 10:24:00 -0800, "blinton25"
    <blinton25@.hotmail.com> wrote:
    >Hi,
    >Thanks for the pointers, guess I have my work cut out for
    >me. I may also try upsizing to an ADP to try to improve
    >performance.
    >
    >handle. The UNION
    >Access for
    >functions on
    >indeedy, you need
    >which you can
    >report on.
    >in the
    >You'll just
    >report has to
    >What you
    >processing,
    >database.
    >August,
    >("January", "February", "March", "April","May","June","Jul
    >be|||Hello,
    Sorry, I am looking at performance in terms of moving
    processing to the server versus the client and reducing
    network traffic. Understood that I will have to rewrite
    the queries as stored procedures, and initially will do
    this and then pass through to the stored Proc.
    Doing some reading at:
    http://www.upsizewizard.com/Reference_Page.htm
    http://www.granite.ab.ca/access/sqlserverupsizing.htm
    to help me understand some approaches to achieving my
    goals.
    Thanks again for the guidance.

    >--Original Message--
    >You will gain nothing in performance simply from
    upsizing to an ADP.
    >There's nothing magical about an ADP vs. an mbd with
    linked tables --
    >you're going to need to rewrite your app no matter which
    way you slice
    >it. You'll still need to re-do that query as a proc
    (since there's no
    >such thing as a saved query in an ADP anyway). What you
    give up in an
    >ADP is a lot of flexibility (local storage, queries,
    etc.). Also,
    >forms work differently by fetching snapshots, not
    dynasets. There's
    >simply no easy way to upsize a large, complex Jet app
    that doesn't
    >involve a re-write.
    >-- Mary
    >Microsoft Access Developer's Guide to SQL Server
    >http://www.amazon.com/exec/obidos/ASIN/0672319446
    >On Sat, 20 Mar 2004 10:24:00 -0800, "blinton25"
    ><blinton25@.hotmail.com> wrote:
    >
    for
    into
    the
    like
    procedure.
    the
    anyway.
    the
    was
    and
    as
    May,
    Quarter,
    & "~"
    ("January", "February", "March", "April","May","June","Jul
    ");
    out.
    Access
    to
    >.
    >|||I understood that -- I was just saying that you gain nothing in terms
    of performance from an ADP that you can't also achieve with an mdb
    front-end. The key is fetching only needed data on the client, and an
    mdb gives you a lot more options for caching static data locally, etc.
    The first link you reference in your post does not answer the question
    it poses "why ADP" other than to spout generalities about
    client-server being faster. What the Access team itself is saying (at
    recent conferences) is that they are recommending mdb over adp because
    you give up so much flexibility with an adp. Performance is very much
    dependent on factors such as efficient database design, avoidance of
    concurrency conflicts, fetching less data, network speed and other
    factors that have nothing to do with the client software. It's good
    that you're doing reading up on the subject before leaping in, just be
    aware that not everything you read is necessarily true or accurate.
    -- Mary
    Microsoft Access Developer's Guide to SQL Server
    http://www.amazon.com/exec/obidos/ASIN/0672319446
    On Sun, 21 Mar 2004 09:12:30 -0800, "blinton25"
    <blinton25@.hotmail.com> wrote:
    >Hello,
    >Sorry, I am looking at performance in terms of moving
    >processing to the server versus the client and reducing
    >network traffic. Understood that I will have to rewrite
    >the queries as stored procedures, and initially will do
    >this and then pass through to the stored Proc.
    >Doing some reading at:
    >http://www.upsizewizard.com/Reference_Page.htm
    >http://www.granite.ab.ca/access/sqlserverupsizing.htm
    >to help me understand some approaches to achieving my
    >goals.
    >Thanks again for the guidance.
    >
    >upsizing to an ADP.
    >linked tables --
    >way you slice
    >(since there's no
    >give up in an
    >etc.). Also,
    >dynasets. There's
    >that doesn't
    >for
    >into
    >the
    >like
    >procedure.
    >the
    >anyway.
    >the
    >was
    >and
    >as
    >May,
    >Quarter,
    >& "~"
    >("January", "February", "March", "April","May","June","Jul
    >");
    >out.
    >Access
    >to

    Monday, March 12, 2012

    Odbc and deployment

    I've created several reports, using ODBC to an external data source, and they
    preview just fine in Visual Studio 2003. However, when I deploy the reports,
    open Report Manager, and select a report to run I get:
    An error has occurred during report processing. (rsProcessingAborted) Get
    Online Help
    Cannot create a connection to data source 'DataSource1'.
    (rsErrorOpeningConnection) Get Online Help
    ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found
    and no default driver specified
    I'm wondering why the datasource doesn't work on deployment (the Odbc driver
    is a "User" dsn). Everything is on my "localhost" machine.
    Any help is appreciated. Thanks,
    BillReport Services user is not you. Make your ODBC dsn a machine dsn and your
    problem will go away.
    --
    Bruce Loehle-Conger
    MVP SQL Server Reporting Services
    "Bill H" <BillH@.discussions.microsoft.com> wrote in message
    news:1342D1A4-6D41-4BAD-A165-451130EB714A@.microsoft.com...
    > I've created several reports, using ODBC to an external data source, and
    > they
    > preview just fine in Visual Studio 2003. However, when I deploy the
    > reports,
    > open Report Manager, and select a report to run I get:
    > An error has occurred during report processing. (rsProcessingAborted) Get
    > Online Help
    > Cannot create a connection to data source 'DataSource1'.
    > (rsErrorOpeningConnection) Get Online Help
    > ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found
    > and no default driver specified
    > I'm wondering why the datasource doesn't work on deployment (the Odbc
    > driver
    > is a "User" dsn). Everything is on my "localhost" machine.
    > Any help is appreciated. Thanks,
    > Bill|||I have the same problem. My dsn is a system dsn but it still won't work when
    I deploy... same error message as described below. Any other ideas? Is it
    anything to do with the windows accounts used by the relevant IIS folders?
    Rob
    "Bruce L-C [MVP]" wrote:
    > Report Services user is not you. Make your ODBC dsn a machine dsn and your
    > problem will go away.
    > --
    > Bruce Loehle-Conger
    > MVP SQL Server Reporting Services
    >
    > "Bill H" <BillH@.discussions.microsoft.com> wrote in message
    > news:1342D1A4-6D41-4BAD-A165-451130EB714A@.microsoft.com...
    > > I've created several reports, using ODBC to an external data source, and
    > > they
    > > preview just fine in Visual Studio 2003. However, when I deploy the
    > > reports,
    > > open Report Manager, and select a report to run I get:
    > >
    > > An error has occurred during report processing. (rsProcessingAborted) Get
    > > Online Help
    > > Cannot create a connection to data source 'DataSource1'.
    > > (rsErrorOpeningConnection) Get Online Help
    > > ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found
    > > and no default driver specified
    > >
    > > I'm wondering why the datasource doesn't work on deployment (the Odbc
    > > driver
    > > is a "User" dsn). Everything is on my "localhost" machine.
    > >
    > > Any help is appreciated. Thanks,
    > >
    > > Bill
    >
    >|||Check out the credentials tab of your data source.
    Bruce Loehle-Conger
    MVP SQL Server Reporting Services
    "Rob Sykes" <RobSykes@.discussions.microsoft.com> wrote in message
    news:255CDDC7-811D-4DDF-B963-4391BE127640@.microsoft.com...
    >I have the same problem. My dsn is a system dsn but it still won't work
    >when
    > I deploy... same error message as described below. Any other ideas? Is
    > it
    > anything to do with the windows accounts used by the relevant IIS folders?
    > Rob
    > "Bruce L-C [MVP]" wrote:
    >> Report Services user is not you. Make your ODBC dsn a machine dsn and
    >> your
    >> problem will go away.
    >> --
    >> Bruce Loehle-Conger
    >> MVP SQL Server Reporting Services
    >>
    >> "Bill H" <BillH@.discussions.microsoft.com> wrote in message
    >> news:1342D1A4-6D41-4BAD-A165-451130EB714A@.microsoft.com...
    >> > I've created several reports, using ODBC to an external data source,
    >> > and
    >> > they
    >> > preview just fine in Visual Studio 2003. However, when I deploy the
    >> > reports,
    >> > open Report Manager, and select a report to run I get:
    >> >
    >> > An error has occurred during report processing. (rsProcessingAborted)
    >> > Get
    >> > Online Help
    >> > Cannot create a connection to data source 'DataSource1'.
    >> > (rsErrorOpeningConnection) Get Online Help
    >> > ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not
    >> > found
    >> > and no default driver specified
    >> >
    >> > I'm wondering why the datasource doesn't work on deployment (the Odbc
    >> > driver
    >> > is a "User" dsn). Everything is on my "localhost" machine.
    >> >
    >> > Any help is appreciated. Thanks,
    >> >
    >> > Bill
    >>

    Friday, March 9, 2012

    Occasional record fails to merge replicate, but SQL Server reports no errors

    Rob,
    I have seen this happen in 2 circumstances:
    (1) Firstly when the filter was set to 1=2 and inserts
    were made while the merge agent was running
    (2) Secondly, if you bulk insert the rows and choose the
    defaults, then FIRE_TRIGGERS is false and consequently
    the rows are not added to MSmerge_contents.
    In either case, you need to run sp_addtabletocontents to
    include the rows then resynchronise. Alternatively you
    can use sp_mergedummyupdate for a single row.
    For your case I'd first check to see if there are
    corresponding records in MSmerge_contents - ie did the
    triggers fire? This should help narrow things down.
    HTH,
    Paul Ibison SQL Server MVP, www.replicationanswers.com
    (recommended sql server 2000 replication book:
    http://www.nwsu.com/0974973602p.html)
    Paul, thanks for the quick reply. I have no filters on the merge and do not
    do any bulk inserts, but I will take your suggestion and review
    msmerge_contents next time this occurs.
    Rob Kraft
    "Paul Ibison" <Paul.Ibison@.Pygmalion.Com> wrote in message
    news:2dd801c4c0fd$22539b60$a601280a@.phx.gbl...
    > Rob,
    > I have seen this happen in 2 circumstances:
    > (1) Firstly when the filter was set to 1=2 and inserts
    > were made while the merge agent was running
    > (2) Secondly, if you bulk insert the rows and choose the
    > defaults, then FIRE_TRIGGERS is false and consequently
    > the rows are not added to MSmerge_contents.
    > In either case, you need to run sp_addtabletocontents to
    > include the rows then resynchronise. Alternatively you
    > can use sp_mergedummyupdate for a single row.
    > For your case I'd first check to see if there are
    > corresponding records in MSmerge_contents - ie did the
    > triggers fire? This should help narrow things down.
    > HTH,
    > Paul Ibison SQL Server MVP, www.replicationanswers.com
    > (recommended sql server 2000 replication book:
    > http://www.nwsu.com/0974973602p.html)
    >
    >

    Monday, February 20, 2012

    Obscuring T-SQL code from RDL File and SQL Server

    I would like to write some reports that will query T-SQL for information, but
    I don't what anyone to be able to see the T-SQL code. So I can not store the
    T-SQLin the RDL file, or put it in a SP. Also can't even use and encrypted
    SP because someone would have to have the source code to create the T-SQL.
    So what options are available to hide the T-SQL code, but not allow anyone to
    see it, or change it?On Apr 17, 7:50 pm, Greg Larsen <gregalar...@.removeit.msn.com> wrote:
    > I would like to write some reports that will query T-SQL for information, but
    > I don't what anyone to be able to see the T-SQL code. So I can not store the
    > T-SQLin the RDL file, or put it in a SP. Also can't even use and encrypted
    > SP because someone would have to have the source code to create the T-SQL.
    > So what options are available to hide the T-SQL code, but not allow anyone to
    > see it, or change it?
    As far as I know, there is not really much else that can be done to
    restrict access to the T-SQL or stored procedure(s). Sorry that I
    could not be of further assistance.
    Regards,
    Enrique Martinez
    Sr. Software Consultant|||I would guess if a compiled piece of code could be used as a datasource then
    potentially this might work. Don't suppose you know how to create a piece of
    compiled code that can be used as a data source to a reporting services
    report.
    "EMartinez" wrote:
    > On Apr 17, 7:50 pm, Greg Larsen <gregalar...@.removeit.msn.com> wrote:
    > > I would like to write some reports that will query T-SQL for information, but
    > > I don't what anyone to be able to see the T-SQL code. So I can not store the
    > > T-SQLin the RDL file, or put it in a SP. Also can't even use and encrypted
    > > SP because someone would have to have the source code to create the T-SQL.
    > > So what options are available to hide the T-SQL code, but not allow anyone to
    > > see it, or change it?
    > As far as I know, there is not really much else that can be done to
    > restrict access to the T-SQL or stored procedure(s). Sorry that I
    > could not be of further assistance.
    > Regards,
    > Enrique Martinez
    > Sr. Software Consultant
    >