.NET Reporting System: IMP Queries?

Aug 2, 2011

We have a reporting system where in we are getting unexpected results:

1) The size of reports at different time of interval is different?

2) The reports are writen as pdf to a directory. When we have thousand of older unused pdf(which will not get merged) in the directory the Adobe Life Cycle(to murge the PDF) throws error.But when we clear the directory by deleting the old unused pdf, it works fine?

3) Some of the pdf that are rejected by Adobe life cycle may or may not be corrupted. Meaning they may or may not open up with Adobe Reader, manually.

View 1 Replies


ADVERTISEMENT

DB/Reporting :: Queries In SQL Servver SSMS?

Nov 4, 2010

I'm new to SQL Server but have been using Access with Visual Basic for quite some time.I am moving an existing project from Access to SQL Server 2008 Express R2. Using the SSMS I redid a number of Queries and SSMS puts the queies in a folder entitled "Project" which is not pointed at any specific database on the server.When I try to call a query in Visual Basic I get the error "Could not find stored procedure...".

Obviously there is something that I am missing, but I don't know what. Can anyone tell me where I should have these queries filed in SSMS?

View 1 Replies

DB/Reporting :: MySQL Parametrized Queries Not Working?

Sep 3, 2009

I got the whole database thing figured out now I've got a problem with these parametrized queries. If I remove them and just explicitly put in the data I'm looking for the datareader works, however doing as I have below returns no results in the datareader.

[Code]...

View 2 Replies

DB/Reporting :: Perform SQL Queries On A Text Tab Delimited File

Aug 24, 2010

I have a program that generates text tab-delimited files with a header row and sometimes a units row followed by data.

Example:

FirstName LastName Birthday
Michael Jordan 6/6/66
Alan Jackson 7/7/77

or

FirstName LastName Birthday
Name Name Date
Michael Jordan 6/6/66
Alan Jackson 7/7/77

I would like to be able to perform SQL queries on these files. How can I connect to a text tab delimited file to either pretend it is a database table or import it into SQL as a table, preferably through VB.NET? I could have 300,000 rows, and the fields are all numbers, not text... I have manually imported these files into SQL before using management studio, so I know it is possible but I would love to be able to do it programmatically.

Is there any way I can get the SQL code from this process because it does exactly what I need it to do but it is manual. There is an SSIS package that I saved, but I do not know what that is.

View 1 Replies

DB/Reporting :: SQL Query - Use The Data Properly With Different Forms And Different Controls With Queries

Apr 21, 2008

I am working on a Data Survey Project and first I have a few questions about the different types of databases, and second, I need help querying my tables that have relationships.

1. I need a database that is stand alone. It is just the back end for the program. Simply to hold all the data an employee gets while out on a job. So would I be better using access, or SQL Express? I have played with both, but I do not want a large redistribution to my user machines. When I compile and produce this app does the SQL Database still work without installing any SQL Technology? Or do they have to go in after they install my app, and install Express?

2.Overview: I suppose depending on the first question regarding the database, it might change this question a bit, but none the less...I have 4 tables( using Access at the moment) I will be generating Reports based on data in the database. I haven't gotten that far yet. *Project* is the table that holds all the details that pertain to the job and client. It has a "one-to-many" relationship to *Survey*. So for one customer there are going to be many Survey Records. *Project Type* also has a 1-to-many back to *Projects*. Parts is kind of an orphan, but is linked to the *Survey* table with a one to many. So there can be many parts for one survey. I wanted this table for a drop down box, so the user could just simply select what hardware he was using instead of typing all the names and parts.

So in VS 2008 using the Designers and related Query tools, how do I constrain the Survey Data to one Customer? I have one form that opens from a button that is "New Project" and then there are all the *project* fields listed, so the user fills out the info and hits accept and that opens a new form called "frmSurvey" I need to add some code to the accept button to check what type of project is selected from the frmNewProject and then run a select query based on that. How do I write query statements in the code section of the form, without using the Visual Database tools?

