Click here to Skip to main content
15,912,457 members

Comments by Charlemagne Gustilo (Top 11 by date)

Charlemagne Gustilo 30-Sep-15 2:10am View    
Hi, are you collecting the list of records as a single record? Check COALESCE function to handle that. Below is a sample.

DECLARE @SQL VARCHAR(8000)

SELECT @SQL=COALESCE(@SQL,'')+' '+RTRIM(FIELD)+ ', '
FROM TABLE

SELECT @SQL
Charlemagne Gustilo 14-Mar-14 6:34am View    
Do you have an identity column? If so, you can simply get the last row by selecting MAX(FieldName).
Charlemagne Gustilo 13-Mar-14 21:17pm View    
Have you tried changing the AND conditions to OR?
Charlemagne Gustilo 3-Mar-14 3:04am View    
Hi sanjaysgh,
This error occurs when you pass a non-numeric value to a parameter that is numeric. Have you tried checking values that are passed as your parameter?
Charlemagne Gustilo 6-Feb-14 4:25am View    
Hi, you can try using the following scripts to read items from the database:

select * from sys.tables
select * from sys.views
select * from sys.procedures
select * from sys.triggers

Then you can try adding nodes from the treeview following the sample in http://msdn.microsoft.com/en-us/library/system.windows.forms.treeview(v=vs.110).aspx

Hope this helps.