Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 .NET Inside SQL Server (2005)
 Need Help

Author  Topic 

chavala
Starting Member

1 Post

Posted - 2011-07-11 : 14:34:10
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '.21.37.38:0, 2011_06_22_00_00, 2, 2, InProgress)' at line 1
====================================================================
string query = "INSERT INTO usagetable (FeatureName, loginID, uniqueID, logintime, sflag, duration, status) VALUES("+fname+", "+lID+", "+uID+", "+ltime+", "+lag+", "+dur+", "+st+")";
values inside the variables are as follows...
fname= mgncdjkj
lID = mgkrc
uID = mgrdjjncj.jkdcsc.172.21.37.38:0
ltime = 2011_06_22_00_00
lag = 2
dur = 2
st = InProgress
==========================================================
data-types in MYSQL
FeatureName (Varchar(30)),
loginID (Varchar(30)),
uniqueID (Varchar(30)),
logintime (Varchar(30)),
sflag integer,
duration integer,
status Varchar(30)

cv

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2011-07-11 : 14:36:25
You may want to post your question on a site that specializes in MySql. SQLTeam specializes in Microsoft SQL Server.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

Seventhnight
Master Smack Fu Yak Hacker

2878 Posts

Posted - 2011-07-11 : 14:36:34
P.S. - This is a MSSQL forum. Try: http://www.dbforums.com/


Corey

I Has Returned!!
Go to Top of Page

Seventhnight
Master Smack Fu Yak Hacker

2878 Posts

Posted - 2011-07-11 : 14:37:17
doh. 9 seconds ;)




Corey

I Has Returned!!
Go to Top of Page
   

- Advertisement -