Ill stop here, and get these questions out of the way first. If I could just get a handle on how to use the data properly with different forms and different controls with my queries, that would be great.

DATABASE

CODE:

View 4 Replies

Working With System.collection.generic.Ienumerable/XML Linq Queries?

Oct 22, 2009

This is really a continuation from my earlier post. I've never worked with this datatype/collection (system.collection.generic.Ienumerable) before so I'm struggling to declare the query globally so I can reference the results within other sub routines/functions. I also am struggling to convert it to other types.how I can convert the collection of xml elements/system.collection.generic.Ienumerable into an xmltextreader (I know I will have to change the query below as it select the value of the node and not the node itself) I imagine by converting the query result to system.IO.stream My first port of call was MSDN but I find the material very difficult to understand for this particular subject.

[Code]...

View 3 Replies

DB/Reporting :: Error: Cannot Perform '=' Operation On System.Int32 And System.String

Mar 6, 2010

I wrote the code below which calculates the length of a line on the form and save record. An error occurs when the programme tries to save the record. It gives me "Cannot perform '=' operation on System.Int32 and System.String" error. I checked the data type of "ID"(int), "Microscope"(Varchar), "Magnification"(int) and "Calibration"(Decimal), and they are fine so far as I know.

Code:
Private Sub btnEnd_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnEnd.Click
'Check if the length textbox is not empty

[Code].....

View 4 Replies

LINQ Queries - Combine The First 3 Queries Into A Single Query And Place In A List?

Jan 6, 2010

I am writing a message system on my server, the xml is something like this

<xml>
<entry>
<sender>[code]....

my problem now i guess is 2 fold, i wish to combine the first 3 queries into a single query and place in a list or a collection or is there a way to do this with a single query that will give me my desired result?

View 1 Replies

DB/Reporting :: Configuration System Failed To Initialize

May 14, 2008

Have you tried configuring ASP.Net Membership together with Enterprise Library DAAB? When I run my application it throws the following exception:
"Configuration system failed to initialize"
It seems that it encounters a problem that normally don't occur when I setup my configuration file.

View 1 Replies

DB/Reporting :: Login/ User System - Best Option?

May 16, 2011

I'm creating an app like a CRM ( Costumer Relationship Managment ) for a school but I have some questions I'd like to be answered.

It will have a main user ( Administrator ) and that user can create another users to access the app. The app will work locally and I would like to know a method to save that information @ localhost without being acessible to edit or view by other users.

Im thinking in a Access DB with all info and then make all information needed. But how to secure it without anyone else could access it or modify id? An encryption method would be the best way?

View 1 Replies

DB/Reporting :: VB Login System With User Levels?

May 15, 2008

I need to create an application that allows staff members to login and see different things.I need to be able to have different user levels for this so that certain staff can see some things and other staff can't.I would like the login system powered by the MS SQL Database that the rest of the programs data is stored in.

View 4 Replies

DB/Reporting :: Charity Library Management System - VS2010

Aug 15, 2011

I have read syedwaqasali95's thread but found it rater confusing so thought I would post my query separately I am trying to build a library system for a local blind person's charity using Visual Basic. Their current system of recording is an Excell Spreadsheet that was created for them by someone else. What they have asked for is something more User Friendly.I thought about using Access first, but I wanted to hide the Data where it couldn't be modified by accident, and I wanted to make it as user friendly as possible so I opted for a VB WindowsFormApplication that will have a simple user interface albeit having to get more complicated under the hood.The library has two types of items that they lend, Audio Books, and Music CD's. Also there will need to be a record of the members creating three tables for my database.I should state that the library has a laidback lending approach whereby it is less worried about how long you borrow a book or CD, rather it just wants to keep a record of the location of said items.

I need help/pointing in the right direction with the following things 1) I want to prevent any ability to directly edit the datagridview data instead I want the user to highlight the entry in the datagridview, and then click an edit button which will open a form containing the record to be edited.

2) I want to be able to call information from the borrowers database, and to be able to apply it to the books data, so that the user can see who has what book at any given time.

