Field Explorer is empty after establishing a connection to a SQL 2008 SP

I am trying to create a report using a SQL Server 2008 stored procedure as the source of data using an ADO connection.
The stored procedure is slightly odd, in that its building up the SQL as a string, Below is a snippet of the code to show what I mean. The reason for this is that I need to build up the WHERE clause dependign on user input.
     SELECT @var_query = 'SELECT  c_source,
        c_ccy,
        n_quantity,
       a_price,
       d_price,
       a_isd
                     FROM     ldsdbo.lds_testing_filter_data_vw WHERE'
     PRINT @var_query
     EXEC (@var_query)
This runs fine in SQL Server, but when I try and use it in Crystal, the Database Field list is empty.
Does anyone know whats going on, and how I can make this work?
Thanks
Nathan

Well... Now I just feel obligated to reply...
The key(s) to using an SP as your data source is to make sure that your SP does in fact return a single data set.
So... begin by testing it in SSMS. If the following works in SSMS, then it should also work in CR...
EXEC usp_MyStoredProcedure 'ParamValue1', 'PramValue2'
... note: the above example is based on the premise that the SP name is "usp_MyStoredProcedure" and you are tryig two pass 'ParamValue1' & 'PramValue2' as values...
Obviously, you should use the actual SP name and any necessary test values if it has parameters.
Assuming that the SP executes in SSMS AND returns a result set, you should be good to go in CR... Just do as Don mentioned and make sure you are using the NC10 drivers.
If you are still getting stuck, remove the SP from the Database Expert and call the SP from a Command instead. It's easy to do as it allows you to use the exact syntax you used in SSMS. You'll just want to replace any hard coded values with CR parameters... (Just add the parameters to the parameter list of the command and reference them like this...
EXEC usp_MyStoredProcedure '{?Parameter1}', '{?Parameter2}'
HTH,
Jason

Similar Messages

  • GX520 hangs after establishing server connection

    We are running ZFD 6.5 sp2 and trying to image new GX520's
    There are 21 machines all exactley the same down to every last BIOS line,
    DELL GX520.
    I used the bootcd.iso from SP2
    Set up a policy to install an image to any PC booting within a given IP
    range.
    Here is the issue:
    I installed the boot loader on all twenty PC's
    7 PC's took the image just fine
    14 hung with no error after establishing server connection and the path
    to the image.
    Zimglog.xlm shows
    - <WS DN="R3NWTS01.R3.usnrc">
    <Tree>NRC_TREE</Tree>
    <Status>Failure</Status>
    <ErrorMessage>Workstation failed to restore image as the base image
    already exists.</ErrorMessage>
    <Operation>Download</Operation>
    <ImageType>Base Image</ImageType>
    <ImagePath>\\R3NWTS01\NRC\zen-img\train2.zmg</ImagePath>
    <Timestamp>Tue Apr 11 12:13:08 2006</Timestamp>
    When I try a manual download I get "no eligible partitions to recieve
    Image"
    Any thoughts?
    Thanks
    Thomas Magee
    US NRC
    Network Manager
    [email protected]

    Tmm3,
    It appears that in the past few days you have not received a response to your posting. That concerns us, and has triggered this automated reply.
    Has your problem been resolved? If not, you might try one of the following options:
    - Do a search of our knowledgebase at http://support.novell.com/search/kb_index.jsp
    - Check all of the other support tools and options available at http://support.novell.com in both the "free product support" and "paid product support" drop down boxes.
    - You could also try posting your message again. Make sure it is posted in the correct newsgroup. (http://support.novell.com/forums)
    If this is a reply to a duplicate posting, please ignore and accept our apologies and rest assured we will issue a stern reprimand to our posting bot.
    Good luck!
    Your Novell Product Support Forums Team
    http://support.novell.com/forums/

  • Cannot connect to MS SQL 2008 R2 locally or remotely.

    When I try to connect to my SQL 2008 I get the following error:
    TITLE: Connect to Server
    Cannot connect to <machinename>.
    ADDITIONAL INFORMATION:
    A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider:
    Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) (Microsoft SQL Server, Error: 53)
    I have a SQL 2000 instance, and a SQL 2008 R2 instance, running on Windows Server 2008 R2.  The sql 2000 instance is functioning correctly, as is the management studio.  I can connect to other SQL 2008 servers, just not my local one.
    Named pipes and TCPIP are both enabled.  The SQL Browser service is running, as is the SQL Server service.
    Any assistance would be greatly appreciated.

    Hello,
    Please see the following post:
    http://blogs.msdn.com/b/sql_protocols/archive/2007/03/31/named-pipes-provider-error-40-could-not-open-a-connection-to-sql-server.aspx
    Error 53 means the instance is not reachable. Since the SQL Server 2008 instance is a named instance, verify the dynamic port is not blocked by Windows firewall. Verify again TCP/IP and Named Pipes are enabled.
    http://msdn.microsoft.com/en-us/library/ms191294.aspx
    Hope
    this helps.  
    Regards,
    Alberto Morillo
    SQLCoffee.com

  • Unable to Remote connect to a SQL 2008 server

    I just set up a virtual server with Godaddy with CF and SQL Server 2008
    The SQL server appears to be running because if I RDC into the server and connect using the Server management Studio, it works. To find the instance I have to look at network devices and I find it under MACHINENAME\SQLINSTANCE
    The problem I have is that I want to connect to this instance using server management studio on a computer with SQL2005 installed. I guess/hope that a 2005 can connect to a 2008
    I'm not 100% sure what the exact correct format is for the "Server Name" when trying to set it up. I've tried everything I can think of
    ServerName\IPNumber\Instance
    IPNumber\ServerName\Instance
    IPNumber\Instance
    Nothing seems to work, it kicks back with a big error, aying it can not connect:
    A network-related or instance-specific error occured while establishing a connection to SQL Server.
    The server was not found or was not accessible. Verify the instance name is correct and that
    SQL Server is configured to allow remote connections (provider: SQL Network Interfaces, Error: 26-
    Error Locating Server/Istance Spcified) (Microsoft SQL Server)
    The firewall on the server is off, I checked the properties of the instance and the option to allow remote connections is also checked
    Anybody have any ideas?
    Thanks
    Mark

    Solved this myself.
    I was trying to log in with the user name of the adminstrator for the server, which worked locally while on the server but when I tried to use SQL SERVER AUTHENTICATION , tapping in the user name and password, it failed in the same way, even though the password was correct. Connecting using WINDOWS AUTHENTICATION worked, so I checked the users and found that user name did not have a password set because it was the admin I guess, so it just rejected all attempts using SQL SERVER AUTHENTICATION.
    What I then did is tried the 'sa' user, and saw that it did have a password set when I viewed it in USERS... so I tried to connect remotely using that, and it worked... problem solved
    Thought I'd post that, just incase anybody else came across the problem
    After posting this I reversed a change that I had made from info found on another forum, and it stopped working! I put the change back again and it works, so it looks like a combo, here is the info that I found that helped fix the problem
    "In the SQL server configuration manager, there is an item called SQL server network configuration, under protocols, I selected the properties of the TCP/IP protocol. There is a tab “IP Addresses” there, and at the bottom of the list is an entry called IPAll. In my case the TCP port was empty. I entered the SQL standard port 1433 in there and I was able to connect."
    I had also since posting upgraded to 2008 locally, not that I believe it had anything to do with the problem
    Mark

  • Sample Servlet code that connects to Microsoft SQL 2008

    Does anybody have sample Servlet code that connects to a Microsoft SQL 2008 Resource Pool?
    Thank you.

    JDBC is used to talk to databases. Not database utilities. As an example SSIS is not a database.
    So the question would be is the 2008 "Resource Governor" (of which "Resource Pools" are part) a utility or a database entity?
    [http://technet.microsoft.com/en-us/library/bb933866.aspx]
    I would guess that it isn't a database entity.
    Thus the only way to access it is if a database entity allows you do access it. And for that you would need to look for SQL Server system proc(s).

  • Treo Pro: After establishing Bluetooth connection with laptop, can't connect to P.A.N. Windows XP Pro

    I am able to setup a Bluetooth partner ship between my Treo Pro and my laptop without much difficulty.  However when I try to establish a PAN connection via My Network Connections, I receive the following Windows error message:
    The connection with the Bluetooth network device failed.  The device may already be connected to another computer, or it may need to be configured to accept connections from this computer.  Consult your device documentation for further information.
    Any assistance with this matter would be much appreciated.
    Post relates to: Treo 750 (AT&T)

    No, that is not what I am referring too.  I am way ahead of you there.  I can pair my phone to my computer without any difficulties.  My computer sees my phone and my phone sees my computer.  Here is the route I am referring too; control panel, bluetooth devices, single click on paired Treo Pro, properties button, new window second tab (services), blank screen and no ability to add services.  Very similar on the phone itself.  For instance, when paired with my Plantronics headset, which by the way is not on the list, but works perfectly, the services box lists "hands free".  When connected to the the computer, one of the services should be PAN connection.
    Post relates to: Treo Pro T850 (Sprint)

  • Password protected remote panel empty after login and connecting

    Dear Ladies and Gentleman
    We like to access our front panel by web (to be able to see what is happening) which works fine. We need also password protection in order to assure only some people have access. For this case we installed LabView 2009 SP1 32bit together with the Internet Toolkit. After following How to Setup Security for the G Server? we are forced to enter a password when opening the URL in firefox. If the correct password is entered the web site opens BUT the plugin which is needed to open/show the embedded LabView panel applet does not work!! There is a grey box indicating that something is actually going on, but nothing appears...
    If we do not use password protection (i.e. G Server but the default LabView Server) everything works fine.
    We are using an evaluation version of the Internet Toolkit but if this issue can be solved we would like to buy it.
    Thanks a lot for your help and time
    Greetings
    Ursin Solèr
    (ETH Zürich)

    Hello Joseph
    Thanks for your reply - actually I remember to have read the document you mentioned. I read the note also... but I have to admit that I did not understand what's the point;
    - I do not want to 'Import' something but to 'share' / 'publish' / ...
    - I do not understand what a Web Services are and what I do they need for
    - I do NOT have any CGI code (just a simple VI)
    - I JUST WANT TO PROTECT A WORKING REMOTE VI WITH A PASSWORD (e.g. instead of showing the VI to me, ask first for a password and THEN show it)
    Sorry but as I can see this should be easy since it should be a quite common task, doesn't it? In early LV versions (before v8 or may be v6) this was simple and
    described in several documents:
    - http://digital.ni.com/public.nsf/allkb/8D8A18E0348920A48625703B00789A41
    - http://digital.ni.com/public.nsf/allkb/427FE409FB11575686256DFF0008BBE4
    PLEASE HELP ME! In about 1 week the evaluation period of the Internet Toolkit is over... Do I really have to write my own code for this? Is there no simple
    built-in solution?
    Greetings

  • Problem to establish good connection via ms sql jdbc on ms sql server expre

    Hi ,
    I had error below in testing connection on stand alone db server ms sql server 2005 express edition:
    Method=cursor;
    java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]End of stream
    was detected on a read.
    at com.microsoft.jdbc.base.BaseExceptions.createException(Unknown Source
    at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)
    at com.microsoft.jdbc.sqlserver.tds.TDSRequest.processReply(Unknown Sour
    ce)
    at com.microsoft.jdbc.sqlserver.SQLServerImplConnection.open(Unknown Sou
    rce)
    at com.microsoft.jdbc.base.BaseConnection.getNewImplConnection(Unknown S
    ource)
    at com.microsoft.jdbc.base.BaseConnection.open(Unknown Source)
    at com.microsoft.jdbc.base.BaseDriver.connect(Unknown Source)
    at java.sql.DriverManager.getConnection(Unknown Source)
    at java.sql.DriverManager.getConnection(Unknown Source)
    at Connect.getConnection(Connect.java:28)
    at Connect.displayDbProperties(Connect.java:45)
    at Connect.main(Connect.java:82)
    at Connect.main(Connect.java:82)
    Error Trace in getConnection() : [Microsoft][SQLServer 2000 Driver for JDBC]End
    of stream was detected on a read.
    Error: No active Connection
    I got this error in lauching the codes :
    import java.sql.*;
    * Microsoft SQL Server JDBC Test1 program
    public class Test1 {
    public Test1() throws Exception {
    // Get connection
    DriverManager.registerDriver(new
    com.microsoft.jdbc.sqlserver.SQLServerDriver());
    Connection connection = DriverManager.getConnection(
    "jdbc:microsoft:sqlserver://SERGE_TCHITEMBO:1433;databaseName=AutClust","autoclust","clust");
    if (connection != null) {
              System.out.println();
              System.out.println("Successfully connected");
              System.out.println();
              // Meta data
              DatabaseMetaData meta = connection.getMetaData();
              System.out.println("\nDriver Information");
              System.out.println("Driver Name: "
              + meta.getDriverName());
              System.out.println("Driver Version: "
              + meta.getDriverVersion());
              System.out.println("\nDatabase Information ");
              System.out.println("Database Name: "
              + meta.getDatabaseProductName());
              System.out.println("Database Version: "+
              meta.getDatabaseProductVersion());
    }// Test1
    public static void main (String args[]) throws Exception {
    Test1 Test1 = new Test1();
    I google this error but i did find response.
    Please could help me.
    Vovo.

    This is a database sever side forum. Your problem is client side db driver connectivity (the connection does not even reach the database from your description).
    Thus I doubt that you will have much luck in getting the problem resolved here. I suggest you try a client language/driver forum instead.
    Side note: I would add a test method to the code that takes IP/hostname and port as input, and then simply attempts a tcp socket open with these parameters. If socket connect works, close it and return a success. Else return a fail. Call this with the IP/hostname of the db server and port number of the server's listener (default 1521). Easy method to test network connectivity from client device to database server, without using any JDBC driver class and dealing with issues such as app protocol version differences and so on.

  • SQL 2000 ODBC CONNECTION STRING FOR SQL 2008

    i have vb 6 application. Database is SQL server 2000.
    my connection string is (using odbc driver),
            .ConnectionString = "Driver={SQL Server};SERVER=" & mServer & ";DATABASE=mydb;UID=" & mLogin.Username & ";pwd=" & mLogin.Password & ";"
    Now i have tried this application with SQL server express 2008 R2
    Can i still keep the old connection string? will there be any problem in future?
    (if i have to change then have to change at so many places.....)
    I can run application without any problem for now (not changed connection string to new one)
    otherwise i have to use ODBC or OLEDB which are,
            .ConnectionString = "Driver={SQL Server Native Client 10.0};SERVER=" & mServer & ";DATABASE=mydb;UID=" & mLogin.Username & ";pwd=" & mLogin.Password & ";"
    or
            .ConnectionString = "Provider=SQLNCLI10;SERVER=" & mServer & ";DATABASE=mydb;UID=" & mLogin.Username & ";pwd=" & mLogin.Password & ";"
    if i have to change to new connection string Which one is better to use odbc or oledb.
    h2007

    personally I favor ODBC as it is easy to use sometime. Additionally you can check the link below:
    http://social.msdn.microsoft.com/Forums/en/sqlintegrationservices/thread/19e0c306-0be4-46b5-b207-0937931d63a7 
    cheers!!!
    Vatsa
    www.objectiveprogramming.com

  • JDBC Adapter - Established database connection failed

    Hi Guys,
    we have installed the JDBC Adapter based on the How To Guide and we checked after the installation the  Libaries :Cluster --> Server --> Libraries --> com.sap.aii.af.jmsproviderlib and the box Box "JARs Contained" was filled.
    So in my point of view we have done everything right during the installation.
    Now the developer tested theJDBC Adapter and he comes back with following Error:
    Attempt to establish database connection failed with SQL error com.sap.aii.adapter.jdbc.sql.DriverManagementException: Cannot establish connection to URL "jdbc:microsoft:sqlserver://xxx.x.xx.xxx:1433; databaseName=CZZ03;":ClassNot FoundException: com.microsoft.sqlserver.jdbc.SQLServerDriver
    Do you have any ideas?
    Regards
    Markus

    Hello Markus,
    To install JDBC driver follow the how to guide.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/xi/xi-how-to-guides/how%20to%20install%20and%20configure%20external%20drivers%20for%20jdbc%20and%20jms%20adapters.pdf
    Configuration of JDBC Adapter for SQL Server
    JDBC Driver = com.microsoft.jdbc.sqlserver.SQLServerDriver
    Connection = jdbc:microsoft:sqlserver://hostname:<port>;DatabaseName=<DBName>
    UserID and Password.
    If the connection is not working find the correct port number.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/40b92770-db81-2a10-8e91-f747188d8033
    JDBC- X I -  R/3 Scenario
    /people/bhavesh.kantilal/blog/2006/07/03/jdbc-receiver-adapter--synchronous-select-150-step-by-step
    /people/sap.user72/blog/2005/06/01/file-to-jdbc-adapter-using-sap-xi-30
    Thanks,
    Satya Kumar
    Reward Points If it is Useful..

  • Connecting to a sql server database using netbeans 5.5

    hi all
    if you please could any body tell me detailed steps for establishing a connection to a sql server database using netbeans 5.5
    i need to know what driver to use and the format of the url i use in making a new connection
    thanks

    Uhm SQL (Structured Query Language) is like the base
    of all other type like MySQL and Oracle. Um, given the context I think the person was referring to "Microsoft SQL Server". Sometimes people will cut to the chase and refer to the product as "SQL". At those times it's understood by all parties that we're not talking about the query language, rather the Microsoft product.
    I think this is one of those times.
    See
    something i found in two seconds with the wonder of
    google http://sqlzoo.net/ & http://sqlzoo.net/w.htm
    It's commendable that you're using Google. I'd argue that the OP should be making better use of it, too. But I don't think your response is applicable to this context. JMO, of course.
    %

  • I am able to connect to the internet using internet explorer, but when I try to connect through mozilla firefox it says 'it is unable to establish a connection to the server." why?

    I can establish internet connection through internet explorer using a router at my house, but whenever I attempt to connect using firefox, it says it is unable to connect.

    A possible cause is security software (firewall) that blocks or restricts Firefox without informing you about that, possibly after detecting changes (update) to the Firefox program.
    Remove all rules for Firefox from the permissions list in the firewall and let your firewall ask again for permission to get full unrestricted access to internet for Firefox and the plugin-container process.
    See [[Server not found]] and [[Firewalls]] and http://kb.mozillazine.org/Firewalls

  • HT5656 This is all great but for me the "IPv6 Delegated Prefix" field never sticks. After the reboot to apply the settings, it is empty again. I have tried the 6.2 Airport Utility on OS X 10.8.2 and the iOS Airport Utility. Any ideas?

    Hi All,
       I had a working IPv6 tunnel with my Airport Express to tunnelbroker.net using the 7.6.1 firmware.  After updating to 7.6.3, I have tried many things to get it to work and the only one that works is downgrading from 7.6.3 back to 7.6.1.  After seeing this new technical note, it appears that the root of my issue is that I can not get the "IPv6 Delegated Prefix" field to stick - it is always empty after the reboot to apply the settings.
       Any ideas?
         Thanks,
           CraigN

    I'm in the same boat with a 3rd Gen AEBS.  Only thing I haven't tried is a complete reset and reconfiguration from nothing, which I may wind up doing this afternoon just to rule it out.  The best irony of all of this is that tunnelbroker.net is under my responsibility, and I can't validate the new settings paradigm.  At least getting back to 7.6.1 is easy enough and everything works fine there.
    IPv6 Delegated prefix doesn't get saved when using the format from their example, then a 6to4 address shows up as the local address on the main Internet page, and no RAs are received once the AEBS comes back from a reload.  Something's a little off on this release.

  • Re-establish internet connection after restarting laptop

    I have a wireless router (WRT54G) and to make an internet connection to my laptop I must use a cord and establish the connection, then that cord is removed. However, I must do this everytime I turn my computer on/off or restart it. When I first purchased the laptop, router, and adapter I only had to establish the connection once and had no problems with connecting to the internet even after I restarted my laptop. What is wrong that I must re-establish the connection with each restart?

    okay... hardwire the computer directly to the router, logon to router's setup page, open I.E. and in the address bar type 192.168.1.1 it would ask for username and password, put "admin" (default password) as a password without any username…click on wireless tab and try changing wireless channel to 11, click on advanced wireless settings reduce beacon interval to 50, fragmentation and RTS threshold to 2304… make sure that you have latest firmware installed on the router… also tell me the model and version no. of the adapter that you have and OS on computer…

  • Firefox can't establish a connection to the server at any website I visit yet internet explorer is working fine.

    I have tried uninstalling firefox and reinstalling it and it's still not working. Why won't it establish a connection all of a sudden? I'm browsing using internet explorer just fine, but I want to use firefox.

    Thank you so much for the link, Gryllida! Selecting "restore defaults" on my McAfee firewall was the key! Thanks again! ~stacy

Maybe you are looking for