call sql server function from crystal report

Moving from Crystal Reports to Reporting Services

Moving from Crystal Reports to Reporting Services

Ngày tải lên : 05/10/2013, 08:48
... objects SqlConnection conReport = new SqlConnection(cnString); SqlCommand cmdReport = new SqlCommand(); SqlDataReader drReport; DataSet dsReport = new dsRSandCR(); try { //open connection conReport.Open(); ... full view of // report crystalReportViewer1.DisplayGroupTree = false; // bind report instance with crystal report viewer for user display crystalReportViewer1.ReportSource = reportCR; } catch ... MOVING FROM CRYSTAL REPORTS TO REPORTING SERVICES As you know, we use the ReportViewer to display the report output for RS Similarly, we need to add the CrystalReportViewer to display the report...
  • 16
  • 436
  • 0
Create and Call SQL Server 2000 User-Defined

Create and Call SQL Server 2000 User-Defined

Ngày tải lên : 28/10/2013, 19:15
... code is much the same as other TSQL statements Calling SQL Server 2000 UDFs You can call UDFs from other T -SQL Statements, as displayed here for this How-To: Select * From udf_ShowProdAndCat(" & ... UDF string Dim strSQL As String strSQL = "CREATE FUNCTION udf_ShowProdAndCat ( @UnitPriceParm money)" strSQL &= "RETURNS @ProdAndCatTab TABLE" & vbCrLf strSQL &= "(" & vbCrLf strSQL &= " ProductID ... vbCrLf strSQL &= " ProductName nvarchar(80)," & vbCrLf strSQL &= " CategoryName nvarchar(80)," & vbCrLf strSQL &= " UnitPrice int" & vbCrLf strSQL &= ")" & vbCrLf strSQL &= "AS" & vbCrLf strSQL &=...
  • 8
  • 414
  • 0
Tài liệu Create a New SQL Server Database from Within Visual Studio .NET pptx

Tài liệu Create a New SQL Server Database from Within Visual Studio .NET pptx

Ngày tải lên : 21/01/2014, 12:20
... box from within the Server Explorer in two ways The first way is to right-click on the Data Connections node and choose Create New SQL Server Database The second way is to right-click on the SQL ... branches in the tree view of the Server Explorer for the different database objects, described in this chapter's introduction Comments The Microsoft Visual Studio and SQL Server teams have gone to a ... Database Although both methods open the Create Database dialog box, the second method fills in the server name for you Fill in the name of the database you want to create-in this case, Chapter2 Choose...
  • 3
  • 460
  • 0
Retrieve XML from SQL Server 2000

Retrieve XML from SQL Server 2000

Ngày tải lên : 17/10/2013, 21:15
... btnRetrieveXML.Click Dim cnn As New SqlClient.SqlConnection(BuildCnnStr("(local)", "Northwind")) Dim cmdCust As SqlClient.SqlCommand = New SqlClient.SqlCommand( _ Me.txtSQLToExecute.Text, cnn) Dim xrCust ... BuildCnnStr() function throughout this book You should add this function to a module or copy it from other chapters Here is the code for the function: Function BuildCnnStr(ByVal strServer As String, ... strServer & ";" strTemp &= "Initial Catalog=" & strDatabase & ";" strTemp &= "Integrated Security=SSPI" Return strTemp End Function Figure 12.4 The information displayed here was read from SQL Server...
  • 4
  • 286
  • 0
Apress - Beginning SQL Server 2008 for Developers_ From Novice to Professional (2008)01

Apress - Beginning SQL Server 2008 for Developers_ From Novice to Professional (2008)01

Ngày tải lên : 18/10/2013, 07:15
... This allowed NET SQL Server specific objects to be built, giving SQL Server the flexible functionality that Oracle had with its inclusion of Java 2008 SQL Server 2008 The aim of SQL Server 2008 is ... although SQL Server could work just as effectively With the new functionality in SQL Server 2008, Oracle will be under pressure to expand its existing functionality to meet this challenge SQL Server ... 10 CHAPTER ■ SQL S ERVER 2008 OVERV IEW A ND INSTALLA TION • Reporting Services: This allows reports to be produced from SQL Server instead of using thirdparty tools such as Crystal Reports We...
  • 40
  • 576
  • 0
Using the SQL Server OPENXML() Function

Using the SQL Server OPENXML() Function

Ngày tải lên : 24/10/2013, 12:15
... values from that XML data Listing 16.15 shows a script named AddCustomersXml .sql that creates the AddCustomersXml() stored procedure Listing 16.15: ADDCUSTOMERSXML .SQL /* AddCustomersXml .sql creates ... document with OPENXML() Once you've completed your call to OPENXML() you call the sp_xml_removedocument() procedure to remove the XML document from memory The example in this section uses a stored ... Listing 16.16 shows a script named RunAddCustomers .sql that runs the AddCustomersXml() procedure Listing 16.16: RUNADDCUSTOMERS .SQL /* RunAddCustomersXml .sql runs the AddCustomersXml() procedure */...
  • 4
  • 441
  • 0
Tài liệu Apress - Pro SQL Server 2008 Reporting Services (2008)01 doc

Tài liệu Apress - Pro SQL Server 2008 Reporting Services (2008)01 doc

Ngày tải lên : 17/12/2013, 02:15
... the report server databases can physically be located on the same SQL Server, assuming the data source is a SQL Server database The data source can be any supported data provider, such as SQL Server, ... the report server, and the SQL Server report databases Figure 1-1 shows the conceptual breakdown of the three component pieces Here, the data source and the SSRS databases, ReportServer and ReportServerTempDB, ... use Report Manager to view or print reports or remotely manage the report server for their workgroups or departments Report Manager Within Report Manager, users can render reports, create report...
  • 40
  • 452
  • 1
Tài liệu Apress - Pro SQL Server 2008 Reporting Services (2008)02 pptx

Tài liệu Apress - Pro SQL Server 2008 Reporting Services (2008)02 pptx

Ngày tải lên : 17/12/2013, 02:15
... the next chapters, sorting is handled within the report Dividing the load between the SQL Server machine that houses the report data and the report server itself is important and often requires ... performed If the report server is substantial enough to shoulder the burden and is less taxed by user access than the actual data server, it might be conceivable to allow the reporting server to handle ... the code download file in the SQL Queries folder The file is called CreateFieldInfo .sql Listing 2-1 Creating the sp_fieldinfo Stored Procedure IF EXISTS (SELECT * FROM sys.objects WHERE object_id...
  • 10
  • 576
  • 0
Tài liệu Connecting to SQL Server Using Integrated Security from ASP.NET ppt

Tài liệu Connecting to SQL Server Using Integrated Security from ASP.NET ppt

Ngày tải lên : 24/12/2013, 05:15
... overcome this limitation when SQL Server is not on the same computer as IIS, run the web application in the context of a domain user recognized on both IIS and SQL Server computers In addition ... addition to the areas identified where IIS and SQL Server are on the same computer, the following additional items must be configured if the SQL Server is on a different computer: • • • • Ensure ... • older attribute-and-value pair Trusted_Connection=Yes is also supported Add users and groups from the domain and set their access permissions as required By default, ASP.NET applications run...
  • 2
  • 528
  • 0
Tài liệu Reading XML Data Directly from SQL Server doc

Tài liệu Reading XML Data Directly from SQL Server doc

Ngày tải lên : 24/12/2013, 05:15
... xmlTextBox.Text = ds.GetXml( ); Discussion SQL Server 2000 introduced support for retrieving data in XML format using the FOR XML clause The NET SQL Server data provider SqlCommand object has an ExecuteXmlReader( ... retrieve an XML stream directly from SQL Server, where it returns an XmlReader that contains the results of the SQL query The ExecuteXmlReader( ) method can only be used with SQL statements that return ... ntext data containing valid XML For more information about the FOR XML clause, see Microsoft SQL Server Books Online [ Team LiB ] ...
  • 2
  • 367
  • 0
Tài liệu Retrieving Database Schema Information from SQL Server pptx

Tài liệu Retrieving Database Schema Information from SQL Server pptx

Ngày tải lên : 24/12/2013, 05:15
... solution uses information schema views that are available in SQL Server 7.0 and later These views provide system-table independent access to SQL Server metadata Although based on the sysobjects and syscomments ... user-defined functions and stored procedures REFERENTIAL_CONSTRAINTS All foreign constraints ROUTINE_COLUMNS Columns returned by table-valued functions ROUTINES All user-defined functions and ... syntax: INFORMATION_SCHEMA.TABLES Table 10-1 lists the information schema views available in SQL Server 2000 Table 10-1 Information schema views Name Description CHECK CONSTRAINTS CHECK constraints...
  • 6
  • 399
  • 1
Tài liệu Retrieving Column Default Values from SQL Server pdf

Tài liệu Retrieving Column Default Values from SQL Server pdf

Ngày tải lên : 24/12/2013, 05:15
... procedure returning constraints SqlCommand cmd = new SqlCommand("sp_helpconstraint", conn); cmd.CommandType = CommandType.StoredProcedure; cmd.Parameters.Add("@objname",SqlDbType.NVarChar,776); cmd.Parameters[0].Value ... "Orders"; cmd.Parameters.Add("@nomsg",SqlDbType.VarChar,5); cmd.Parameters[1].Value = "nomsg"; // Create a DataReader from the stored procedure conn.Open( ); SqlDataReader dr = cmd.ExecuteReader( ... example, single quotes by default in SQL Server for dates and strings, and an additional prefix N in the case of Unicode strings These delimiters need to be stripped from the value before it can be...
  • 3
  • 349
  • 0
Tài liệu Getting an Identity Column Value from SQL Server pptx

Tài liệu Getting an Identity Column Value from SQL Server pptx

Ngày tải lên : 21/01/2014, 11:20
... CommandType.Text; Batch SQL commands not support output parameters, so only the FirstReturnedRecord method will work with a batch SQL command The SCOPE_IDENTITY( ) function was introduced in SQL Server 2000 ... DataAdapter String sqlText="INSERT Categories(CategoryName, Description) VALUES" + "(@CategoryName, @Description);" + "SELECT Scope_Identity( ) CategoryId"; da.InsertCommand = new SqlCommand(sqlText, da.SelectCommand.Connection); ... da.InsertCommand.Parameters.Add(CATEGORYID_PARM, SqlDbType.Int, 0, CATEGORYID_FIELD); param.Direction = ParameterDirection.Output; // Add the other parameters da.InsertCommand.Parameters.Add(CATEGORYNAME_PARM, SqlDbType.NVarChar,...
  • 6
  • 367
  • 0
Tài liệu Creating DataSet Relationships from SQL Server Relationships docx

Tài liệu Creating DataSet Relationships from SQL Server Relationships docx

Ngày tải lên : 21/01/2014, 11:20
... retrieve constraint information SqlConnection conn = new SqlConnection( ConfigurationSettings.AppSettings[ "Sql_ ConnectString"]); SqlCommand cmd = new SqlCommand(sqlText, conn); // Fill the DataReader ... DataSet da = new SqlDataAdapter("SELECT * FROM TBL1011a", ConfigurationSettings.AppSettings[ "Sql_ ConnectString"]); da.Fill(ds, PARENTMULTICOLKEYTABLE); da = new SqlDataAdapter("SELECT * FROM TBL1011b", ... using System.Data.SqlClient; // DataSet ds = new DataSet( ); SqlDataAdapter da; // Add the Orders and Order Details tables to the DataSet da = new SqlDataAdapter("SELECT * FROM Orders", ConfigurationSettings.AppSettings[ "Sql_ ConnectString"]);...
  • 7
  • 306
  • 0
Tài liệu McGraw-Hill - Microsoft SQL Server 2008 Reporting Services (2008)01 docx

Tài liệu McGraw-Hill - Microsoft SQL Server 2008 Reporting Services (2008)01 docx

Ngày tải lên : 22/01/2014, 22:20
... Microsoft SQL Server 2008 Reporting Services The Weather Report The Delivery Analysis Report Reports Within Reports The Employee Evaluation Report The Invoice Report ... copy of SQL Server 2008, the price of Reporting Services is certainly right Free! As long as the report server is installed on the same computer as the SQL Server database engine, your SQL Server ... created a report, that report can be deployed to the report server and will function exactly like a report created with the Standalone Report Builder or the Report Designer The Standalone Report...
  • 40
  • 367
  • 0
Tài liệu McGraw-Hill - Microsoft SQL Server 2008 Reporting Services (2008)02 pdf

Tài liệu McGraw-Hill - Microsoft SQL Server 2008 Reporting Services (2008)02 pdf

Ngày tải lên : 22/01/2014, 22:20
... are created within SQL Server: the Report Server and Report Server Temp DB databases The Report Server database is used to store the Report Catalog (Recall from Chapter that the Report Catalog holds ... computer This is called remote administration SQL Server 2005 /SQL Server 2008 Either SQL Server 2005 or SQL Server 2008 is required to hold the database where Reporting Services stores its Report Catalog ... navigate report folders and to view reports on a Reporting Services report server The Report Explorer and Report Viewer web parts were originally made available as part of SQL Server 2000 Reporting...
  • 10
  • 346
  • 0
Tài liệu Retrieving Constraints from a SQL Server Database docx

Tài liệu Retrieving Constraints from a SQL Server Database docx

Ngày tải lên : 26/01/2014, 10:20
... Discussion Information schema views were first available in SQL Server 7.0 and later They provide system-table independent access to SQL Server metadata The views are based on system tables and ... (foreignKeyRadioButton.Checked) da = new SqlDataAdapter(GETFOREIGNKEYCONSTRAINTS, ConfigurationSettings.AppSettings[ "Sql_ ConnectString"]); else if (checkRadioButton.Checked) da = new SqlDataAdapter(GETCHECKCONSTRAINTS, ... retrieve schema information SqlDataAdapter da = null; if (primaryKeyRadioButton.Checked) da = new SqlDataAdapter(GETPRIMARYKEYCONSTRAINTS, ConfigurationSettings.AppSettings[ "Sql_ ConnectString"]); else...
  • 7
  • 393
  • 0
Tài liệu Retrieve Results from SQL Server by Using the DataTable Object docx

Tài liệu Retrieve Results from SQL Server by Using the DataTable Object docx

Ngày tải lên : 26/01/2014, 11:20
... OleDb.OleDbDataAdapter Dim dtCust As DataTable = New DataTable() Dim strSQL As String ' Create the SQL String strSQL = "Select CustomerID, CompanyName From Customers " & _ "Where CustomerID Like '" & Me.txtCustLimit.Text ... btnLoadList button, the data adapter called odaCust is instantiated The data adapter is passed strSQL and the connection string that is created by the function called BuildCnnStr, which was introduced ... code listed here in Listing 3.3 That's it After creating the SQL string that will be used and storing it in strSQL, the data adapter called odaCust is created The odtCust data table is then filled...
  • 3
  • 352
  • 0
Tài liệu Professional SQL Server™ 2005 Reporting Services ppt

Tài liệu Professional SQL Server™ 2005 Reporting Services ppt

Ngày tải lên : 13/02/2014, 08:20
... Securing Reports The Report Manager Designing Reports URL Access to Reports Rendering Reports in Program Code Report Definition Language Deploying Reports Designing and Architecting Report Solutions ... and Data Regions Textbox Report Item Line Report Item Rectangle Report Item Image Report Item Subreport Item Chart Report Item Drill-Down and Drill-Through Reports Tabular Reports Grouping Data ... Services Chapter 10: Report Management Report Server Content Managing Content Items Report Manager SQL Server Management Studio Other Utilities Programmatic Interfaces Securing Report Server Content...
  • 723
  • 290
  • 0
Tài liệu SQL Server 2005 Reporting Services in Action ppt

Tài liệu SQL Server 2005 Reporting Services in Action ppt

Ngày tải lên : 13/02/2014, 08:20
... OpenForecast.dll to the Report Server binary folder, C:\Program Files\Microsoft SQL Server\ MSSQL.3\Reporting Services\ReportServer\bin This step is needed because some reports reference these ... set to AWReporter and that TargetServerURL is set to http:///ReportServer, in which is the computer name where the Report Server is installed If RS is installed locally, ... Introducing SQL Server 2005 Reporting Services Report authoring basics 41 Working with data Designing reports 64 104 Using expressions and functions 150 Using custom code 185 Ad hoc reporting with the Report...
  • 601
  • 1.6K
  • 0