Create Inventory Report For Service Trucks By Adding All Transactions?
Aug 26, 2013
I'm trying to create an inventory report for service trucks by adding all the transactions that were used to restock the truck and subtract the transactions where the parts were used on an invoice and removed from the truck. All the transactions are in the same table. The fields that would be relevant are PartID, QTY, WhsTo and WhsFrom. If I wanted to calculated stock levels for truck 16 I would select all transactions that have a value of 16 in either WhsTo or WhsFrom. If WhsTo contained 16 then I would want to add QTY. If WhsFrom value was 16 then I would want to subtract QTY. I would want it grouped by distinct PartID. I don't know how to structure the Select statement to decide whether to add or subtract.
View 6 Replies
ADVERTISEMENT
Apr 18, 2008
Hi All,
I am using sql server 2000 + reporting service.I want to crete my first report.for that i am referring the reports sample which come along with Reporting services.
In sample report, ie.Company cells there is use of matrix.I also use matrix.But My problem is that just like that report i also want (+) sign on the report,so that when user click on Component ,it will show all the components in the database.
In my report all the things are right but i cant get how i can get that (+) sign.
Hopefully anyone understand my problem.
Thanks in advance.
View 1 Replies
View Related
Jul 20, 2005
I have some code that dynamically creates a database (name is @FullName) andthen creates a table within that database. Is it possible to wrap thesethings into a transaction such that if any one of the following fails, thedatabase "creation" is rolledback. Otherwise, I would try deleting on errordetection, but it could get messy.IF @Error = 0BEGINSET @ExecString = 'CREATE DATABASE ' + @FullNameEXEC sp_executesql @ExecStringSET @Error = @@ErrorENDIF @Error = 0BEGINSET @ExecString = 'CREATE TABLE ' + @FullName + '.[dbo].[Image] ( [ID][int] IDENTITY (1, 1) NOT NULL, [Blob] [image] NULL , [DateAdded] [datetime]NULL ) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]'EXEC sp_executesql @ExecStringSET @Error = @@ErrorENDIF @Error = 0BEGINSET @ExecString = 'ALTER TABLE ' + @FullName + '.[dbo].[Image] WITHNOCHECK ADD CONSTRAINT [PK_Image] PRIMARY KEY CLUSTERED ( [ID] ) ON[PRIMARY]'EXEC sp_executesql @ExecStringSET @Error = @@ErrorEND
View 2 Replies
View Related
Jun 19, 2006
Problem: I want to use the Service Broker to split up my processes so that they can process concurrently next to each other, but I only want the changes committed if all the processes of the same conversation group succeed. Is this possible in the service broker?
I came up with this, but the problem with this solution is that my transactions are all started first (4 in this example) and only are committed after all 4 are started, so only the last commit has the effect of commiting the changes to the database... Any pointers would be helpfull!
Cheers, Peter.
Code:
[CODE]
/*
CREATE DATABASE testpdd
USE testpdd
create master key encryption by password = 'my lame-*** password'
*/
/*
DROP SERVICE SenderService
DROP QUEUE SenderQueue
DROP SERVICE ReceiverService
DROP QUEUE ReceiverQueue
DROP TABLE TaskTable
DROP CONTRACT MsgContract
DROP MESSAGE TYPE Msg
DROP MESSAGE TYPE EndConversation
DROP PROCEDURE ProcessQueue
DROP PROCEDURE FillQueue
*/
GO
CREATE DATABASE testpdd
GO
USE testpdd
create master key encryption by password = 'my lame-*** password'
CREATE QUEUE SenderQueue
CREATE QUEUE ReceiverQueue
CREATE MESSAGE TYPE Msg
CREATE MESSAGE TYPE EndConversation
CREATE CONTRACT MsgContract(Msg SENT BY ANY,
EndConversation SENT BY ANY)
CREATE SERVICE SenderService ON QUEUE SenderQueue
CREATE SERVICE ReceiverService ON QUEUE ReceiverQueue (MsgContract)
GO
CREATE TABLE TaskTable
(id int identity (1,1),
conversationid int,
conversationseq int,
command varchar(500),
handle uniqueidentifier null,
starttime datetime)
GO
-- DROP PROCEDURE ProcessQueue
CREATE PROCEDURE ProcessQueue
AS
BEGIN
DECLARE @message_type_name sysname
DECLARE @dialog uniqueidentifier
DECLARE @message_body xml
DECLARE @command nvarchar(4000)
DECLARE @id INT
WAITFOR (RECEIVE TOP(1)
@message_type_name=message_type_name, --the type of message received
@message_body=message_body, -- the message contents
@dialog = conversation_handle -- the identifier of the dialog this message was received on
FROM ReceiverQueue), TIMEOUT 1000;
WHILE @dialog IS NOT NULL BEGIN
SELECT @command = @message_body.value('(/Task2/command,conversationid,conversationseq)[1]', 'nvarchar(4000)')
SELECT @id = @message_body.value('(/Task2/id)[1]', 'int')
IF @message_type_name = 'EndConversation' BEGIN
END CONVERSATION @dialog
COMMIT TRANSACTION DIALOG_1
END
UPDATE TaskTable
SET handle = @dialog,
starttime = getdate()
WHERE id = @id
WAITFOR (RECEIVE TOP(1)
@message_type_name=message_type_name, --the type of message received
@message_body=message_body, -- the message contents
@dialog = conversation_handle -- the identifier of the dialog this message was received on
FROM ReceiverQueue), TIMEOUT 1000;
END
WAITFOR DELAY '00:00:20' -- make proc a bit slower for testing purposes...
END
GO
CREATE PROCEDURE FillQueue
AS
BEGIN
-- TEST IT: Send one message - need to send as part of a dialog
DECLARE @h uniqueidentifier
DECLARE @ServiceCommand XML
DECLARE @prevconversationid int
DECLARE @currconversationid int
SET @prevconversationid = - 1
DECLARE CrsFillQueue CURSOR FOR SELECT (SELECT id,conversationid,conversationseq,command
FROM TaskTable Task2
WHERE Task1.id = Task2.id
FOR XML AUTO, ELEMENTS, TYPE),
conversationid
FROM TaskTable Task1
ORDER BY conversationid, conversationseq
OPEN CrsFillQueue
FETCH NEXT FROM CrsFillQueue INTO @ServiceCommand, @currconversationid
WHILE (@@FETCH_STATUS = 0)
BEGIN
IF @prevconversationid <> @currconversationid
BEGIN
SET @prevconversationid = @currconversationid
IF @h IS NOT NULL BEGIN
SEND ON CONVERSATION @h MESSAGE TYPE EndConversation ('')
END
BEGIN TRANSACTION DIALOG_1
BEGIN DIALOG CONVERSATION @h
FROM SERVICE SenderService TO SERVICE 'ReceiverService'
ON CONTRACT MsgContract;
END
IF @h IS NOT NULL BEGIN
SEND ON CONVERSATION @h MESSAGE TYPE Msg (@ServiceCommand)
END
FETCH NEXT FROM CrsFillQueue INTO @ServiceCommand, @currconversationid
END
CLOSE CrsFillQueue
DEALLOCATE CrsFillQueue
END
GO
ALTER QUEUE [ReceiverQueue]
WITH ACTIVATION (
STATUS = OFF
) ;
/*
ALTER QUEUE [ReceiverQueue]
WITH ACTIVATION (
STATUS = ON, -- Activation turned on
PROCEDURE_NAME = [ProcessQueue] , -- The name of the proc to process messages for this queue
MAX_QUEUE_READERS = 100, -- The maximum number of copies of the proc to start
EXECUTE AS SELF -- Start the procedure as the user who created the queue.
) ;
*/
-- feed some testdata
INSERT INTO TaskTable (command,conversationid,conversationseq) VALUES ('some_procedure_call',1,1);
INSERT INTO TaskTable (command,conversationid,conversationseq) VALUES ('some_procedure_call',1,2);
INSERT INTO TaskTable (command,conversationid,conversationseq) VALUES ('some_procedure_call',1,3);
INSERT INTO TaskTable (command,conversationid,conversationseq) VALUES ('some_procedure_call',1,4);
INSERT INTO TaskTable (command,conversationid,conversationseq) VALUES ('some_procedure_call',1,5);
INSERT INTO TaskTable (command,conversationid,conversationseq) VALUES ('some_procedure_call',1,6);
INSERT INTO TaskTable (command,conversationid,conversationseq) VALUES ('some_procedure_call',1,7);
INSERT INTO TaskTable (command,conversationid,conversationseq) VALUES ('some_procedure_call',1,8);
INSERT INTO TaskTable (command,conversationid,conversationseq) VALUES ('some_procedure_call',1,9);
INSERT INTO TaskTable (command,conversationid,conversationseq) VALUES ('some_procedure_call',2,1);
INSERT INTO TaskTable (command,conversationid,conversationseq) VALUES ('some_procedure_call',2,2);
INSERT INTO TaskTable (command,conversationid,conversationseq) VALUES ('some_procedure_call',2,3);
INSERT INTO TaskTable (command,conversationid,conversationseq) VALUES ('some_procedure_call',2,4);
INSERT INTO TaskTable (command,conversationid,conversationseq) VALUES ('some_procedure_call',3,1);
INSERT INTO TaskTable (command,conversationid,conversationseq) VALUES ('some_procedure_call',3,2);
INSERT INTO TaskTable (command,conversationid,conversationseq) VALUES ('some_procedure_call',3,3);
INSERT INTO TaskTable (command,conversationid,conversationseq) VALUES ('some_procedure_call',3,4);
INSERT INTO TaskTable (command,conversationid,conversationseq) VALUES ('some_procedure_call',3,5);
INSERT INTO TaskTable (command,conversationid,conversationseq) VALUES ('some_procedure_call',3,6);
INSERT INTO TaskTable (command,conversationid,conversationseq) VALUES ('some_procedure_call',3,7);
INSERT INTO TaskTable (command,conversationid,conversationseq) VALUES ('some_procedure_call',3,8);
INSERT INTO TaskTable (command,conversationid,conversationseq) VALUES ('some_procedure_call',4,1);
INSERT INTO TaskTable (command,conversationid,conversationseq) VALUES ('some_procedure_call',4,2);
EXEC FillQueue
SELECT * FROM TaskTable
[/CODE]
View 3 Replies
View Related
Aug 29, 2007
We have a fully implemented service broker solution now that is capable of processing (and we've seen it) 300M+ messages/day. Now that the major pieces are in place, we are entering a tuning phase to increase throughput and reduce resource consumption (memory, etc) - and just in general make better use of the servers. One thing we see consistently is erratic numbers for transactions/sec and almost all of it is taking place in tempdb. The numbers can jump from 100 to 5K to 19K back down to 8K, etc. How to know what is causing this and what are some steps that can be taken to optimize the way service broker is operating. One thing I thought about is to make sure that all high volume queues are RECEIVING sets of data instead of TOP (1), but this is being done in almost all cases, with few exceptions. Any help or suggestions is appreciated. Also, any light that can be shed on service brokers usage of tempdb would be helpful (when, why and where its used).
View 3 Replies
View Related
Jun 4, 2007
Is it possible to use DTC (or cross database queries) with mirroring on SQL 2005 Service Pack 2?
Thnx,
GoranP
View 2 Replies
View Related
Sep 28, 2013
I have a VM with SP2013 and SQL Server 2012 SP1. I have installed the powerpivot plugin SP1.But when I run the PowerPivot for SharePoint 2013 configuration tool.
View 3 Replies
View Related
Jan 27, 2007
I have some problems getting my SSIS package to run in a transaction, I wonder if anyone can assist.
What I want to do is run one package, which consists of a
- 1) create staging table SQL statement
- 2) read (all) from Access MDB to staging
- 3) copy (only new) from staging table to real table
- 4) drop the staging table
I changed the package to "require" a transactions, and left all containers in it to "supported" (default, I think). I left all the transaction type to default "serializeable".
The package does not work, since the table I created on step one is not "seen" when step 2 wants to insert into it. If I set the package transaction back to "supported" (default) the package works, but an error on step 2 or 3 will not rollback changes and not remove the staging tables...
So, my question really is: How do I make step 1 results visible to step 2 in the same transaction? Or do I need to take a completly different approach for this?
Stupid question I think, but I seem to not be able to find the right way to handle this situation...
Thanks for reading!
Ralf
View 4 Replies
View Related
Apr 22, 2014
I have a update trigger. In this trigger I need to insert few records in 3 tables. If error comes in any of these inserts then previous inserts to get committed. This trigger was written in Sybase and it was possible to create transaction and commit the transactions.
View 4 Replies
View Related
Jan 15, 2007
Hi
I am Creating Click Once Windows Application with Reporting Services 2005.I have created Report and Published on Report Server.In my windows application I am successfully able to view my published report through report viewer control.
Now in my application I am getting a dataset from my custom webservice. I want this dataset data to be added to my report as datasource at runtime on Client Side ,as my report is on Report Server.
waiting for help!!
Thanks in Advance
Pankaj
View 8 Replies
View Related
Feb 25, 2008
Hi all,
Now I have some problem about adding interactive with user. I want to adding dropdownlist to report by using report desinger. This dropdownlist is used for send datetime parameter to query data. It is consist "month" and "year" list.
Can report designer do it?
If reporting designer cannot add dropdownlist to report...
There are some solution for solving this solution.
Thank you very much.
View 5 Replies
View Related
Apr 5, 2007
Is it possible to do this under SSIS 2005? How? I see I can add a reference to system.web.services.dll.. but then what?
The web service was developed in vb.net/vs.net 2005 and I have no problem adding and consuming it from a web page developed using vs.net 2005 - asp.net/vb.net.
Thanks for any help or information.
View 3 Replies
View Related
Dec 15, 2006
hi
I have installed SQL Server Reporting Service on window xp. everything working fine except one thing.
I have installed sql server with my a/c. my a/c have admin rights. when i giving http://dineshpatel/reports it is displaying page but Report Builder and other option are not displaying. I hope i don't have admin rights.
I have checked with local administrator login also but same problem.
what additional setting are require for admin rights?
Dinesh Patel
View 10 Replies
View Related
May 30, 2006
Hi there,
I have been using reporting service to generate my report and sending email with attachment report via subscription everyday. It is work well and no error.
My attachment file name is as same as reportname project. But customers asked me to add current date into an attachment filename which will help them to identify the report. I try to check in rsreportserver.config to change it but have no idea.
My reportname project is daily_file.rdl and my attachment filename in email is daily_file.csv. I'd like to change my attachment filename as day_month_year_file.csv.
Is there anyone know how to change an attachment filename to be not the same as reportname in reporting service 2005
Regards,
View 3 Replies
View Related
May 16, 2007
Hello Reporting Services 2005 users or Reporting Services Team,
I have done everything to get pass this error but no luck.
My setup is :- WIndows 2003 Standared Edition SP1
Sql Server :-
Microsoft SQL Server 2005 - 9.00.1399.06 (Intel X86) Oct 14 2005 00:33:37 Copyright (c) 1988-2005 Microsoft Corporation Standard Edition on Windows NT 5.2 (Build 3790: Service Pack 1)
Reporting Services starting SKU: Standard.
From the Reporting Services Configuration Manager:
I can see all other things configured except Encryption Keys(blue sign)
Initialization(Grey sign) and Execution Acct(Yellow sign)
My windows Service Identity is using :
NT AuthorityNetworkService
Builtin Acct :NetworkService
Web Service Identity :-
ASP.NET Service Acct :- NT AuthorityNetworkService
DataBase Setup :- Credentials Type :- Service Credentials
I have also done everything from here thanks to Göran
http://stevenharman.net/blog/archive/2007/03/21/Avoiding-the-401-Unauthorized-Error-when-Using-the-ReportViewer-in.aspx
and
http://support.microsoft.com/default.aspx?scid=kb;en-us;896861
and
http://forum.k2workflow.com/viewtopic.php?t=619&
If you guys any solution for this please let me know.
I was wondering could this be a scale-out deployment issue ?
I also get the error when setting up the DataBase Setup :
Although saving the database connection info succeeded the The report server cannot access internal info about this deployment to determine whetherthe current con fig is valid for this editionThis could be a scale-out deployment and that the feature is not supported by this editionTo continue use a diff report server database or remove the encription keys
My Error log file is below:-
w3wp!webserver!5!16/05/2007-14:52:46:: i INFO: Reporting Web Server started
w3wp!library!5!16/05/2007-14:52:46:: i INFO: Initializing ConnectionType to '0' as specified in Configuration file.
w3wp!library!5!16/05/2007-14:52:46:: i INFO: Initializing IsSchedulingService to 'True' as specified in Configuration file.
w3wp!library!5!16/05/2007-14:52:46:: i INFO: Initializing IsNotificationService to 'True' as specified in Configuration file.
w3wp!library!5!16/05/2007-14:52:46:: i INFO: Initializing IsEventService to 'True' as specified in Configuration file.
w3wp!library!5!16/05/2007-14:52:46:: i INFO: Initializing PollingInterval to '10' second(s) as specified in Configuration file.
w3wp!library!5!16/05/2007-14:52:46:: i INFO: Initializing WindowsServiceUseFileShareStorage to 'False' as specified in Configuration file.
w3wp!library!5!16/05/2007-14:52:46:: i INFO: Initializing MemoryLimit to '60' percent as specified in Configuration file.
w3wp!library!5!16/05/2007-14:52:46:: i INFO: Initializing RecycleTime to '720' minute(s) as specified in Configuration file.
w3wp!library!5!16/05/2007-14:52:46:: i INFO: Initializing MaximumMemoryLimit to '80' percent as specified in Configuration file.
w3wp!library!5!16/05/2007-14:52:46:: i INFO: Initializing MaxAppDomainUnloadTime to '30' minute(s) as specified in Configuration file.
w3wp!library!5!16/05/2007-14:52:46:: i INFO: Initializing MaxQueueThreads to '0' thread(s) as specified in Configuration file.
w3wp!library!5!16/05/2007-14:52:46:: i INFO: Initializing IsWebServiceEnabled to 'True' as specified in Configuration file.
w3wp!library!5!16/05/2007-14:52:46:: i INFO: Initializing MaxActiveReqForOneUser to '20' requests(s) as specified in Configuration file.
w3wp!library!5!16/05/2007-14:52:46:: i INFO: Initializing MaxScheduleWait to '5' second(s) as specified in Configuration file.
w3wp!library!5!16/05/2007-14:52:46:: i INFO: Initializing DatabaseQueryTimeout to '120' second(s) as specified in Configuration file.
w3wp!library!5!16/05/2007-14:52:46:: i INFO: Initializing ProcessRecycleOptions to '0' as specified in Configuration file.
w3wp!library!5!16/05/2007-14:52:46:: i INFO: Initializing RunningRequestsScavengerCycle to '60' second(s) as specified in Configuration file.
w3wp!library!5!16/05/2007-14:52:46:: i INFO: Initializing RunningRequestsDbCycle to '60' second(s) as specified in Configuration file.
w3wp!library!5!16/05/2007-14:52:46:: i INFO: Initializing RunningRequestsAge to '30' second(s) as specified in Configuration file.
w3wp!library!5!16/05/2007-14:52:46:: i INFO: Initializing CleanupCycleMinutes to '10' minute(s) as specified in Configuration file.
w3wp!library!5!16/05/2007-14:52:46:: i INFO: Initializing DailyCleanupMinuteOfDay to default value of '120' minutes since midnight because it was not specified in Configuration file.
w3wp!library!5!16/05/2007-14:52:46:: i INFO: Initializing WatsonFlags to '1064' as specified in Configuration file.
w3wp!library!5!16/05/2007-14:52:46:: i INFO: Initializing WatsonDumpOnExceptions to 'Microsoft.ReportingServices.Diagnostics.Utilities.InternalCatalogException,Microsoft.ReportingServices.Modeling.InternalModelingException' as specified in Configuration file.
w3wp!library!5!16/05/2007-14:52:46:: i INFO: Initializing WatsonDumpExcludeIfContainsExceptions to 'System.Data.SqlClient.SqlException,System.Threading.ThreadAbortException' as specified in Configuration file.
w3wp!library!5!16/05/2007-14:52:46:: i INFO: Initializing SecureConnectionLevel to '0' as specified in Configuration file.
w3wp!library!5!16/05/2007-14:52:46:: i INFO: Initializing DisplayErrorLink to 'True' as specified in Configuration file.
w3wp!library!5!16/05/2007-14:52:46:: i INFO: Initializing WebServiceUseFileShareStorage to 'False' as specified in Configuration file.
w3wp!resourceutilities!5!16/05/2007-14:52:46:: i INFO: Reporting Services starting SKU: Standard
w3wp!resourceutilities!5!16/05/2007-14:52:46:: i INFO: Evaluation copy: 0 days left
w3wp!resourceutilities!5!16/05/2007-14:52:46:: i INFO: Running on 1 physical processors, 2 logical processors
w3wp!runningjobs!5!16/05/2007-14:52:46:: i INFO: Database Cleanup (Web Service) timer enabled: Next Event: 600 seconds. Cycle: 600 seconds
w3wp!runningjobs!5!16/05/2007-14:52:46:: i INFO: Running Requests Scavenger timer enabled: Next Event: 60 seconds. Cycle: 60 seconds
w3wp!runningjobs!5!16/05/2007-14:52:46:: i INFO: Running Requests DB timer enabled: Next Event: 60 seconds. Cycle: 60 seconds
w3wp!runningjobs!5!16/05/2007-14:52:46:: i INFO: Memory stats update timer enabled: Next Event: 60 seconds. Cycle: 60 seconds
w3wp!library!5!05/16/2007-14:52:48:: i INFO: Call to GetPermissions:/
w3wp!library!5!05/16/2007-14:52:48:: i INFO: Catalog SQL Server Edition = Standard
w3wp!library!5!05/16/2007-14:52:48:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.ReportServerServiceUnavailableException: The Report Server Windows service 'ReportServer' is not running. The service must be running to use Report Server., ;
Info: Microsoft.ReportingServices.Diagnostics.Utilities.ReportServerServiceUnavailableException: The Report Server Windows service 'ReportServer' is not running. The service must be running to use Report Server.
w3wp!library!5!05/16/2007-14:52:48:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.ReportServerServiceUnavailableException: The Report Server Windows service 'ReportServer' is not running. The service must be running to use Report Server., ;
Info: Microsoft.ReportingServices.Diagnostics.Utilities.ReportServerServiceUnavailableException: The Report Server Windows service 'ReportServer' is not running. The service must be running to use Report Server.
w3wp!library!5!05/16/2007-14:52:49:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.ReportServerServiceUnavailableException: The Report Server Windows service 'ReportServer' is not running. The service must be running to use Report Server., ;
Info: Microsoft.ReportingServices.Diagnostics.Utilities.ReportServerServiceUnavailableException: The Report Server Windows service 'ReportServer' is not running. The service must be running to use Report Server.
w3wp!library!5!05/16/2007-14:52:49:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.ReportServerServiceUnavailableException: The Report Server Windows service 'ReportServer' is not running. The service must be running to use Report Server., ;
Info: Microsoft.ReportingServices.Diagnostics.Utilities.ReportServerServiceUnavailableException: The Report Server Windows service 'ReportServer' is not running. The service must be running to use Report Server.
View 8 Replies
View Related
Feb 25, 2008
Hi, Apologies in advance if you get confused by reading this.... I am trying to create an additional step in the Create Wizard User Control that is provided by ASP.net. The additional step that I want to add will come after a user will create their username, password, email etc. The information which I want to save in the extra step are details such as firstname, lastname, address, height, weight etc. (I am creating an online weight management system for dieticians).When I run through the application, the username, password etc save perfectly to the database, but nothing happens with the other "personal information". There are no errors thrown so I don't know where the problem is coming from.I have included the code below as I have it:The code behind the Register.aspx file is as follows: <asp:SqlDataSource ID="InsertExtraInfo" runat="server" ConnectionString="<%$ ConnectionStrings:ASPNETDBConnectionString1 %>" InsertCommand="INSERT INTO [aspnet_UserInformation] ([first_name], [surname], [address1], [address2], [city], [country], [number], [height], [weight]) VALUES (@txtFirstName, @txtSurname, @txtAddress1, @txtAddress2, @txtCity, @txtCountry, @txtNumber, @txtHeight, @txtWeight)" ProviderName="<%$ ConnectionStrings:ASPNETDBConnectionString1.ProviderName %>"> <InsertParameters> <asp:ControlParameter Name="txtFirstName" Type="String" ControlID="txtFirstName" PropertyName="Text" /> <asp:ControlParameter Name="txtSurname" Type="String" ControlID="txtSurname" PropertyName="Text" /> <asp:ControlParameter Name="txtAddress1" Type="String" ControlID="txtAddress1" PropertyName="Text" /> <asp:ControlParameter Name="txtAddress2" Type="String" ControlID="txtAddress2" PropertyName="Text" /> <asp:ControlParameter Name="txtCity" Type="String" ControlID="txtCity" PropertyName="Text" /> <asp:ControlParameter Name="txtCountry" Type="String" ControlID="txtCountry" PropertyName="Text" /> <asp:ControlParameter Name="txtNumber" Type="String" ControlID="txtNumber" PropertyName="Text" /> <asp:ControlParameter Name="txtHeight" Type="String" ControlID="txtHeight" PropertyName="Text" /> <asp:ControlParameter Name="txtWeight" Type="String" ControlID="txtWeight" PropertyName="Text" /> </InsertParameters> </asp:SqlDataSource>
Then the code I have behind the Register.aspx.cs page is: protected void CreateUserWizard1_CreatedUser(object sender, EventArgs e) { TextBox UserName = (TextBox)CreateUserWizard1.FindControl("UserName"); SqlDataSource DataSource = (SqlDataSource)CreateUserWizard1.FindControl("InsertExtraInfo"); MembershipUser User = Membership.GetUser(UserName.Text); //object UserGUID = User.ProviderUserKey; DataSource.InsertParameters.Add("UserId", UserGUID.ToString()); DataSource.Insert(); } I know there is a problem with the code on the aspx.cs page but I cant figure it out. I need the username / password information to relate to the personal details information. I know I have to create a foreign key in the asp_UserInformation table that will link to the username in the asp_Membership (where all the username / password info is stored) Any help will do, I'm almost in tears here!!!The Spud
View 1 Replies
View Related
Sep 3, 2014
add a number to the end of an ID to create a series.For example, I have an EventID that may have many sub events. If the EventID is 31206, and I want to have subEvents, I would like have the following sequence. In this case, lets say I have 4 sub Events so I want to check the EventID and then produce:
312061
312062
312063
312064
How can I check what the EventID is, then concatenate a sequence number by the EventID?
View 9 Replies
View Related
Jan 9, 2007
Before I start coding ...
Is there any existing software/trick/hack to create a Report Project from the DataSources and Folders/Reports on a Report Server, i.e. the inverse of Deployment?
Would there be anybody interested in such a thing, and, if not, why not?
View 1 Replies
View Related
Apr 27, 2007
I would like to know whether there is any way to add a button in report. I have 3 report parameters. On clicking the button, the current values of the reports are to be obtained and saved in database i.e saving the report configuration. I will use this saved configuration to form the url and view report directly.
Thanks,
Pradeep
View 3 Replies
View Related
Apr 22, 2008
Hi There,
I have the following query:
SELECT NATNLACCT, IDCUST, TEXTSNAM, AMT
FROM
VIEW_ARCUS
where amtbaldueh != .000
order by NATNLACCT
but i want to display the data something similar as below. How do I create the total lines after each natinlacct grouping? I don't know how to add it in the report layout. I have the columns data and grouping right but I'm just not getting how to add that total line after every group.
Natinlacct idcust textsnam amt
Doda 1234 abcd $101
Doda 5678 efgh $200
Doda 9876 ijkl $300
Doda Total $601
Nava 5847 jhgf $230
Nava 5487 lfde $130
Nava 3587 lrsd $100
Nava Total $460
Thanks
Rhonda
View 3 Replies
View Related
Jan 7, 2007
I would like to allow users to add a comment to a report. What is the best way to do this? When the report is run I would like users to be able to see all comments and which user reported them and the date and time the comment was entered
View 1 Replies
View Related
May 22, 2005
Hi there,
I have decided to move all my transaction handling from asp.net to stored procedures in a SQL Server 2000 database. I know the database is capable of rolling back the transactions just like myTransaction.Rollback() in asp.net. But what about exceptions? In asp.net, I am used to doing the following:
<code>Try 'execute commands myTransaction.Commit()Catch ex As Exception Response.Write(ex.Message) myTransaction.Rollback()End Try</code>Will the database inform me of any exceptions (and their messages)? Do I need to put anything explicit in my stored procedure other than rollback transaction?
Any help is greatly appreciated
View 3 Replies
View Related
Mar 12, 2007
Hi! I'm kinda stuck in getting a particularly tricky qurey...
SQL Code:
Original
- SQL Code
SELECT DISTINCTROW Categories.CategoryName, Products.ProductName, Sum(CCur([Order Details].[UnitPrice]*[Quantity]*(1-[Discount])/100)*100) AS ProductSales
FROM (Categories INNER JOIN Products ON Categories.CategoryID = Products.CategoryID) INNER JOIN (Orders INNER JOIN [Order Details] ON Orders.OrderID = [Order Details].OrderID) ON Products.ProductID = [Order Details].ProductID
WHERE (((Orders.ShippedDate) Between #1/1/1995# And #12/31/1995#))
GROUP BY Categories.CategoryName, Products.ProductName;
SELECT DISTINCTROW Categories.CategoryName, Products.ProductName, SUM(CCur([ORDER Details].[UnitPrice]*[Quantity]*(1-[Discount])/100)*100) AS ProductSalesFROM (Categories INNER JOIN Products ON Categories.CategoryID = Products.CategoryID) INNER JOIN (Orders INNER JOIN [ORDER Details] ON Orders.OrderID = [ORDER Details].OrderID) ON Products.ProductID = [ORDER Details].ProductIDWHERE (((Orders.ShippedDate) BETWEEN #1/1/1995# And #12/31/1995#))GROUP BY Categories.CategoryName, Products.ProductName;
The above SQL statement is from the famous Northwind DB and it is called the "Product Sales for 1995" query...
I have Transactions instead of Orders and TransactionDetails instead of [Order Details]
Now, I want something similar... I want to render Dead Stock and Fast Stock... I'm using ComponentOne's Reporting solution and it pretty much like Access.
Anyways, I want to supply a date for TransactionDetail.TransactionDetailDetail as starting date (ending date is always Today()) and within this range, i want to get a list of products that are sorted ascending on Products.ProductUnitSold. This should return a list of products (grouped by category name) showing SubCategoryName, ProductName, ProductUnitPrice, TotalSold...
If total sold is ascending = Dead Stock
If total sold is descending = Fast Stock
View 13 Replies
View Related
Mar 5, 2008
We have a few reports that we would like to require the user to enter a password before they can view the report. Is there a way to do this?
Thank You
Kaysie
View 4 Replies
View Related
Jul 4, 2007
I am very new to the SQL report server, but have used other reporting tools before where I could add (or import) a new table of information directly into a report itself. I would do this when I required information in the report that is not part of the datasources tables.
For example, I use it for tying into the report complex sales budget numbers that are not included anywhere in the main datasource. I would simply add the table to my query I created, create my links, and I have a sales vs budget report.
Do you know if this is possible using the SQL reporting tools, or does the table need to be part of the main datasource ?
Thank you in advance.....
Chris B.
View 2 Replies
View Related
Jan 10, 2006
I am using Visual Studio 2005 to create a report from a OLAP cube.
I am building a drop down list for user to select the desired branch. My mdx query as follow:
with
member [Measures].[ParameterCaption] AS '[Company].[Branch].Currentmember.Member_Caption'
member [Measures].[ParameterValue] AS '[Company].[Branch].Currentmember.Uniquename'
select
{[Measures].[ParameterCaption], [Measures].[ParameterValue]} on columns,
{[Company].[Branch].ALLMEMBERS} on rows
from [Profit And Loss]
I would like to add a blank row in the result set, such that I can consider that as selecting ALL Branch
Any suggestions on what should I do?
View 1 Replies
View Related
Oct 23, 2007
HI guys,
I want to add some customized text to the report programmatically before the report is rendered. As it has to be done for all the reports, I don't want to do it report by report.
For example, the report needs to display user selected filters.
Any thoughts?
Thansk.
View 4 Replies
View Related
Jan 7, 2008
Hi, I have a SRS report that I would like to a add an PDF file to be visibleprintable on the report. The data stored is the file location of the file.
I tried using an image; however it does not recognize the PDF files.
Please advise.
View 3 Replies
View Related
May 18, 2007
Hi all,
I am stuck in the following situation, I have following query:
SELECT EM1.VALUE AS 'P_ABC', EM2.VALUE AS 'P_XYZ', COUNT(EM1.VALUE) AS 'COUNTS'
FROM TABLE_1 EM1, TABLE_1 EM2
WHERE EM1.EXTENDED_PROPERTY_GID IN (SELECT GID FROM TABLE_3 WHERE NAME = 'ABC' )
AND EM2.EXTENDED_PROPERTY_GID IN (SELECT GID FROM TABLE_3 WHERE NAME = 'XYZ' )
AND EM1.DOCUMENT_METADATA_ENTRY_GID = EM2.DOCUMENT_METADATA_ENTRY_GID
group by EM1.VALUE,EM2.VALUE
There is foreign key relation between EXTENDED_PROPERTY_GID OF TABLE_1 AND GID FROM TABLE_3
Now, I want to create an ad hoc report but the problem is when I add EM1.VALUE to display the P_ABC, I am not able to add EM2.VALUE after that, may be because refere to same column of same table. I have to add EM1.VALUE and EM2.VALUE both to display result but I am not able to do it.
What is the solution for this problem ? Its kind of urgent.
Thanks,
prashant
View 1 Replies
View Related
Feb 7, 2007
Hi
I want to add Hyperlink to report, using report builder.
or to add it to report model
does any body has a clue
ruvy
View 3 Replies
View Related
Dec 5, 2007
every 1 hour my server's computer is restarting !
when the windows finish restarting i open the Event viewer and see that what coused it is the error :
"Report Server Windows Service (MSSQLSERVER) cannot connect to the report server database."
Event 107
source : "Report Server Windows Service (MSSQLSERVER)"
How can i solve it ?
View 4 Replies
View Related
Mar 12, 2007
Hi guys,
Is it possible at runtime to decide what subreports you want in your master report. Is this possible in RS?. Many Thanks in advance.
View 6 Replies
View Related
Mar 13, 2008
Is it possible to add new data to an existing report. I already updated the SQL query, but the new data does not appear within the report. How can I modify the rows, columns and data fields???
Thanks in advance!
View 5 Replies
View Related