How to use Identity Insert using LINQ to SQL?
Okay, I have the following situation. I've got a table with a system generated key, but I have a need to insert a record and supply the key instead of letting the system generate it. If I were doing...
View ArticleGetting this error while trying to Update a table in SQL Server 2008?
I'm getting this error in my SQL Update statement and not exactly sure why. It appears to me that it's trying to insert a null value into the object column, however, this particular column cannot have...
View ArticleADODB connection not returning case-sensitive results
I have a visual basic 2012 Express application that uses an ADODB connection to a DBase database (simple and easy to distribute). I captured the SQL string sent to the connection object using...
View ArticleNeed help with query to get common attributes from data in table
Hi all, I have an application written in VB6, using DAO to access an MDB database (Access type). I need to generate a report and seem to be stuck. I hope some one can help or point me in the right...
View Article[RESOLVED] Attach Database MS Sql
I had two versions of SQLEXPRESS on my computer earlier ,now I have uninstalled 2012 SQLEXPRESS from my computer Now when I try to attach .MDF file made in 2012 version it gives me error. Code:...
View ArticleSteps included in a SQL Server 2008 "health check"
Hi! I got a new assignment that includes helping one of our customers to do a health check of one of their products. The product is a "home made" e-commerce platform that has been rebuilt a few times...
View ArticlePoxy £*$%^y SSMS intellisense!
Not a question, just a gripe. I love that MS introduced intellisense into SSMS but it only seems to recognise Table, column and variable names. It doesn't recognise key words. In particular I am...
View Article[RESOLVED] [vb6]. I can ADD field, but can't MODIFY field.
If I do: Code: Adodc1.Recordset.Open "ALTER TABLE conceptos ADD test text(250)", , adOpenDynamic, adLockOptimistic it creates the field perfectly. But If I do: Code: Adodc1.Recordset.Open "ALTER TABLE...
View Article[RESOLVED] Optimize very slow UPDATE
I have this Update at work and I need to optimize it. It's terribly slow because it's done in a subquery at field level with complicated conditions. Does anybody know any way to rewrite this to make...
View Articlewhy wont it work?!?!?!?!?!?!?!?!?!?!
i'm trying to make a simple Point of sale system. the code i'm having problem with, it wont register the item to my database when the same SKU#(item id number) entered twice in the listview. this is...
View ArticleIs it sensible to use MySQL accounts as user application accounts?
Hi, I have a server client application made and I want to keep track the users log in and log out. The first solution that came to my mind was to create user accounts in MySQL as my application's user...
View ArticleAccess 2003 tables to link sqlexpress 2005 but not seen. DBO ?
from microsoft access 2003 link SQLEXPRESS 2005 saw the other table normal, but i can not see the table in the form of DBO.* ? why is that ? no way to fix it? (Note that I'm using SQL Express 2005)
View ArticleHow Can I truncate only some tables in a database using procedure?
There will be a true or false condition specifying whether to include or exclude the passed table names from truncating. That is, if I pass true, then truncate the tables which were passed to the...
View ArticleDecimal Problem
hello Database: MS Access 2003 ha v table with some fields in those i hv 2 numeric fields data type been set to Number in general setting formatted it to General number, Decimal, Fixed and everything...
View ArticleHow to display only the most current revisions in my dataset
Hello: I have a table that shows quotes and their corresponding revision numbers (see below - e.g. 2569 has 2 revisions - the most current is 2569-2). I need to display only the records where the rev...
View ArticleNeed help creating a Stored Procedure in MySQL via VB6
Could someone possibly help me convert this function so it will work for MySQL 4.1 or higher? I wrote this to create a stored procedure in MS-SQL Server, and it works great. Any help would be...
View ArticleCan't write to the .sdf file
I am writing a simple database program and using a sdf file created with vb 2010 pro the following code is supposed to write to the database but I can't get it to any suggestions? Code: Dim...
View Article[RESOLVED] ORDER BY and GROUP BY issue - please help
Hi every one, please help me in this if you can. let's say I've this table iCode iDate iHours iValue1 iValue2 1 2010-12-11 6 0.1 0.2 1 2010-12-11 3 0.1 0.2 2 2010-12-11 3 0.1 0.2 1 2010-12-11 12 0.1...
View ArticleDatabase logic
Hello all, first of all, a short introduction. I am writing my masters thesis and the subject is: Using ERP systems in educational institutions. Now, to go directly to my problem: The College that will...
View ArticleGet Data (Select) From 3 Tables In SQL.
What Ups Broo!! I Need you to teach me about Select in SQL! This is My Table : You see that Pict! I have 3 table (bbm, ppa, t_atribut) Now I want to select data : + Panitia(BBM) From Table 'bbm' +...
View Article