DataSource Controls :: Generate Sql Row To XML Mode?
Apr 26, 2010I have this query to generate sql row to XML Mode.
[Code]....
I want the result is like this:
[Code]....
I have this query to generate sql row to XML Mode.
[Code]....
I want the result is like this:
[Code]....
Users want to get email PDF report. I am using ASP.net Reportviewer .rdlc file in local mode (I don't have a sql reporting services). My question is how to generate PDF reports programmatically without going to the report web page.
View 2 RepliesI am currently working on this situation that I could not find any other resources online to help me
Everything is working fine through VS2008 debug mode, or run without debugging ( database connectivity and everything works)but however when i copy the whole project and set up the IIS,
everything work except for database connectivity. I could not seems to read from the database which currently I am using a attached .mdf file
the error shown is as below :
Server Error in '/' Application.
Object reference not set to an instance of an object.
Description:
An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
Source Error:
[Code]....
Source File: Signup.aspx.vb Line: 23 Stack Trace:
[Code]....
but however when i run on VS 2008, I am able to read the data from the database successfully,
I really need to create ID like this. But I don't know how use this Procedure .If you don't mind can you explain to me step by step how to use to procedure for create auto ID in database. (Should I call to this Procedure from somewhere else, like webpage button or something)
View 4 RepliesI am working with a set of data that looks something like the following.
[Code]....
The name and number of assignments, I need to get results simlilar to the following.
[Code]....
How to generate script from a database with its data? I tried it, but it was not generated with data.
View 13 RepliesI am using xsd /c book.xsd to generate the a cs file. THe default cs file will be book.cs. I am wondering what swtich I can add so that i can name the generated cs file as document.cs instead of the default one. I attached the book/xsd and book.cs file, I am wondering why it generated two partial class? Should i name the generated file to match one of the partial class like BookForm.cs?
book.xsd:
[Code]....
Book.cs:
[Code]....
i have a table called attedance, where employee's daily attendance status is maintained.. they need to login and enter the checkin for their presence.. I finished all these task but what the need is, if the employee didnt checkin for all the whole day, i have to generate absent in the database at the end of day or while next login of the employee..
Is it possible to generate absence status if he not login for whole day? At the end of the day around 6.00 pm it have to generate absence in the db..
How can I generate a script which contains all database tables, stored procedures, data, and etc. ? So that I can
use this script to create a database on the new server.
I am using MS SQL 2005.
I am having a field called Semester, i will enter it as 1 initially. Then it should automatically increase 1 semester every six months till sixth semester in the database (sql server 2005) is it possible?
View 5 Repliesim using windows 7 home premium-64 bit,when i want to install sql server its not asking for mixed mode its directly creating windows authentication mode but i want to use sql server authentication mode,when im installing im unable to see any mode selection?
View 4 RepliesI've got a MS SQL (Express) database. its quite complex and uses a lot of tables. Is there a way to generate a SQL script for creating the complete database, but not the content of it.
I like to copy the database. Right now i copy the database. After that i need manually to clear all fields. There are also some relationships, so its a lot of work to clear all of it manually.
I am generating a unique Ref number using this sql statement: SELECT REPLACE(STR(CAST(CAST(NEWID() AS binary(5)) AS bigint),12),0,0) as REF Subsequently, I need to insert this REF into sql database table in stored procedure. Here is what I did in my stored procedure:
USE [iBankRecords]
GO
/****** Object: StoredProcedure [dbo].[stp_addPayee] Script Date: 07/05/2010 21:57:07 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER PROC [dbo].[stp_addPayee]
(
@CUSTID char(10),
@PAYEEACCNUM nvarchar(20),
@PAYEEACCTYPE char(10) ,
@PAYEENAME char(20),
@PAYERINITIAL char(20),
)
AS
DECLARE
@ReturnValue int
INSERT INTO PAYEE (CUSTID, PAYEEACCNUM,PAYEEACCTYPE,PAYEENAME,PAYERINITIAL, REF)
VALUES (@CUSTID,@PAYEEACCNUM,@PAYEEACCTYPE,@PAYEENAME,@PAYERINITIAL, REF)
IF @@ERROR<>0
BEGIN
PRINT 'ERROR'
SET @ReturnValue=1
RETURN @RETURNVALUE
END
ELSE
BEGIN
SET @ReturnValue=0
RETURN @RETURNVALUE
END
May I know how do I have generating a unique ref num and inserting the REF into the above statement?
object og = GridView_EmployeeTimeSheet.DataSource;
System.Data.DataTable dt = new System.Data.DataTable();
dt = (System.Data.DataTable)og;
But getting null in og(object) and at run time Gridview is showing its required data...
I had a problem login management studio (Sql server 2005) using windows authentication because it doesn't show me any server name to connect and if I put my computer name and user name (my-PCpatel) login was failed.
So, I decided to uninstall it and install it again using mixed mode authentication. After installation I select sql server authentication instead of windows authentication and put login name as "sa" and password that I had put it during installation. But the connect button is dark gray(the way I can not select it or press it on) while the other button (cancel, help, option) can be selected or pressed.So, why am i not able select or click on connect button?
i have installed sql server express using windows authentication mode,but i have a doubt if we want to acces the data from front end we type like uid="",pwd="",servername="" but when using windows auth what credentials we have to give or there is no need of any details?
View 3 Repliesin generate the Stored Procedures when using Create TableAdapter configuration Wizard in VS.it can not generate the Stored Procedures for Delete and Update Commands, but it generated for Select and Insert. i tried many times, but still get the same problem.
View 2 RepliesHow do i generate another computed column that will contail the result of GrandTotal/Total,
where GrandTotal is another value comes from computed column and the Total would be the sum of the Total within SchedularID.
And thats what i have done so far: [Code]....
gaining mode changing for formview in VB.The problem is that, the current mode im using was ReadOnly, and i want to add some button so thatit could connect to Edit mode in the same formview.Is it necessary to add modechanging and modechanged in the back code?
View 2 RepliesI got a project when after opening in visual studio 2005 in build mode drop down, only debug mode is shown but release mode not shown.Project builds successfully in debug mode is there a way to enable release mode.
View 1 RepliesPossible Duplicates: Debug/Release difference Performance differences between debug and release builds
What exactly is the different in compiling and running an asp.net/c# project in Debug mode VS Release Mode?
I wanted my local iis running application to connect my database in sql authentication mode rather than windows mode,
but it is showing errors of " Cannot open database "aspnetdb" requested by the login. The login failed.
Login failed for user 'DBUser'. ". i also ublocked port from firewall,and allowed remote connection of mssql from sql manager, enabled TCP/IP and named piped protocols from SQL surface config, and with sql manager i also changed server authentication mode to sql from windows.
my datastring is <add connectionString="Data Source=PARTHIV-PCSQLEXPRESS;Initial Catalog=aspnetdb;User ID=******;Password=******/" name="LocalSqlServer" providerName="System.Data.SqlClient" />
i made a user named DBUser in database as well i don't understand where it gone wrong ???
here is error log
[Code]....
can i determine programmatically if im running my web project in debug mode or compiled?
or even better if im running it on my local machine or on a server? example to change the path for databases etc..
how can i tell the diffence between a website that has been published in release mode and the same website that was published in debug mode
View 4 Repliesis there a way to use sql server to debug locally and mysql onthe remote published version ? perhaps with web.config and AppSettings ?
View 3 Replies