Click here to Skip to main content
15,499,289 members
Home / Discussions / Database
   

Database

 
AnswerRe: Weird MS SQL "Error" Pin
jschell23-Jul-14 12:55
Memberjschell23-Jul-14 12:55 
AnswerRe: Weird MS SQL "Error" Pin
Bernhard Hiller23-Jul-14 22:01
MemberBernhard Hiller23-Jul-14 22:01 
GeneralRe: Weird MS SQL "Error" Pin
GenJerDan24-Jul-14 4:14
MemberGenJerDan24-Jul-14 4:14 
QuestionCONCAT names with condition Pin
Jassim Rahma20-Jul-14 12:51
MemberJassim Rahma20-Jul-14 12:51 
AnswerRe: CONCAT names with condition Pin
Mycroft Holmes20-Jul-14 13:53
professionalMycroft Holmes20-Jul-14 13:53 
GeneralRe: CONCAT names with condition Pin
PIEBALDconsult20-Jul-14 15:11
professionalPIEBALDconsult20-Jul-14 15:11 
AnswerRe: CONCAT names with condition Pin
GuyThiebaut20-Jul-14 22:35
professionalGuyThiebaut20-Jul-14 22:35 
QuestionFatal error encountered during command execution while executing Mysql query Pin
ven75319-Jul-14 20:42
Memberven75319-Jul-14 20:42 
Hi i have created one web application and in that i need to read the data from Mysql database and bind to gridview.

I have written Mysql query as follows
SELECT @row_number:=@row_number+1 AS row_number,Name FROM tablename, (SELECT @row_number:=0) AS r

After running in Mysql in database it will and work show the result.

But if take same query and execute through C# code below error is coming.

An exception of type 'MySql.Data.MySqlClient.MySqlException' occurred in MySql.Data.dll but was not handled in user code

Additional information: Fatal error encountered during command execution.

and i will get Break or continue pop up. If i give continue it will show Parameter '@row_number' must be defined.
even i defined like int @row_number = 0; but same error.

I need to achieve serial number as shown below

ex in database
slno name
10102 nama1
2123 name2
5203 name3

result
1 nama1
2 name2
3 name3

how to achieve this. If anybody knows please reply me.

Thanks in advance.
QuestionThe Log For the Database is Not Available Pin
Prakash S19-Jul-14 1:58
MemberPrakash S19-Jul-14 1:58 
AnswerRe: The Log For the Database is Not Available Pin
Andrius Leonavicius19-Jul-14 14:40
professionalAndrius Leonavicius19-Jul-14 14:40 
GeneralRe: The Log For the Database is Not Available Pin
Prakash S20-Jul-14 21:08
MemberPrakash S20-Jul-14 21:08 
GeneralRe: The Log For the Database is Not Available Pin
Andrius Leonavicius21-Jul-14 4:01
professionalAndrius Leonavicius21-Jul-14 4:01 
AnswerRe: The Log For the Database is Not Available Pin
Kornfeld Eliyahu Peter19-Jul-14 23:54
professionalKornfeld Eliyahu Peter19-Jul-14 23:54 
QuestionHow to select persons who didn't pay they'r bill for two mounth Pin
mohammadkaab18-Jul-14 6:57
Membermohammadkaab18-Jul-14 6:57 
AnswerRe: How to select persons who didn't pay they'r bill for two mounth Pin
Richard MacCutchan18-Jul-14 7:32
mveRichard MacCutchan18-Jul-14 7:32 
AnswerRe: How to select persons who didn't pay their bill for two months Pin
Richard Deeming18-Jul-14 7:49
mveRichard Deeming18-Jul-14 7:49 
GeneralRe: How to select persons who didn't pay their bill for two months Pin
PIEBALDconsult18-Jul-14 8:47
professionalPIEBALDconsult18-Jul-14 8:47 
GeneralRe: How to select persons who didn't pay their bill for two months Pin
Richard Deeming18-Jul-14 8:52
mveRichard Deeming18-Jul-14 8:52 
AnswerRe: How to select persons who didn't pay they'r bill for two mounth Pin
Eddy Vluggen18-Jul-14 7:49
professionalEddy Vluggen18-Jul-14 7:49 
GeneralRe: How to select persons who didn't pay they'r bill for two mounth Pin
Mycroft Holmes18-Jul-14 15:49
professionalMycroft Holmes18-Jul-14 15:49 
AnswerRe: How to select persons who didn't pay they'r bill for two mounth Pin
PIEBALDconsult18-Jul-14 8:42
professionalPIEBALDconsult18-Jul-14 8:42 
Questionhow to select numbers (integers) only? Pin
Jassim Rahma16-Jul-14 23:52
MemberJassim Rahma16-Jul-14 23:52 
AnswerRe: how to select numbers (integers) only? Pin
Richard MacCutchan16-Jul-14 23:54
mveRichard MacCutchan16-Jul-14 23:54 
AnswerRe: how to select numbers (integers) only? Pin
thatraja17-Jul-14 0:01
professionalthatraja17-Jul-14 0:01 
AnswerRe: how to select numbers (integers) only? Pin
Mycroft Holmes17-Jul-14 13:49
professionalMycroft Holmes17-Jul-14 13:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.