Click here to Skip to main content
15,892,537 members
Home / Discussions / Database
   

Database

 
GeneralRe: Aggregate Function Pin
Lash208-Feb-08 5:20
Lash208-Feb-08 5:20 
Generalexporting sqlserver table data into .csv files Pin
rajeshkumar g8-Feb-08 1:05
rajeshkumar g8-Feb-08 1:05 
GeneralRe: exporting sqlserver table data into .csv files Pin
Giorgi Dalakishvili8-Feb-08 1:22
mentorGiorgi Dalakishvili8-Feb-08 1:22 
GeneralRe: exporting sqlserver table data into .csv files Pin
rajeshkumar g10-Feb-08 22:26
rajeshkumar g10-Feb-08 22:26 
GeneralRe: exporting sqlserver table data into .csv files Pin
Vasudevan Deepak Kumar12-Feb-08 2:48
Vasudevan Deepak Kumar12-Feb-08 2:48 
GeneralSQL2005 + Service Broker + CLR Stored Procedure + XML + Temp Tables Pin
Malcolm Smart7-Feb-08 23:57
Malcolm Smart7-Feb-08 23:57 
GeneralCrystal Report Pin
techpub7-Feb-08 23:22
techpub7-Feb-08 23:22 
GeneralRe: Crystal Report Pin
John_Adams8-Feb-08 1:09
John_Adams8-Feb-08 1:09 
Hi,

You can populate Crystal Report dynamically using ADO.Net. This is how you do it using OLEDB, and a table view in MSSQL. The Following code assumes that you have setup your report viewer with the wizard.

-------------------------------------------------------------------------
BEGIN CODE

dataSet21.Clear();
oleDbDataAdapter1.Fill(dataSet21,"your_table_view");

CrystalReport2 custReport = new CrystalReport2();
custReport.SetDataSource(dataSet21);

TableLogOnInfo logOnInfo = new TableLogOnInfo();
logOnInfo = custReport.Database.Tables["your_table_view"].LogOnInfo;
ConnectionInfo connectionInfo = new ConnectionInfo ();
connectionInfo = logOnInfo.ConnectionInfo;

// Set the Connection parameters.
connectionInfo.DatabaseName = yourcatalog;
connectionInfo.ServerName = workstationID;
MessageBox.Show(connectionInfo.ServerName);

//connectionInfo.Password = "yourpassword";
//connectionInfo.UserID = "youruserid";

custReport.Database.Tables ["Vw_Address_Label"].ApplyLogOnInfo(logOnInfo);
crystalReportViewer1.ReportSource = custReport;
crystalReportViewer1.Refresh();
crystalReportViewer1.RefreshReport();

END CODE
-------------------------------------------------------------------------

I hope this helps Smile | :) .

Regards,
John Adams
ComponentOne LLC

GeneralRe: Crystal Report Pin
techpub8-Feb-08 3:26
techpub8-Feb-08 3:26 
Generalmail send using sqlserver2000 Pin
Member 38798817-Feb-08 18:16
Member 38798817-Feb-08 18:16 
GeneralRe: mail send using sqlserver2000 Pin
That's Aragon7-Feb-08 18:43
That's Aragon7-Feb-08 18:43 
GeneralORDER BY Pin
uglyeyes7-Feb-08 13:14
uglyeyes7-Feb-08 13:14 
GeneralRe: ORDER BY Pin
pmarfleet7-Feb-08 21:33
pmarfleet7-Feb-08 21:33 
GeneralRe: ORDER BY Pin
Krish - KP7-Feb-08 21:37
Krish - KP7-Feb-08 21:37 
QuestionHow to insert a data after upading the table Pin
Exelioindia7-Feb-08 9:45
Exelioindia7-Feb-08 9:45 
AnswerRe: How to insert a data after upading the table Pin
pmarfleet7-Feb-08 10:36
pmarfleet7-Feb-08 10:36 
Generalneed help Pin
haseeb_saeed7-Feb-08 9:13
haseeb_saeed7-Feb-08 9:13 
GeneralRe: need help Pin
AlbertEiki7-Feb-08 9:43
AlbertEiki7-Feb-08 9:43 
Generalneed help Pin
haseeb_saeed7-Feb-08 9:09
haseeb_saeed7-Feb-08 9:09 
GeneralRe: need help Pin
AlbertEiki7-Feb-08 9:39
AlbertEiki7-Feb-08 9:39 
Generalretreiving n to m rows from SQL Server 2005 database. Pin
Rocky#7-Feb-08 5:24
Rocky#7-Feb-08 5:24 
GeneralRe: retreiving n to m rows from SQL Server 2005 database. [modified] Pin
AlbertEiki7-Feb-08 6:03
AlbertEiki7-Feb-08 6:03 
QuestionHow to make datatable.select() and dataview.rowfilter accent-insensitive? Pin
AlbertEiki7-Feb-08 4:41
AlbertEiki7-Feb-08 4:41 
GeneralSQL statement help Pin
munklefish7-Feb-08 4:27
munklefish7-Feb-08 4:27 
AnswerRe: SQL statement help Pin
AlbertEiki7-Feb-08 4:48
AlbertEiki7-Feb-08 4:48 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.