DB/Reporting :: Unable To Add Data Source?
Sep 3, 2008
When trying to create a new data source to a sql database (database up and running with no problems) I get the following error message when testing the database connection
Quote:
Unable to open the physical file "". Operating system error 32: "32(The process cannot access the file because it is being used by another process.)".
View 1 Replies
ADVERTISEMENT
Jun 6, 2009
when I tried to add a new data source using the wizard. But after connection has been tested succesfully ,I get this error message:could not load type 'microsoft.visualstudio.data design.sync designer.sync facade.sync manager from assembly 'Microsoft.VisualStudio.DataDesign.SyncDesigner.DslPackage,
View 2 Replies
Jul 10, 2009
I built a database from an .sql script file in Microsoft SQL Server 2008 Express Management Studio.Now, I need to connect an application I'm developing to this database. So in Visual Basic 2008 Express (that's what I use) I go to:
Data-->Add New Data Source-->Database-->New Connection
In the dialog which pops up (name: Add Connection) I set:
Data Source = Microsoft SQL Server Database File
[code]....
View 2 Replies
Dec 21, 2009
I have installed all of the patches and Hotfixes that I can find and truth be told, this is so enigmic that i dont know where to go to.I have been working on a project for a year and just recently I went to add a database (data source) and the Tab was gone. I thought I did something wrond so i went to Data -> Data Source and nothing happens. whats funny is that I cannot do what I want and add the datasource.
I also have VS 2005 installed (which I am forced to use) and here I have no problem.
Can anyone or does anyone have a simular problem and a resolution??I really would love to use all that is available in VS08 and not having to use a much older version...
View 5 Replies
May 22, 2008
I have an Access database that is updated directly in Access. I'm trying to write a program to 'monitor' the database, and have a DataGridView control showing the contents. When the program is first started, it shows the current data in the DB fine, however, I've been unable to get it to refresh with any updated data from the mdb file. I have a timer running on 5 second intervals, and if i clear the dataset, the DataGridView refreshes to empty.
[Code]...
View 10 Replies
May 5, 2010
I am using .rdlc Microsoft Reporting reports. I have a form with one reportviewer on it. What I want to use is a combo box where they select the report and then click generate, and it shows a specific report. I have this code so far that changes the report:
[Code]...
View 2 Replies
Feb 10, 2012
I refreshed my data sources to include additional items from the SQL Server databases and it appears that my entire data source from my VB.NET project disappeared.I am using Entity Framework. I may have clicked on something wrong, not quite sure. Unfortunately I can't recreate the Data Source without creating a new Entity and Data Model.I can delete the entry in the App.Config file and recreated it, however things aren't quite right.Is there a way that I can recreate my Data Source from the entry that is in my App.Config file...since that appears to have remained intact.BTW, I can go to my Data Model and successfully refresh from there, however my project isn't connecting to the database so I have quite a number of errors until I can get reconnected.
View 4 Replies
Oct 11, 2010
I have an Access database and I want to view on a datagridview specific rows. For that I used the following :
CasesBindingSource.Filter =
"OfferDate Between #1/1/1997# And #12/31/1997#"
Cases is the table, OfferDate a field of the table wich is DateTime type.
When I use Between operator I get the following error :The expression contains unsupported operator 'Between'.
View 2 Replies
Apr 27, 2008
Does anyone know of any open source ETL applications written in either vb or c#?I am looking for some or all the features below:
* Read text files and have the ability to split files.
* Suppress records for failing validation rules.
* Transform values.
* Output the resulting data source to either one or many files and or database tables.
[code]....
View 1 Replies
Apr 27, 2008
I have created a web application that is used within our company to track our inventory.What I would like to do is create a windows forms application that I can distribute to certain managerial staff with some additional functions.I have tried googling this, but am unable to come up with any relevant documents. What I need is some direction on how to implement login through my windows forms application that will validate login against the ASPNET_DB so that the same roles and logins can be used.
View 1 Replies
Jan 28, 2009
I had this - in the CURRENTCHANGED event of my BINDING SOURCE.
Private Sub vendorBS_CurrentChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles vendorBS.CurrentChanged
If Me.CMCStarting Then Exit Sub
vendorBAL_C.vendorUpdate()
End Sub
This calls a sub in the class vendorBAL_C that does this
Private Sub SaveData()
_adapter.Update(_vendortable)
[code]....
The vendorUpdate sub calls two .Update's on my SQL Data Adapter.Only the first one is getting saved._vendortable gets saved - changes to _vendorcapabilitiestable does not.Those two DATATABLES are getting created by
_adapter.Fill(_vendorSet)
_vendortable = _vendorSet.Tables(0)
_vendorcapabilitiestable = _vendorSet.Tables(1)
To add just a tad complexity to all this I'm making changes to _vendorcapabilitiestable through a filtered binding source in the UI.
capabiltiesBS.DataSource = vendorBAL_C.capabilitiesTable
.
.
.
Private Sub CapabiltiesTreeView_AfterSelect(ByVal sender As Object, ByVal e As System.Windows.Forms.TreeViewEventArgs) Handles
[code]....
I tried calling .EndEdit's on my binding source - no change.Changes to the second table are not being saved.
View 7 Replies
Oct 7, 2008
i am trying to create an sql parameter but i am having an error. it gives me an error like this: Unable to cast object of type 'System.Boolean' to type 'System.Data.SqlClient.SqlParameter'. on all of this line
Dim paramcollection As New List(Of SqlParameter) ' no error on this part but the lines below gives me an error:
paramcollection.Add(New SqlParameter("@CGLCode", SqlDbType.VarChar).Value =
[Code].....
View 4 Replies
May 17, 2011
[code]I want users to be able to click on the checkbox in field4 and add all of the data plus the word Holiday to my database when they click on the box in that field, but right now it's not allowing me to click on the checkbox, can someone please assist? Also, I did have this working for that field but it would only allow me to add the first line of data, what in my code would not allow for the additional lines to not add their data as well?
View 1 Replies
Aug 3, 2009
I have been using Access 200 as my database of choice with Visual Basic 2008 Express.I am trying to start usingSQL Server Express but having a difficult time with it. All of the instrctions I have tri9ed seem to be written for someone who already knows the answers. Here's my problem.I wrote a program using Access, with one table and five queries and it works fine. Using that program as a baseI created an SQL Server database within Visual basic. Naturally I changed my code to reflect SQL rather then OLEDB.When I try to run the program I get an error message telling me that the database is not registered. When I use the SQL Server Management Studio Expres, it shows my database by give a big message that the database is not registered.
View 3 Replies
Feb 22, 2011
Modifying data with the ListView's EditItemTemplate by programmatically settings its DataSource property and calling its DataBind method. I don't have option to use data source control for ListView. All ListViews are bound with data from code-behind. So, I have to handle the Edit/Update mode of ListView manually. [Code]
View 2 Replies
Jul 7, 2011
I'm trying to connect a VB application (2010) to an MS Access DB by adding a data source from the data menu but I receive this error message "The connection you selected uses a local data file that is not in the current project.Would you like to copy the file to your project and modify the connection ?
If you copy the data file to your project, it will be copied to the project's output directory each time you run the application" and the options are (yes , No , Help)
If I choose Yes I will not be able to make the application 'device independent ' since it will not be copied under the bin , and if I choose No , changes won't be applied to the DB
View 5 Replies
Apr 23, 2010
how to use the VS 2010 IDE tools in a way the Microsofties didn't specifically intend. But since this is something I immediately tried without success.
I have defined a .NET 4.0 WPF Application project with a simple class that looks like this:
Public Class Class1
Public Property One As String = "OneString"
Public Property Two As String = "TwoString"
[Code]....
The expected result was that "OneString" would appear next to "One" and "TwoString" next to "Two" in the running window.
The question is: Why didn't this work? What will work instead? If I put bindings in a DataTemplate, it works. Blend, with its sample data stuff, implied that this should work, but it doesn't.
View 1 Replies
May 10, 2010
I have 5 combo boxes that need to show the same list of items that come from a single dataset table. I have managed to bind the datatable to the combo boxes no problem at all.. but when I run the application and select an item from one of the combo boxes all the others change to the item I selected. After some research I believe that this problem is something to do with using the one datasource so I have tried assigning the dataset datatable to 2 different variables and used them as datasources for 2 of the comboboxes but the same still happens.
A work around to this I can see is to call the same methods and SQL select statements 5 times over to get individual datasources for each combo box but this doing that sounds crazy to me. how I can get around this easily? Code snippet below shows 2 combox boxes and their datasources. I'm using VS2005, .Net 2
ComboBox1.DropDownStyle = ComboBoxStyle.DropDownList
ComboBox1.DataSource = AllergyListDataSet.Tables("ListOfAllergies")
ComboBox1.DisplayMember = "Condition"
[Code]....
View 3 Replies
Mar 21, 2010
can data reader be used as a data source for a grid control?
View 5 Replies
Nov 4, 2009
I have a combo box with a data source. This box shows one column of a table and allows me to select one item.Next, I have an ordinary text LABEL that I need to put text from another column of the item selected above.I tried to set the data binding field of the label, but this grabs only the first row or data and shows the selected column. That is nice, but I can not figure out how to update the selected selected ROW when the combo box item is changed.In this case the combo box lists a bunch of inventory parts. When I select a specific part, I need the change the text in a label to show the manufacturer. (like a sub-form). This same behavior will be used in several other places, but the relationships can cascade.
View 4 Replies
Jun 2, 2010
i'm got this sql query code in dataset designer
SELECT pkt.fldPackageID, pkt.fldPSID, pkt.fldQuantity, pkt.fldQuantityUsed, pkt.fldRetail, pkt.fldPK, ps.fldName
FROM tblPaketRow AS pkt INNER JOIN
tblProdukDanService AS ps ON ps.fldID = pkt.fldPSID
WHERE (pkt.fldPSID = @param)
I'm trying to display the results in datagridview,i drag from the data source in vs 2008..I can't figure out to do that.I use this code to set the @param on form_load event.
Me.TblPaketRowTableAdapter.JoinTable(SalonDataSet.tblPaketRow, modCommon.s)
View 10 Replies
Sep 28, 2009
I would like to know the best, or standard, way to accomplish real-time client updates in a small multi-user application using an access data table as a data source.Specifically, this application will be used by 3-4 people. It uses a datatable which is filled on form load and bound to a datagrid at design time. The datatable is stored on a shared drive. The data table on the shared drive is updated in two ways:
1) Users can update the datagrid which then updates the datatable on the shared drive via the data adapter's Update method.
2) A server application does some work on some text files, periodically updating the data table.
I need the clients to reflect the changes to the data table on the shared drive as closely to real-time as possible. I know that the data table stored in memory on the client is disconnected from the data table on the shared drive, so I must query again to get the updates.
1) Is there an alternvative model I can use which is connected, and which will automatically reflect the updates in the data table on the shared drive?
2) If not, what is the best way to check for changes in the data table (so I can know when to call the data adapter fill method)? I am planning to poll the drive for a change to the .mdb file, raise an event and then fill the data adapter when the event is triggered. I am using this method successfully now to check for changes to a text file in another application, and I know how to implement it?
View 1 Replies
Sep 27, 2009
I recently switched to V.Studio 2008 and using VB. I can not find in the data toolbox the connection and data adapters. Should I do something else to make this appear so I can drag them in my form.
View 2 Replies
Aug 14, 2009
I have a bit of code that reaches out and grabs a series of rows from SQL Server DB. I perform an inner join to get some related table data. In the process I get returned the user id of the creator of the data. I then want to pass this into a query to get back a full name. I am having no luck figuring out how to do just that. If I use the data visualizer I can see the name I am after, I cannot figure out the call to extract it
Bindingsource1.DataSource = GetData("Select * From PURCHASE_ORDERS WHERE PURCHASE_ORDER_NUMBER =" & REQ_NUM.Text)
.DataSource = Bindingsource1
[code].....
View 4 Replies
Feb 8, 2009
I am currently using vb 2008 and access 2003 as back end database. I am trying to import excel data to a data table. my excel and access table header & columns are same. I was trying to do this.........
[Code]...
View 1 Replies
Sep 29, 2008
I tried this code to check if the data in textbox1 not equal to any data in column name, so insert the data that in the textboxes to the table1. Esle.. do another thing. But it didn't success with me.
Code:
Dim conn As New OleDbConnection()
conn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;" _
& "Data Source =" & Application.StartupPath & "DataBaseName.mdb "
[Code].....
View 2 Replies
Feb 18, 2011
I am trying to make a copy of an existing database, I use .net framework data provider for SQL Server.I get error "Unable to connect to source server for Transfer" when it runs to oPackage.Execute().
oConnection = oPackage.Connections.New("what the providerID should be?")
oStep = oPackage.Steps.New
oTask = oPackage.Tasks.New("DTSTransferObjectsTask")[code]......
View 1 Replies
Jun 1, 2011
I have been trying for days now how to create a process to the user to easily create a connection to any installed data types they have installed. I have found an example right inside vb2008. I never use this because I code my own connections, but this would be real nice if I could include it or duplicate it.
View 1 Replies
Sep 25, 2009
I am creating a database for Employees. In that I have some issues. I am trying to bind my data using data source. In the list box properties I set
lstemp.Datasource = Employeedatabase
lstemp.Displaymember = "EmplyeeName"
lstemp.Valuemember = "EmplyeeId"
I want to get my employee Id for displaying data in text boxes. How can get the data of the highlighted employee name in the list box to text boxes
View 1 Replies
Sep 25, 2009
I am creating a database for Employees. In that I have some issues.I am trying to bind my data using data source. In the list box properties I set
lstemp.Datasource = Employeedatabase
lstemp.Displaymember = "EmplyeeName"
lstemp.Valuemember = "EmplyeeId"
I want to get my employee Id for displaying data in text boxes. How can get the data of the highlighted employee name in the list box to text boxes
View 1 Replies