Can't quite figure out how to left join two other tables and get data from them
I have three tables. One is a product which I need the id and name from. The second is a servings table that has only two fields, id and name. the third is a servingsparts table with several columns....
View ArticleDAO - reading .mdb date field affected by Windows local date format
<Solved> But since I have been programming VB6 DAO for many years and only just found this, I thought I'd leave a note here. I write dates to an .MDB file as DD MMM YYYY (eg 23 Jun 2018) in a...
View Articlecopy field from table to another
Hello Vbforums I want to copy one field from one table to another. I'm using this codes but it is coping records at the end of the table. Code: Cnn.Execute "INSERT INTO [Acte_tbl] ( Tarif )" & _...
View ArticleIDENTITY_INSERT is set to OFF
Hwllo: This is the first time I've seen this error. System.Data.SqlClient.SqlException: 'Cannot insert explicit value for identity column in table 'Request' when IDENTITY_INSERT is set to OFF.' I have...
View ArticleSQL Server - Dynamically create left joins to unknown # of tables
I have a sproc that right now is hardcoded to support a join to 4 tables like so: Code: LEFT JOIN xtblJobProjectEmployeeRoles rolePA on (rolePA.Control = Jobs.relProjectControl and rolePA.Role = 1)...
View ArticleWhen to denormalize?
I have my databased normalized like crazy and I've been thinking about histories. I already denormalize prices when a transaction occurs (store the price itself, not a reference to the price). Prices...
View ArticleOledbDataAdapter insert error
I'm calling dataadapter.update() but it says "System.Data.OleDb.OleDbException: 'Syntax error in INSERT INTO statement.'" but the insert statement was generated with an OleDbCommandBuilder so I can't...
View ArticlePK/Import Problem
I have a database in SQL Server with a single table in it. This ends up receiving information from a service. The data coming in is essentially a flat file (it's just a CSV packed into a JSON field)...
View Article[RESOLVED] SQL Server - Dynamically create left joins to unknown # of tables
I have a sproc that right now is hardcoded to support a join to 4 tables like so: Code: LEFT JOIN xtblJobProjectEmployeeRoles rolePA on (rolePA.Control = Jobs.relProjectControl and rolePA.Role = 1)...
View Article[RESOLVED] PK/Import Problem
I have a database in SQL Server with a single table in it. This ends up receiving information from a service. The data coming in is essentially a flat file (it's just a CSV packed into a JSON field)...
View ArticleIndex on NULL + data
I googled but I can't get a solid answer (probably there isn't one solid answer but) I have a column that will get up to 500.000 1.000.000 rows and half of them would be null. Is it worth the effort on...
View ArticleMSSQL Locks
Conceptually we have a table with a set of identifiers that are a four digit base number and two digit sequence number. Every year this table is cleared. Currently to get a new base number or a new...
View ArticleType Conversion Issue
I have a CSV that I am reading into a datatable using ADO.NET. One of the columns has a problem. The value in the column happens to be 10-05-20. That looks like a date, but it is not. It's just a...
View Article[RESOLVED] Type Conversion Issue
I have a CSV that I am reading into a datatable using ADO.NET. One of the columns has a problem. The value in the column happens to be 10-05-20. That looks like a date, but it is not. It's just a...
View ArticleFreeform Edit on Unbound DataGridView
Hello: I am struggling to find the option where I can edit my dataGridView in VB.NET. All populatioj is unbound and manual. Much Thanks!
View ArticleMULTI find in sql server table
I have this two var: Mydata As date Mystring as String I need to find if a pair of this two var are present in mytable based filed F1 (date filed) and F2 (string field) example: Mydata=18/06/2022...
View ArticleVB.Net & Sqlite database relative path issue
Hello everyone I'm new to Vb.Net This connecting string is working perfect Code: Dim SQLitecnStr As String = "Data Source=C:\Users\Adebiyi\AppData\Roaming\Data.db; Integrated Security=true" But trying...
View Article[RESOLVED] VB.Net & Sqlite database relative path issue
Hello everyone I'm new to Vb.Net This connecting string is working perfect Code: Dim SQLitecnStr As String = "Data Source=C:\Users\Adebiyi\AppData\Roaming\Data.db; Integrated Security=true" But trying...
View Articleis it possible to use access in vb.net 2010
is it possible to use access in vb.net 2010, I only see SQL I look to google but find nothing
View Article[RESOLVED] IDENTITY_INSERT problem using Sql Server
I am getting yelled at by sql server when I try to create a new row in my Jobs table through my C# code. The Jobs table has a PK, Control. It is an integer. It is not an identity column. I am looking...
View Article