e.g. the user highlights a record in datagridview and clicks the "Lend" button, this pops out a form allowing the user to search/choose from the list of members, once a member has been selected the save button (or confirm lend) would add the member info to the book table and close the form

3) I have a large amount of data (1500 records) in the original excel document, I would like to import these (once the database is ready to be compiled) so that they don't have to be re-input.

View 4 Replies

DB/Reporting :: System Data - SQL Client Permission Error

Oct 12, 2004

When I am trying to connect to database from VB.net, I am getting error.
This is my code.
Public g_Conn As new SqlClient.SqlConnection
With g_Conn
.ConnectionString = "user id=sa ;data source= CCTSRV8; " & _
"persist security info=True; " & _
"initial catalog=pubs ;password=mrwizard"
.Open()
End With
I am getting system.data.sqlclient.sqlclientpermission error.

View 11 Replies

DB/Reporting :: Attach A Dataset To A Table (MS Reporting)?

Jan 9, 2009

I want to do something like this:

Code:
'create a dataset and a table
Dim ds As New DataSet

[code].....

View 5 Replies

.Net Cannot See JET Queries?

Dec 5, 2010

I have a Access 2003 backend db and I'm using vb 2005 to connect to the db via conntection string. It works ok! I can see all the tables but only some of the queries. Why should some queries be absent? In 1 query I have a user define function which cuts up a string. I've created a new VB project with a new connection but the same result. I've compacted the database with not change.

View 2 Replies

Any Way To Combine Two Queries?

Jun 8, 2011

I am trying to UNION the two queries below without success.
Dim
ds1
As
New
DataSet
Dim
MyConnection1 As
New
OleDb.OleDbConnection(GetPOWERConnectionString())
[Code] .....

View 2 Replies

Asp.net - Search Queries In .net?

Aug 3, 2011

I am trying to perform a search query using drop down boxes with a button named search. I want it to bring up the data that is searched for. I dont know where to start from, i have looked around for some coding and different ways to do it but they seem complicated, this is the bit of ASP that is my weakness, need some assistance and guidance. below is the code for the page;

<%@ Page Language="VB" MasterPageFile="~/MasterPage.master" AutoEventWireup="false" CodeFile="ForSale.aspx.vb" Inherits="Users_ForSale" title="Properties For Sale" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>

[code]......

View 1 Replies

Asp.net - SQL Queries Through .NET And JSON?

Feb 19, 2010

I'm trying to figure out how to do SQL queries towards an SQL 2005 Express server and format the return value to JSON. I got the queries working using this (perhaps very newbie-like) code;

Imports System
Imports System.Data
Imports System.Data.SqlClient
Imports System.Web.UI

[code]....

View 3 Replies

Available WMI Queries For ManagementObject

Aug 6, 2009

Where can I find informations on which WMI queries are in fact available for .NET interface through ManagementObjectSearcher. The command below returns exception for "Win32_LogicalDisk", but works for "Win32_Environment". Every reference in msdn directs to msdn library, which contains all Win32 and COM development classes (that seems not to be available from vb .net code):

[Code]...

View 2 Replies

Multiple Sql Queries?

Nov 5, 2010

I have a form that will have at least 3 seperate sql queries that I want to have submitted with an onclick event.

View 4 Replies

Parametrized Queries With ADO.NET

May 18, 2012

I've been going through a lot of forums and see a lot of mention of ADO.NET and how it's better to use. I guess because it's newer and being maintained with current times?I've done google searches for this, but every time I see different programming languages other than VB.NET implementing param queries with ADO.net, or it brings me to results that have oledb commands again.Is there a good ADO.NET for VB.NET tutorial with parametrized queries?

View 3 Replies

Queries - Loop Through Dgv

Dec 14, 2011

finish my querie, it works for the first 2 rows, I need ti to loop through my dgv:

[Code]...

View 4 Replies

Run .sql Files Queries In .net?

Sep 22, 2010

