Quantcast
Channel: DataSource Controls - SqlDataSource, ObjectDataSource, etc.
Browsing all 956 articles
Browse latest View live

How to enable SQL cache dependency in ASP.NET?

According to this article: https://en.wikipedia.org/wiki/ASP.NET , the latest asp.net version is 4.7.1 released on October 17, 2017. I read a question about  how to enable SQL cache dependency in...

View Article


Could not create connect object reference not set to an instance of the object

I'm trying to connect to a MySQL database using visual studio community 2017I have downloaded the MySQL Visual Studio v1.2.8 from herehttps://dev.mysql.com/downloads/windows/visualstudio/I have...

View Article


Reading a table, processing and writing a status back

Ok, I've very rusty on this. A simple Windows form. It connects to a database, reads data from the database, pushes that data into another system using its API, then writes a status flag back to the...

View Article

PIVOT WITH MULTIPLE HEADER(DATE AS COLUMN)

I'm doing pivot with multiple header in SP. i'm pivoting date into 3 column(WLQ, TQ & FLQ).The problem after doing pivoting is the column is display by group. Example output is: (12-4_WLQ,...

View Article

Cannot Send Parameter to Stored Procedure

Hi All,I'm having one stored procedure.  Error display when I try to pass parameter from system.Must declare the scalar variable "@KT_KEIRO_NAME_VAR".Here is the stored procedure.ALTER PROCEDURE...

View Article


Using SQL Server Developer's Edition

Hello,I need to transfer data from MS Access Database to SQL Server Developer's Edition.  I only need two tables and some of the fields, how to I go about transferring data between Access Database to...

View Article

Although the stored procedure returns the expected output, but the...

HelloI am using this stored procedure to insert a new record (it validates the passed parameters and returns a value depending on it)USE [VALUATOR] GO /****** Object: StoredProcedure...

View Article

Compare Rows Using CTE and finding out required output

This is an Input TableDomain_IdStart_DateEnd_Date12011-01-012001-01-0512011-01-052001-01-0712011-01-072001-01-1522011-05-112001-05-1222011-05-132001-05-14This is an Output Table which is...

View Article


ChecklistBox and Radiobutton selections

Good day I have a checklistbox and radiobutton on my webform , the data is submitted to a SQL Database , when the data is submitted and i do a select * from , the one entry i have created on the web...

View Article


May I get the number of records previously retrieved from a sqlDataSource cache

I do have a sqlDataSource with the following properties:EnableCaching="true" CacheDuration="600"  When the page is requested for the first time, the server cache the data source information for 10...

View Article

Reading and Querying a CSV FILE using C#

Hi All, I am currently working on an application which requires me to Read data from a CSV file. I am looking help like read the csv file and perform query on it. For Example : I was wondering how to...

View Article

DataRelation and  ForeignKeyConstraint 

What is the difference between DataRelation and  ForeignKeyConstraint  in ADO.NET?

View Article

How to use the sqldatasource / INSERT but referencing the table to a label

Hi forum, I have a little doubt, I want to use the sqldatasource to win/cut time and efforts. I have a label which display the username of a session, and I want to use it to select the table into the...

View Article


Grid view Data source-> OR ,AND in QUERY NOT Returning corrrectly in vb.net

<asp:SqlDataSource ID="SqlDataSource3" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString3 %>" ProviderName="<%$ ConnectionStrings:ConnectionString3.ProviderName %>"...

View Article

SQLBulkCopy

Hi everyone,I have a webserver that imports 50k records per day using SQLBulkCopy.The issue I’m having is when the ProductUnitNetPrice is imported.Instead of importing the ProductUnitNetPrice like...

View Article


Binding value to EditItemTemplate DropDownList where text is no longer available

I have an aspx page with the below simplified code.sql_controllers returns a list of names for those that is allowed to be selected in the DropDownList (Including a string with a length of 0). The name...

View Article

Server Error in '/MVCDemo' Application. The system cannot find the file...

I have an error regarding connecting to my database while querying "employee" from browser using this query string:http://localhost/MVCDemo/employee/details/1Screenshots from my desktop for the...

View Article


Asp.Net Core the sdk microsoft.net.web.sdk specified could not be found

I just wanted to try creating my first asp.net core project and I got this error. Help please.

View Article

Sqldatasource from db in onedrive..how?

My sqldatasource in web.config is pointing to local Ms Access or Excel filee in App_data folder I wish it point to such file saved in my Onedrive for business or stored in Sharepoint server instead....

View Article

System.Data.SqlClient.SqlException: 'Incorrect syntax near ','.'

hi when i debug my code i get the following error:  System.Data.SqlClient.SqlException: 'Incorrect syntax near ','.'I cannot find the issue when viewing my code , hope someon can assist Thanks in...

View Article
Browsing all 956 articles
Browse latest View live


Latest Images