Impossible table ?
Access 2010 Whaaaaat ? a table with almost 2000 records all with the same primary key value ? aka: the wonders of date/time fields Attached Files PrimKey.zip (30.3 KB)
View ArticleMy column allows nulls, but C# code exceptions when I try to write a null
I have a column in a table declared: AckDateTime(datetime, null). It allows nulls. I am using DataSets and the AckDateTime property generated like so: Code:...
View Article[RESOLVED] My column allows nulls, but C# code exceptions when I try to write...
I have a column in a table declared: AckDateTime(datetime, null). It allows nulls. I am using DataSets and the AckDateTime property generated like so: Code:...
View ArticleSQL Database Table Query
Hi there, I have designed a table in sql with following fields: 1. Date. DateTime 2. CarRegistrationNumber Nvarchar(20) 3. OwnerName Nvarchar(50) 4. OwnerCellNumber Nvarchar(20) My client is entering...
View ArticleVB 2015 + MySQL Questions
Hello, Sorry for the long winded explanation but here it is. I am just starting out in the VB world and have chosen it for creating a UI for handling queries and other things from a MySQL server. I got...
View ArticleHelp Required To Create Query
Hi everyone, I have a table TblDailySaleData in which i have more than 10,000 records. This table is contains following fields: SaleDate DateTime VehicleRegNo Nvarchar(20) OwnerName Nvarchar(50)...
View ArticleEXISTS IN vba this option? (PLEASE MOVE to office VBA, tks)
userform1.Show Do While userform1.Loaded DoEvents Loop have error in .Loaded tks work instead in vb6
View ArticleQuery table by xml node value
Suppose I have an SQL Server table with an integer type column called Id and an xml type column called XmlData. Below is a sample snippet of the xml data that is stored in the XmlData column. Code:...
View Article[RESOLVED] Contructing a WHERE clause based off of Parameter value
I have a SQL Server Stored Procedure that accepts 3 parameters. One of the parameters, "DepartmentID", can contain a specific numeric value or 0. If the value is 0 then the check in the query is as...
View ArticleCompile sql server r2
Hello I'm new to sql server. I have always had access database as backend. I'm using Vb6 and setup factory to do my setup file. I used to compile my mdb file with the necessary files to build my setup...
View ArticleI CANNOT OPEN THE mdb!!!!
Thi is a part of vb6 code: Code: Sub APRI_CONN() ENVIORN = "" ENVIORN = Environ("USERNAME") If CONN Is Nothing Then Set CONN = New Connection With CONN .Provider...
View ArticleGetting an error while trying to update a SQL Table in SMSS?
I'm getting the following error: "Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, <, <= , >, >= or when the subquery is used as an expression". I...
View Article[RESOLVED] Query table by xml node value
Suppose I have an SQL Server table with an integer type column called Id and an xml type column called XmlData. Below is a sample snippet of the xml data that is stored in the XmlData column. Code:...
View ArticleEncrypt SQL Server database and traffic
What is the best way to to encrypt an SQL Server database and its traffic? Is this just a matter of setting the "Force Encryption" property to "Yes" in SQL Server Configuration Manager or is it more...
View ArticleQuery is too complex - Not consistent
Hi all, I'm currently facing a "Query is too complex" issue within a VB6 application using DAO 3.6 to talk to jet 4.0 MDB (OLEDB connection) and I can't put my finger on the cause. As part of the...
View ArticleSet declared parameter value conditionally based on another parameter's value
I am decrementing a "StockBalance" field for a particular product with a passed "@StockOut" parameter with this: DECLARE @StockBalance decimal(19,2) SELECT @StockBalance = ROUND(StockBalance -...
View Article[RESOLVED] Set declared parameter value conditionally based on another...
I am decrementing a "StockBalance" field for a particular product with a passed "@StockOut" parameter with this: DECLARE @StockBalance decimal(19,2) SELECT @StockBalance = ROUND(StockBalance -...
View ArticleSending data back to SQL from a Form1.cs
Hi all I am getting the following error when I try and run this code I cant figure out whats missing, I think i have looking at it too long. I know before anyone suggests it that this is open to SQL...
View ArticleTransform code of access module in vb6
Code: Option Explicit Sub RemoveDuplicates() Dim CNN As ADODB.Connection Dim RST As New ADODB.Recordset Dim strTable As String, Y As Long, I As Long ' Set the connection here Set CNN =...
View ArticleAdding sum in subquery...
SELECT N, Count(*) AS C FROM (SELECT DISTINCT N, CARTA FROM PRE) GROUP BY N i need to add a where Sum in sub query SELECT... similar: (SELECT DISTINCT N, CAR FROM PRE WHERE SUM(EURO)>=1500) How to?...
View Article