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

Sql syntax error..Please help..

Hello,all, here is my code.. I want to insert the textbox values ,both string and integer,direct to my sql DB itemlistingDB by hitting save button.this is the code i have written. when the code is...

View Article


Cannot Connect to SQL Server Instance through code

Hi all, I'm pretty new to .NET but have a background in VB. I'm having an issue connecting to a SQL server DB through code. If I use the server explorer or the data sources tab I can create the...

View Article


How to read from ODBC data source using VB 2008, 2010 or 2012

Newbid to this forum here: I have some experience with VB 6 and prior. I need to use visual studio (08, 10, or 12) to connect to an odbc data source and read and display records in the simplest way...

View Article

Cannot create database in SQLEXPRESS instance

after trying to create database,the following exception is showing.what is the way to rectify it?what will the reason for showing such a message. Plz help me to configure and connect my database...

View Article

Creating relationships between tables in Visual Studios

Hi, I am currently creating my own portfolio website after a long time of putting it aside. I am using one of my old website from school as a template! Which, has everything I need except when it comes...

View Article


RESOLVED Why are these errors reported in this stored procedure ?

I am frustrated with how these errors showed up. Or for that matter why... Msg 156, Level 15, State 1, Line 8 Incorrect syntax near the keyword 'PROCEDURE'. Msg 170, Level 15, State 1, Line 19 Line 19:...

View Article

[RESOLVED] Creating relationships between tables in Visual Studios

Hi, I am currently creating my own portfolio website after a long time of putting it aside. I am using one of my old website from school as a template! Which, has everything I need except when it comes...

View Article

Passing table Name as Parameter in Joins

i wanto create a store procedure like this and its saying error near @mytable CREATE PROC getdetail @mytable AS VARCHAR(100) AS SELECT e.ItemCode, e.OemNoOne, e.ItemDesc, e.ModelNoOne, e.StockNoOne,...

View Article


[RESOLVED] Pass Table Name as Parameter in storeprocedure that have joins in...

i wanto create a store procedure like this and its saying error near @mytable CREATE PROC getdetail @mytable VARCHAR(100) AS SELECT e.ItemCode, e.OemNoOne, e.ItemDesc, e.ModelNoOne, e.StockNoOne,...

View Article


Change the length of a field in a table

hyy I am using sql2000 for my Database and vb6 for the platform app. I want to change the length of a field in Table A, but that particular field is related to another field in Table B, means, the...

View Article

sqldatareader: index out of range althought have more rows

Hi, I've made a sql query to fill a sqldatreader for after go line by line processing the data. The problem I've is that I'm receiving this error message: Code: "System.ArgumentOutOfRangeException: El...

View Article

Select statement with CASE question

Hello, I have records with fields Email1 and Email2. In some cases they have only email2 filled in. How can I select Email1 to var Email if filled but use Email2 is Email1 is blank? Thanks!

View Article

HELP: MySQL ODBC 3.51 Driver ( SLOW CONNECTION )

i am developing at vb.net, i have this connection string, public OdbcConnection con = new OdbcConnection("Driver={MySQL ODBC 3.51 Driver};Server=localhost;Database=db_smis; User=root;Password=;");...

View Article


Multiple database in one query

Hi guyz :wave: Is there a way to access multiple database? I am currently using vb6 and mysql. And can you please show me a sample query for multiple database? Thanks in advance .... :)

View Article

Automatically delete tables that are created every night

This new question is a follow-up to a previous thread, http://www.vbforums.com/showthread.p...it-or-Rollback. What I've been doing is nightly getting an XML "feed" and loading two database tables from...

View Article


Image may be NSFW.
Clik here to view.

SQL Server CE (SDF) Multiple Table Questions - Link Single Record To Multiple...

Hello, I have been dabbling with VB.NET for a while now. I have ventured into a small application that will require a database with multiple tables. I have two tables in my SDF database. One named...

View Article

SQL getting the column values recursive to compare w values from another...

I have a stored procedure that is the union of two selects that bring back a fldNoteKey and a fldCommentKey there was no relational ley between either table so I have to go with a like between the...

View Article


Generating unique Receipt No every year

I have a table call payments and column custName, ReceiptNo etc... receiptNo interger field I want reset the receipt no every year but the receipt should always be greater then the previous year for...

View Article

start the loop of recordset from the 3th recordset

I use the typical: select * from mytable....ecccc and execute the query. while not rs.eof .... wend is possible to start the loop not from recordset 3 but from the 3th into the recordset? example: 1234...

View Article

MySQL Stored Procedure, taking ages to run, only 5 records in the DB!!!

Apologies for this post as I'm sure its a very stupid question, but is there anyway I can speed this up? It takes nearly 29 seconds to run and there are only 5 records in the main tblissue, within the...

View Article
Browsing all 2918 articles
Browse latest View live


Latest Images

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