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

Home Posts Topics Members FAQ

Can't convert number to bigint

1 New Member
Hey ...
Can you help me out with this error?

<!---------------------------------->
Microsoft OLE DB Provider for SQL Server error '80040e07'
Error converting data type varchar to bigint.
<!---------------------------------->

This is the code I used:
<!---------------------------------->

<form name="form5" method="post" action="regi_search_mobile.asp">
<form method="POST" action="regiUserOVInfoTest.asp" webbot-action="--WEBBOT-SELF--">
<!--webbot bot="SaveResults" U-File="../../_private/form_results.csv" S-Format="TEXT/CSV" S-Label-Fields="TRUE" startspan --><input TYPE="hidden" NAME="VTI-GROUP" VALUE="0"><!--webbot bot="SaveResults" i-checksum="43374" endspan -->
<p><font face="Tahoma">
<font color="#FFFFFF">
<input type="text" name="txtMobile" size="20"><input type="submit" value="See Details" name="B1"></font><font size="2" color="#FFFFFF">
</font></font></p>
</form>

<!-- another ASP page -->

<%
Dim conn, selectSQL, RecSet
Dim mobileNo
Dim getMobileNo

Set conn = Server.CreateObject("ADODB.Connection")
conn.Open "Provider=SQLOLEDB; Data Source = (local); Initial Catalog = dbMobile; User Id = sa; Password=sa1234"

getMobi1eNo = Request.Form("txtMobile")

Response.Write(getMobi1eNo) & "<BR><BR>"

' mobileNo = getMobileNo

' mobileNo = value of ("getMobileNo")

' document.write(VarType(getMobileNo) & "<br />")

Response.Write(mobi1eNo)


selectSQL = "SELECT cb_seller.mobile_no as csm, cb_district.district_full_name as cdm, cb_seller.create_time as cct FROM cb_seller, cb_district where cb_seller.seller_dist_id = cb_district.district_id and cb_seller.mobile_no = '&getMobileNo&' order by create_time"


Set RecSet = conn.Execute (selectSQL)

do while not RecSet.eof
Response.Write RecSet("csm") & RecSet("cdm") & RecSet("cct") & "<BR><BR>"
RecSet.MoveNext
Loop

RecSet.Close
conn.Close
Set RecSet = Nothing
Set conn = Nothing
%>


help me out here. thnx.
Aug 22 '06 #1
0 4290

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: J.C. Flores | last post by:
Hello all, First of all, I must state that I'm new to SQL Server, but have been a long-time software guy for quite some time. Please excuse the potential simplicity of the solution to my...
10
by: MK | last post by:
Hello, I use BigInt lib from: http://www.codeguru.com/Cpp/data/data-misc/values/article.php/c4563/ It doesn't work properly. I describe my problem:...
1
by: MK | last post by:
I need div two big int. I use this lib: https://sourceforge.net/projects/cpp-bigint/ I create simple project and include two file bigint.h and bigint.cpp (Precompiled headers is not using) When...
5
by: Rafał Maj Raf256 | last post by:
Hi, is there some small project that proviedes bigint, best as a C++ class, or just as set of struct/functions (C-style)? Something like GMP and it's bigint, but I want to have it just in one...
4
by: Rodusa | last post by:
I am having problem to apply updates into this function below. I tried using cursor for updates, etc. but no success. Sql server keeps telling me that I cannot execute insert or update from inside...
3
by: Mullin Yu | last post by:
I need to pass a long value from C# to a sql stored procedure, but got error: "SqlParameterCollection accepts non-null sqlParameter type objects, not Int64) Following is my c# coding long...
10
by: rcamarda | last post by:
I have created a table that contains buckets to hold activitives of enrollment for each of our admissions officer for each day of an enrollment session. I have an UPDATE that builds rolling totals...
0
by: Ayesharana | last post by:
the Following code is working in VB.net int UserType Dim parameterUserType As SqlParameter = New SqlParameter("@UserType", SqlDbType.BigInt, 8) ...
1
by: Sergei Shelukhin | last post by:
Hi. I have a string, 16 bytes long, representing a hex number. I need to convert it to a number and put it into pgsql database; it complicates the matters further cause pgsql doesn't support...
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,...
1
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
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 ...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
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.