Click here to Skip to main content
15,883,883 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a project in vb.NET using Database SQL SERVER 2005 Now i Migrate the Database SQL TO SQLITE now what changes should i made in sql query like below query works in sql server but not in sqlite please correct this query for sqlite
SQL
SELECT MAX(DocumentCode) AS DocumentCode FROM DocumentsHeader WHERE (DocumentCode LIKE @DocumentCode + '%');
Posted
Updated 20-Oct-15 7:30am
v2
Comments
Zoltán Zörgő 20-Oct-15 13:41pm    
Which sqlite .net driver are you using?
Malikdanish 20-Oct-15 14:03pm    
sqlite 3.7 i am using for me DB

Zoltán Zörgő 20-Oct-15 14:08pm    
And what .net driver? Please post the link to the web page you have downloaded the driver from.
Malikdanish 20-Oct-15 14:13pm    
http://www.sqlite.org/download.html
Zoltán Zörgő 20-Oct-15 14:32pm    
Ok, so you are using the official ADO.Net driver.
And how exactly do you pass the parameter to the query? Do you get any error?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900