I want to send the a vb.net application which will run some updates on the database. I have built the sql script files which i would normally run thru query analyser but that is not available thru MSDE.I know i can use OSQL or ISQL to run these scripts but i really want to run them thru a VB.Net application.here is the code i'm using which is generating an error beacuse i'm trying to execute more than one statement?

Dim connectionString As String = ' CONNECTION STRING IS HERE
Dim conn As New SqlClient.SqlConnection(connectionString)
Dim cmd As New SqlClient.SqlCommand

[code]....

View 9 Replies

Update Queries In VB?

Nov 23, 2009

i have a form which once the user has entered their correct Account No they will access the jobs relating to their number. I now need to use and update query so that once I select yes in the Query handled box, after clicking the update button, this row will then be deleted from the table. Here is the code that I have so far:

Public Class Form1
Private Sub Label1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Label1.Click
End Sub

[code]....

View 1 Replies

Using Variables In SQL Queries

May 18, 2009

I am a beginner when it comes to VB express. I went to the FAQ and found what looked like the answer to my question in "Database - How can I put the value of a variable/control into my SQL statement?" which said I should use thecode ...... where Field = ' " & variablename & " ' at the end of the SQL statement

I am using a field defined as a nchar with 10 charecters and my variable is defined as a string. my field has been given the value "abcdefghij" so it is full to avoid confusion with spaces and even though the variable is identical and I have used the len command to check there are no hidden spaces etc. When I run the query I get no records selected. What am I doing wrong?. If I use Where Field = 'abcdefghij', ie specify the value in the SQL I get the correct records selected but this does not give me the flexibility I need

View 6 Replies

.net - Know To Refresh Linq Queries?

Aug 24, 2011

I have a basic grid of Linq2Sql entities (frmList). I have a separate form for editing (frmEdit). frmEdit has its own DataContext (as that appears to be the recommended way). How can I tell when my detail form has saved changes?

I don't see a built-in method. I am considering raising an event on the detail form when I save the datacontex, but not sure how I consume this event on frmList, and I have a feeling these events are already created for me somewhere?

View 1 Replies

App Makes Use Of Many Queries And Commands?

May 6, 2010

I have a data driven application in <acronym title="Visual Basic">VB</acronym> which works with an SQL Server 05 Database.Since this app makes use of many queries and commands, occasionally i'me getting a timeout error as the connection pool is full. So i figured that at a specifc point in time within the app,i'll clear the connection pools using the ClearAllPools method rather than increase max pool size.

I'm using the performance monitor on my XP development machine (NumberOfPooledConnections) however not once do i see the number of Pooled Connections reset to 0 even when that method is called.How can I determine that my solution is working (if it is) before I deploy the update?

View 1 Replies

Fundamental Vb And Csv Reader Queries?

Apr 15, 2012

always had a problem getting my head around it. I don't have a very strong mental model of how the code flows. My main problem is i think i understand the syntax, but not really its application. Any links people found useful would be great.

Couple of questions. The code below doesn't make sense to me (written by someone else) the application is basically a csv reader, but manipulates the data.
Public Sub entryType()

[code].....

View 1 Replies

Get Multiple Insert Queries From C#?

Apr 23, 2009

I am using C# and MSAccess as my database.

Code:private void ExecuteQuery(string strempname,string strQuestion,string IndividualRating,string OverallRating, string Comment1, string Comment2,string Comment3, string SessionName) { string strQuery= string.Empty; try { strQuery = "insert into FeedbackDetails(EmpName,Question,IndividualRating,OverallRating,Comment1,Comment2,Comment3,SessionName)"

[code]....

so this actually opens and close connection for every method. but i need to open and close the connection only one time. so how to customize this code to achieve my need. now i am hitting database for 14 times in a button click as of now. instead i need to hit only once but all the rows has to be inserted in my database.i am using MSAccess as Database.

View 3 Replies

How To Create Parameterized Queries

Dec 4, 2009

Using parameterized queries with ms access 2003 integration. To search any data according to different criteria.

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved