Click here to Skip to main content
15,896,324 members
Home / Discussions / Database
   

Database

 
Generaltable-value function from ADO Pin
Green Fuze22-Apr-08 22:39
Green Fuze22-Apr-08 22:39 
AnswerRe: table-value function from ADO [modified] Pin
andyharman23-Apr-08 23:19
professionalandyharman23-Apr-08 23:19 
GeneralRe: table-value function from ADO Pin
Mark J. Miller24-Apr-08 10:17
Mark J. Miller24-Apr-08 10:17 
GeneralSlow running Insert/Update query for a specific db Pin
Maira K22-Apr-08 19:32
Maira K22-Apr-08 19:32 
GeneralRe: Slow running Insert/Update query for a specific db Pin
Ashfield22-Apr-08 21:21
Ashfield22-Apr-08 21:21 
GeneralRe: Slow running Insert/Update query for a specific db Pin
Maira K22-Apr-08 22:38
Maira K22-Apr-08 22:38 
GeneralRe: Slow running Insert/Update query for a specific db Pin
Ashfield23-Apr-08 2:21
Ashfield23-Apr-08 2:21 
GeneralInput string was not in a correct format Pin
chaitanya_dec2422-Apr-08 18:57
chaitanya_dec2422-Apr-08 18:57 
private void UpdateDB()
{
if (lblBilledItemTotal.Text == "")
{
lblBilledItemTotal.Text ="0";
}
double billedTotal = Convert.ToDoubl(lblBilledItemTotal.Text);
double billDisc = Convert.ToDouble(txtBillDiscCash.Text);
double netPayable = Convert.ToDoubl(lblNetPayableAmount.Text);
po.AddBillData(billedTotal, billDisc, netPayable, DateTime.Now.ToShortDateString());
ClearDS();
ds = po.GetLatestBillNo();
int billNo = Convert.ToInt32(ds.Tables[0].Rows[0].ItemArray.GetValue(0));

foreach (DataGridViewRow dgR in dgItems.Rows)
{
if (dgR.Cells["dgColProdCode"].Value != null)
{
itemCode = dgR.Cells["dgColProdCode"].Value.ToString();
itemName = dgR.Cell["dgColItemDescription"].Value.ToString();
itemPrice = Convert.ToDouble(dgR.Cells["dgColPrice"].Value);
itemQty = Convert.ToInt32(dgR.Cells["dgColQuantity"].Value);
itemDiscCash = Convert.ToDouble(dgR.Cells["dgColItemDiscCash"].Value);
itemDiscPercent = Convert.ToDouble(dgR.Cells["dgColItemDiscPercent"].Value);
itemTotal = Convert.ToDouble(dgR.Cells["dgColTotal"].Value);
po.AddSalesData(billNo, itemCode, itemName, itemQty, itemDiscCash, itemDiscPercent, itemPrice, billedTotal, DateTime.Now);
}
}

IDictionaryEnumerator myEnum = ht_ItemQty.GetEnumerator();
int qty;

while (myEnum.MoveNext())
{
qty = Convert.ToInt32(po.GetProdQty(myEnum.Key.ToString()).Tables[0].Rows[0].ItemArray.GetValue(0));
qty = qty - Convert.ToInt32(ht_ItemQty[myEnum.Key]);
po.UpdateStock(myEnum.Key.ToString(), qty);
}
}
GeneralRe: Input string was not in a correct format Pin
Colin Angus Mackay22-Apr-08 23:42
Colin Angus Mackay22-Apr-08 23:42 
GeneralDatabase design problem Pin
snouto22-Apr-08 18:35
snouto22-Apr-08 18:35 
Questionlinked server on mysql replication?? Pin
Talsaniya Jayesh22-Apr-08 11:50
professionalTalsaniya Jayesh22-Apr-08 11:50 
AnswerRe: linked server on mysql replication?? Pin
leckey22-Apr-08 16:28
leckey22-Apr-08 16:28 
QuestionLINQ making SQL calls to an Oracle Sun Server. Pin
Steve Holdorf22-Apr-08 11:07
Steve Holdorf22-Apr-08 11:07 
GeneralRe: LINQ making SQL calls to an Oracle Sun Server. Pin
Colin Angus Mackay22-Apr-08 23:44
Colin Angus Mackay22-Apr-08 23:44 
GeneralDefault values in microsoft Sql Server Pin
Neophyte3022-Apr-08 5:25
Neophyte3022-Apr-08 5:25 
GeneralRe: Default values in microsoft Sql Server Pin
SimulationofSai22-Apr-08 7:26
SimulationofSai22-Apr-08 7:26 
GeneralRe: Default values in microsoft Sql Server Pin
Neophyte3022-Apr-08 23:22
Neophyte3022-Apr-08 23:22 
GeneralRe: Default values in microsoft Sql Server Pin
sonia.sardana23-Apr-08 23:38
sonia.sardana23-Apr-08 23:38 
GeneralSQL EXPRESS REPLICATION Pin
briogene22-Apr-08 3:19
briogene22-Apr-08 3:19 
Questionchange date from mm/dd/yyyy to ddmmmyy Pin
tlisom22-Apr-08 2:23
tlisom22-Apr-08 2:23 
GeneralRe: change date from mm/dd/yyyy to ddmmmyy Pin
Blue_Boy22-Apr-08 2:32
Blue_Boy22-Apr-08 2:32 
GeneralRe: change date from mm/dd/yyyy to ddmmmyy Pin
tlisom22-Apr-08 3:08
tlisom22-Apr-08 3:08 
GeneralRe: change date from mm/dd/yyyy to ddmmmyy Pin
Blue_Boy22-Apr-08 3:54
Blue_Boy22-Apr-08 3:54 
QuestionHow to update the values in VC++? Pin
savitri21-Apr-08 23:31
savitri21-Apr-08 23:31 
AnswerRe: How to update the values in VC++? Pin
Blue_Boy22-Apr-08 0:12
Blue_Boy22-Apr-08 0:12 

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.