Quantcast
Channel: VBForums - Database Development
Browsing all 2918 articles
Browse latest View live

Help with SQL - select MAX and GROUP BY

Hi all, I have data that looks like the below: id last_updated_by last_updated measurement_type_id measurable_id effective_date amount 27021447 User_ 1/06/2007 16:21 17 26806815 29/05/2007 5,458,895.33...

View Article


type field

i need to store a number value with 18 digit, in a field. similar:000125479857441117 wath is the best type of field, txt, integer, long, or? note: on this field i need also to insert a index, for a...

View Article


i dont see immediately the table copied.... why?

Code: CONN.Execute "SELECT * INTO " & NEW_TABLE & " FROM " & strTableExist & " WHERE 1=0" i use this code in vb6 and Ado to copy a table to newtable, all work fine. But i dont seel the...

View Article

Problem including Memo field.

I have some truly ugly SQL to query a couple Access MDBs. It looks like this, currently: Code: cmd.CommandText = "SELECT HeaderID AS PT2HeaderID,TagSite AS Trap,TagDate AS...

View Article

[ABANDONED] Problem including Memo field.

I have some truly ugly SQL to query a couple Access MDBs. It looks like this, currently: Code: cmd.CommandText = "SELECT HeaderID AS PT2HeaderID,TagSite AS Trap,TagDate AS...

View Article


mysql compared to mssql

good day. I would like if the latest community mysql server is as good in reliability and performance compared to mssql. I am asking this because some programmers told me mysql is no good in retaining...

View Article

Image may be NSFW.
Clik here to view.

Join several tables for reports in Visual Studio 2010

I'm new to SQL Server databases and I'm still learning basic SQL. Please can someone help to figure out follow problem? My database table structure as below Now I try to write a query to show some...

View Article

Connecting to an Access DB using a system variable

Morning folks. I am connecting to an access DB just fine right now to display data, with this code: strDbProvider = "PROVIDER=Microsoft.Jet.OLEDB.4.0;" strDbSource = "Data Source =...

View Article


[RESOLVED] Create a new SQL Server database problem

Hi, I am trying my hand at VB.NET by converting some of my old projects from C#. However, I have run into a problem trying to create the new database in Visual Studios 2008. I set to the "server name",...

View Article


best approach to save image data

good day guy. I would like to ask for your opinion on what is the best of saving data such as pictures and videos? should the actual files be saved on the database or only the path of the file?

View Article

SQL Stored Procedure

Ok i have switched from Access to SQL and i have a quick question. I'm creating a stored procedure to handle the the IDENTITY Code: SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE PROCEDURE...

View Article

SQL string that references access forms

So I am trying to write a sql string in vba access 2010 that uses two numeric variables in the "where" clause. If I use one variable my code works perfect. Two variables and my syntax is broken. Here...

View Article

SQL Database Replication....

I need some advise from the group. I have developed a piece of software that uses MS SQL Server to store my application database. My software can be used by companies that have multiple offices in...

View Article


COUNT records affected in CDM query

Code:   Set CMD = New ADODB.Command         With CMD             Set .ActiveConnection = CN1             .CommandText = "AGGIORNA_S"             .CommandType = adCmdStoredProc             Set RS =...

View Article

Permissions to use SPs and UDFs that don't update data

For security reasons, we developers don't have access to our live databases. However, read-only access is temporarily granted when we need to investigate specific problems that are happening in live....

View Article


How to get the last number of ID Field which is AutoNumber (MS Access) in a...

Hi, I would like to retrieve the last number of ID (First field of my MS Access database Sales Table) which is an AutoNumber Field, into txtLastNumber.Text (TextBox)? Please help. Thanks.

View Article

need database structure advice

I am confused what is the best approach to structure the tables. I am creating this database for hospital. The transactions are for inpatient and outpatient and it can either be cash or charges basis....

View Article


Image may be NSFW.
Clik here to view.

parameter output

Code: Dim Myvar as long   Set CMD = New ADODB.Command         With CMD             Set .ActiveConnection = CONN             .CommandText = "ESTRAI_NUOVO"             Set PRM =...

View Article

New to Database Development

I'm a Programming student and have understanding of programming, but its my first time developing with a database. I'm trying to compare the TextBox string to the access database. I've learned how to...

View Article

ADO Recordset.Filter

Hi, I am getting the wrong number of records when I use the .filter on a Date field. rsInvoice.filter="Co_code='01'" rsInvoice.filter="Doc_date>=#01/04/2013# and Doc_date<=#31/03/2014#" Basically...

View Article
Browsing all 2918 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>