datasource

Why would an SSRS report produce different data when run from SQL Server Reporting Services than when run using the Preview tab?

泪湿孤枕 提交于 2019-12-11 05:39:49
问题 I've got a report running the data I want - from the Preview tab, that is, or when run using F5 in VS 2010. But when I upload the report (.rdl file) to SQL Server Reporting Services, and run the updated report from there, it still shows the old bunch of (restricted) data. Am I missing a step - does something need to be done other than uploading the .rdl file from the project? It did tell me the DataSource was wrong, but once I specified the right one, it ran without a hitch (except for the

Declarative databinding vs. ADO.NET in code-behind

前提是你 提交于 2019-12-11 05:05:28
问题 In recent attempts to understand the ASP.NET GridView I have seen mst examples make use of a datasource declared directly in the ASPX markup. For example ... <asp:SqlDataSource ID="productDataSource" Runat="server" SelectCommand="SELECT [ProductName], [UnitPrice], [UnitsInStock], [QuantityPerUnit] FROM [Products]" ConnectionString= "<%$ ConnectionStrings:NWConnectionString %>"> </asp:SqlDataSource> I have seen a lot this sort of declarative datasource as opposed to the way I was taught (and

Set ComboBox data source as column names

纵饮孤独 提交于 2019-12-11 04:26:42
问题 I have some table from a dataSet in a reportViewer (winform), and some ComboBox. I want the ComboBox's dataSource to be a list of the table column names. How can I do that? 回答1: Assuming you have a data table in table variable, then to show list of it's columns in a ComboBox you can use a code like this: comboBox1.DataSource = table.Columns.Cast<DataColumn>().ToList(); comboBox1.ValueMember = "ColumnName"; comboBox1.DisplayMember = "ColumnName"; 回答2: you can try this also comb.DataSource = dt

Spring+hibernate vs hibernate configuration. Cause of UnsupportedOperationException: Not supported by BasicDataSource

≡放荡痞女 提交于 2019-12-11 03:43:14
问题 Initially I used only hibernate And I had following hibernate.cfg.xml : <hibernate-configuration> <session-factory> <property name="hbm2ddl.auto">create</property> <property name="connection.url">jdbc:mysql://localhost:3306/...</property> <property name="connection.username">root</property> <property name="connection.password">XXX</property> <property name="connection.driver_class">com.mysql.jdbc.Driver</property> <property name="dialect">org.hibernate.dialect.MySQLDialect</property>

How to parse NULL value returned using YUI datasource

别来无恙 提交于 2019-12-11 03:43:12
问题 I am using YUI datatable and datasource to render data in one of my projects. The data returned happens to be NULL and YUI datasource is unable to parse it. Below is the declaration code of datasource and datatable. For readability sake, I am seperating each of the declarations. Column Descriptions declaration var columnDescription = [ {key:'Requirements'}, {key:'abc'}, {key:'xyz'} ]; This columnDescription is set in the function below. DataSource Declaration var dataSrcSample = new YAHOO

DataGridView is blank after Changing DataSource at Runtime

試著忘記壹切 提交于 2019-12-11 03:37:35
问题 I have a form where when it was created it will this query public IQueryable<PatientInfo> showMyPatients() { DbClassesDataContext myDb = new DbClassesDataContext(dbPath); var patientInfo = from patients in myDb.PatientInfos where patients.Phy_ID == physcianID select patients; return patientInfo; } Once I call that I will insert it to a variable and pass it as a paramaters here public void fillDataGrid(IQueryable<PatientInfo> patients) { dgvMyPatients.DataSource = patients; } Sounds simple

java.sql.SQLException: You cannot commit during a managed transaction

六眼飞鱼酱① 提交于 2019-12-11 03:36:41
问题 In jboss 7, I have below config <datasource jndi-name="java:jboss/env/esilicon/vms/OracleDBPoolNonXA" pool-name="ExampleDS"> <connection-url>jdbc:oracle:thin:@erptstdb.sc.kaka.com:14100:ERPTST</connection-url> <driver>XAOracleJDBCDriver</driver> <pool> <min-pool-size>10</min-pool-size> <max-pool-size>20</max-pool-size> <prefill>true</prefill> </pool> <security> <user-name>apps</user-name> <password>apps</password> </security> </datasource> <drivers> <driver name="XAOracleJDBCDriver" module=

configure grails to create the database if it doesn't exist.

∥☆過路亽.° 提交于 2019-12-11 03:35:31
问题 I have the following settings on a new grails project: dataSource { pooled = true driverClassName = "com.mysql.jdbc.Driver" dialect = "org.hibernate.dialect.MySQL5InnoDBDialect" username = "sa" password = "" } environments { development { dataSource { dbCreate = "create-drop" // one of 'create', 'create-drop', 'update', 'validate', '' url = "jdbc:mysql://localhost/myapp?useUnicode=yes&zeroDateTimeBehavior=convertToNull&characterEncoding=UTF-8" username = "root" password = "" } } } when I run

FormView not displaying PagerTemplate when only 1 item in DataSource

瘦欲@ 提交于 2019-12-11 03:13:28
问题 I have a FormView control with a custom PagerTemplate with my own paging LinkButtons. All works great until the dataset that I load only contains one record/item and hides the PagerTemplate completely. I've searched online and found several answers to simply add: protected void fvAppHMDA_PreRender(object sender, EventArgs e) { if (fvAppHMDA.TopPagerRow != null) fvAppHMDA.TopPagerRow.Visible = true; } However, this is not making one bit of difference. It seems that when there is only one

OldValues collection in event “ItemUpdating” of DetailsView is always empty

夙愿已清 提交于 2019-12-11 02:38:32
问题 I´m using a DetailsView but when updating, I cannot get the OldValues because the DetailsViewUpdateEventArgs.OldValues of ItemUpdating event is always empty. The NewValues has the values ok. Note: I´m not using a datasource component in my application (SqlDataSource, ObjectDataSource, EntityDataSource, etc.). In this case should I do something manually? Any ideas will be welcome! Thanks! Complementing the information: I´m using ASP.NET 4.0 (WebForms) A snippet of code that I believe to be