in

C1 Community

ComponentOne Community is a free source for developers and help authors to collaborate and communicate.

c1webreport

Last post 04-01-2008 9:18 AM by C1_DaveT. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 03-31-2008 7:19 AM

    c1webreport

    How to add a connectionstring to connect to sqlserver database

    Filed under:
  • 04-01-2008 9:18 AM In reply to

    Re: c1webreport

    If you are using ReportDesigner for designing report, follow these steps –

     

    1)      Click on File Menu>Add New Report

    2)      This will show a dialogue box for creating connection string, click on ‘Build Connection String’ button.

    3)      Here choose ‘Microsoft OLEDB Provider for SQL Server’ in Provider tab.

    4)       In connection tab, select name of your Sql Server and DataBase name.

     

    This will create a connection string and wizard will allow you to proceed further and create complete report.

     

    If you are setting connection string in code, you will need to set ConnectionString property of report, it will look like this-

     

    “Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=DataBaseName;Data Source=SQLServerName”

     

     

    I hope this helps.

     

    -Dave.

     

     

    <cshekharin> wrote in message news:203364@10.0.1.98...

    How to add a connectionstring to connect to sqlserver database



    http://helpcentral.componentone.com/cs/forums/p/74792/203364.aspx#203364

Page 1 of 1 (2 items)
Contact ComponentOne: 1.800.858.2739 ©1987-2008 ComponentOne LLC All Rights Reserved.