473,486 Members | 1,560 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

[sql dataadpatr syntax error]

Mycode shown as the following:- it is very simple code.
However, I got an error on "daExBL.Fill(dsExBL) "
Is there problem onmy syntax or on my SQL server ?

Dim conSea As New SqlClient.SqlConnection()
Dim strSelectExBL As String = "select * from BillLadingHeader number
where ='CGL03060010' "
Dim strConnSea As String = "data source=dts-server;initial
catalog=cgl_seadata;integrated security=SSPI;persis" & _
"t security info=True;workstation id=dts-server;packet size=4096"
conSea.ConnectionString = strConnSea

Dim daExBL As New SqlDataAdapter(strSelectExBL, conSea)
Dim dsExBL As New DataSet()
conSea.Open()
daExBL.Fill(dsExBL)
Nov 20 '05 #1
1 871
Hi Agnes
I think its the select statement :
"select * from BillLadingHeader number where
='CGL03060010'"

It should be something like this:
"select * from BillLadingHeader where number
='CGL03060010'"

Kind Regards
Jorge
-----Original Message-----
Mycode shown as the following:- it is very simple code.
However, I got an error on "daExBL.Fill(dsExBL) "
Is there problem onmy syntax or on my SQL server ?

Dim conSea As New SqlClient.SqlConnection()
Dim strSelectExBL As String = " "
Dim strConnSea As String = "data source=dts- server;initialcatalog=cgl_seadata;integrated security=SSPI;persis" & _
"t security info=True;workstation id=dts- server;packet size=4096" conSea.ConnectionString = strConnSea

Dim daExBL As New SqlDataAdapter(strSelectExBL, conSea) Dim dsExBL As New DataSet()
conSea.Open()
daExBL.Fill(dsExBL)
.

Nov 20 '05 #2

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

Similar topics

1
3329
by: Steve | last post by:
I just spent waaaaaaaaaaaayy too much time trying to track down an error that was incorrectly reported just now, and I would like to see if someone can explain to me why it was reported that way. ...
1
15184
by: Dharmesh Gandhi | last post by:
DB-Library Error 10007: General SQL Server error: Check messages from the SQL Server. CREATE PROCEDURE . ( @srvr varchar(50),
7
6644
by: kosta | last post by:
hello! one of my forms communicates with a database, and is supposed to add a row to a table using an Insert statement... however, I get a 'oledb - syntax error' exception... I have double...
22
1713
by: graham.parsons | last post by:
Guys, Hopefully someone can help. We have a monitoring program that has threads which start and stop monitoring at various times. There are two tables: THREADLIFECYCLE unique_id
138
59061
by: Ian Boyd | last post by:
i've been thrown into a pit with DB2 and have to start writing things such as tables, indexes, stored procedures, triggers, etc. The online reference is only so helpful. The two pdf manuals are...
2
4787
by: technocraze | last post by:
Hi guys, I have encountered this error when updating the values to the MS Acess table. Error : Update on linked table failed. ODBC sql server error Timeout expired. MS Acess is my front end and...
1
3073
by: teddymeu | last post by:
Hi Guys, trying to bulk insert a csv file into my SQL database from an asp.net vb web app/form page that the user uploads, my problem is that im new to all this and although the SQL statement...
17
2630
by: Anil Gupte | last post by:
I am using the following to try to connect to the database, but it does not seem to be working. Dim sConnString sConnString = "Provider=SQLNCLI.1;Integrated Security=SSPI;Persist Security...
9
15097
by: fniles | last post by:
I would like to copy a table(s) from SQL Server 2005 to a CVS file and vice versa. I was thinking to use the BCP command line utility, but I have a few questions: 1. The machine where I am...
0
7094
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
6964
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
7123
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
7173
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...
1
6839
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...
1
4863
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...
0
3070
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1378
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
259
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.