Click here to Skip to main content
15,881,413 members
Home / Discussions / Database
   

Database

 
AnswerRe: Weird MS SQL "Error" Pin
jschell23-Jul-14 11:55
jschell23-Jul-14 11:55 
AnswerRe: Weird MS SQL "Error" Pin
Bernhard Hiller23-Jul-14 21:01
Bernhard Hiller23-Jul-14 21:01 
GeneralRe: Weird MS SQL "Error" Pin
GenJerDan24-Jul-14 3:14
GenJerDan24-Jul-14 3:14 
QuestionCONCAT names with condition Pin
Jassim Rahma20-Jul-14 11:51
Jassim Rahma20-Jul-14 11:51 
AnswerRe: CONCAT names with condition Pin
Mycroft Holmes20-Jul-14 12:53
professionalMycroft Holmes20-Jul-14 12:53 
GeneralRe: CONCAT names with condition Pin
PIEBALDconsult20-Jul-14 14:11
mvePIEBALDconsult20-Jul-14 14:11 
AnswerRe: CONCAT names with condition Pin
GuyThiebaut20-Jul-14 21:35
professionalGuyThiebaut20-Jul-14 21:35 
QuestionFatal error encountered during command execution while executing Mysql query Pin
ven75319-Jul-14 19:42
ven75319-Jul-14 19: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 0:58
Prakash S19-Jul-14 0:58 
AnswerRe: The Log For the Database is Not Available Pin
Andrius Leonavicius19-Jul-14 13:40
professionalAndrius Leonavicius19-Jul-14 13:40 
GeneralRe: The Log For the Database is Not Available Pin
Prakash S20-Jul-14 20:08
Prakash S20-Jul-14 20:08 
GeneralRe: The Log For the Database is Not Available Pin
Andrius Leonavicius21-Jul-14 3:01
professionalAndrius Leonavicius21-Jul-14 3:01 
AnswerRe: The Log For the Database is Not Available Pin
Kornfeld Eliyahu Peter19-Jul-14 22:54
professionalKornfeld Eliyahu Peter19-Jul-14 22:54 
QuestionHow to select persons who didn't pay they'r bill for two mounth Pin
mohammadkaab18-Jul-14 5:57
mohammadkaab18-Jul-14 5:57 
AnswerRe: How to select persons who didn't pay they'r bill for two mounth Pin
Richard MacCutchan18-Jul-14 6:32
mveRichard MacCutchan18-Jul-14 6:32 
AnswerRe: How to select persons who didn't pay their bill for two months Pin
Richard Deeming18-Jul-14 6:49
mveRichard Deeming18-Jul-14 6:49 
GeneralRe: How to select persons who didn't pay their bill for two months Pin
PIEBALDconsult18-Jul-14 7:47
mvePIEBALDconsult18-Jul-14 7:47 
GeneralRe: How to select persons who didn't pay their bill for two months Pin
Richard Deeming18-Jul-14 7:52
mveRichard Deeming18-Jul-14 7:52 
AnswerRe: How to select persons who didn't pay they'r bill for two mounth Pin
Eddy Vluggen18-Jul-14 6:49
professionalEddy Vluggen18-Jul-14 6:49 
GeneralRe: How to select persons who didn't pay they'r bill for two mounth Pin
Mycroft Holmes18-Jul-14 14:49
professionalMycroft Holmes18-Jul-14 14:49 
AnswerRe: How to select persons who didn't pay they'r bill for two mounth Pin
PIEBALDconsult18-Jul-14 7:42
mvePIEBALDconsult18-Jul-14 7:42 
Questionhow to select numbers (integers) only? Pin
Jassim Rahma16-Jul-14 22:52
Jassim Rahma16-Jul-14 22:52 
AnswerRe: how to select numbers (integers) only? Pin
Richard MacCutchan16-Jul-14 22:54
mveRichard MacCutchan16-Jul-14 22:54 
AnswerRe: how to select numbers (integers) only? Pin
thatraja16-Jul-14 23:01
professionalthatraja16-Jul-14 23:01 
AnswerRe: how to select numbers (integers) only? Pin
Mycroft Holmes17-Jul-14 12:49
professionalMycroft Holmes17-Jul-14 12: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.