473,398 Members | 2,427 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

sqlexpress

GS
I was able to create database, table from vim express 2005 studio in design
mode. However I would like to setup some code table values,. I tried
display the data for the table and visual basic but, that was not allowed
on null result.
I can see I execute SQL, SO I tried
so I tried
INSERT INTO CodeTable ("CodeTableName", "code", "sequence",
"value")
Values("FavoriteUrl", "myback]", 1,
"https://www.mybank.com/login.aspx")

Howeer the above casues a message " ---------------------------
Microsoft Visual Basic 2005 Express Edition
---------------------------
SQL Execution Error.

Executed SQL statement: INSERT INTO CodeTable (codeTableName, code,
sequence, value) VALUES ([FavoriteUr]l, [RBC]]], 1,
[https://www.mybank.com/login.aspx
Error Message: The name "FavoriteUr" is not permitted in this context. Valid
expressions are constants, constant expressions, and (in some contexts)
variables. Column names are not permitted.
---------------------------
OK Help
---------------------------
is there any other way besides coding my own form?

Or I should be setting some user modifiable properties for the application
instead and use them to populate my list box
Aug 25 '06 #1
1 2076
Strings are enclosed in single quotes in SQL.

So your statement should be:
INSERT INTO CodeTable (CodeTableName, code, sequence, value)
Values('FavoriteUrl', 'myback]', 1,
'https://www.mybank.com/login.aspx')

GS wrote:
I was able to create database, table from vim express 2005 studio in design
mode. However I would like to setup some code table values,. I tried
display the data for the table and visual basic but, that was not allowed
on null result.
I can see I execute SQL, SO I tried
so I tried
INSERT INTO CodeTable ("CodeTableName", "code", "sequence",
"value")
Values("FavoriteUrl", "myback]", 1,
"https://www.mybank.com/login.aspx")

Howeer the above casues a message " ---------------------------
Microsoft Visual Basic 2005 Express Edition
---------------------------
SQL Execution Error.

Executed SQL statement: INSERT INTO CodeTable (codeTableName, code,
sequence, value) VALUES ([FavoriteUr]l, [RBC]]], 1,
[https://www.mybank.com/login.aspx
Error Message: The name "FavoriteUr" is not permitted in this context. Valid
expressions are constants, constant expressions, and (in some contexts)
variables. Column names are not permitted.
---------------------------
OK Help
---------------------------
is there any other way besides coding my own form?

Or I should be setting some user modifiable properties for the application
instead and use them to populate my list box

Aug 25 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: lbolognini | last post by:
Hi all, I've got a PostgreSQL schema, how can I import it in SqlExpress? What's the best tool for administering Sql Express. Thanks, Lorenzo
1
by: Borek | last post by:
Hello, I am getting the beforementioned error when trying to populate DataSet object with data taken from SQL2k database. Then I want to bind DataSet to GridView control. But when I use...
3
by: andrewcw | last post by:
I am trying to use the NorthWind database or anything with SQLEXPRESS on VS 2005 RC. I can see SQLExpress started with the tool SQL Server Configuration Manager. But when i select DataBase | New...
2
by: Crash | last post by:
Windows XP MS SQLExpress VS 2003 ..NET 1.x SP1 {for Application} ..NET 2.0 {for SQLExpress} MS Enterprise Library June 2005 This works from a command prompt osql -E -S localhost\SQLEXPRESS
13
by: Matt Fielder | last post by:
First off, if this is better posted in another group that qualifies as a manged group, please let me know. I currently have an application written in VB.Net using MSDE as the database. Current...
4
by: Torben Laursen | last post by:
Hi I am trying to find find the sqlserver express that is running on my computer using: DataTable dtSQLServers = SmoApplication.EnumAvailableSqlServers(false); It returns one row that holds...
2
by: =?Utf-8?B?Q2hhcmxpZQ==?= | last post by:
Hi, I am using System.Diagnostics,Process.Start to execute sqlcmd.exe the second parameter of the Start method is the arguements to pass to sqlcmd Because I am using SQLExpress the string...
2
by: Michel Vanderbeke | last post by:
Hello, I have a program, running in several places, using SQLEXPRESS as database. The different places are stand-alone, and not connected to a network. Regulary, I have to apply changes on...
5
by: =?Utf-8?B?bXVzb3NkZXY=?= | last post by:
Hi, I wonder if someone could shed some light on this one for me. I have developed a web app in VS2005 with the built in server. It uses an sql database, everytihng works. I need to test it...
1
by: Aykut Canturk | last post by:
Can I use SqlExpress2005 AttachDatabase feature with classic ADO connections in my .asp pages ? But I need ConnectionString. Although I searched the web for couple of weeks I still coulnd't find...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.