15,898,798 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Member 12770648 (Top 37 by date)
Member 12770648
4-Jan-20 3:55am
View
login as sysdba
Member 12770648
7-Nov-19 7:14am
View
USE [WPAY]
GO
/****** Object: StoredProcedure [dbo].[sp_pers_trans] Script Date: 11/03/2019 19:27:33 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER Procedure [dbo].[sp_pers_trans]
(
@BRETURN varchar(20) output
)
AS
Begin
Begin
CREATE TABLE #SearchResults
(
Zidno varchar(50),
Zempno varchar(80),
Zfname varchar(50),
Zlname varchar (50),
Zdeptname varchar (50)
)
Insert Into #SearchResults(Zidno,Zempno,Zfname,Zlname,Zdeptname)
Select IDNO,EMPNO,FNAME,LNAME,DEPTNAME from WHR.dbo.PAYMAST where WHR.dbo.PAYMAST.IDNO not in
(select idno from WPAY.dbo.Paycurrt);
IF EXISTS (SELECT * FROM #SearchResults)
BEGIN
Select Zidno 'IDNO' ,
Zempno 'EMPNO',
Zfname 'FNAME',
Zlname 'LNAME',
Zdeptname 'DEPTNAME'
From #SearchResults ORDER BY Zlname
SELECT @BRETURN = 'FIRST'
END
ELSE
SELECT @BRETURN = 'SECOND'
END
End
Member 12770648
6-Nov-19 12:36pm
View
protected void GridView1_SelectedIndexChanged(object sender, EventArgs e)
{
//GRIDVIEW BEGIN
//txtSave.Enabled = false;
try
{
//connection to the database
//
//
string str;
str = ConfigurationManager.ConnectionStrings["WEBPAY"].ConnectionString;
SqlConnection sqlcon = new SqlConnection(str);
string intno;
//Get the intno
intno = GridView1.SelectedRow.Cells[1].Text;
//call the stored procedure
SqlCommand SqlCmd = new SqlCommand("sp_pers_trans", sqlcon);
SqlCmd.CommandType = System.Data.CommandType.StoredProcedure;
//Supply the User_id parameter
// SqlCmd.Parameters.AddWithValue("@BRNNO", intno);
//Create and supply the output parameters
// SqlCmd.Parameters.Add("@BRETURN", System.Data.SqlDbType.VarChar, 12);
// SqlCmd.Parameters["@BRETURN"].Direction = System.Data.ParameterDirection.Output;
//Open the sql data connection
sqlcon.Open();
//Execute the stored procedures
SqlCmd.ExecuteNonQuery();
//Assign the results to the controls
lblstatus.Text = "Grid record successful";
//
//
sqlcon.Close();
}
catch (Exception ex)
{
lblstatus.Text = ex.Message;
}
//GRIDVIEW END
}
Member 12770648
4-Nov-19 15:29pm
View
If this is meant to be a text comparison with the value UNIQ then the clause should be
WHERE Category = 'UNIQ'
Yes Exactly.
Member 12770648
28-Apr-19 9:20am
View
How do you TRIM the fields
Member 12770648
28-Apr-19 9:03am
View
SqlConnection connect = new SqlConnection();
connect.ConnectionString = ConfigurationManager.ConnectionStrings["WEBHR"].ConnectionString;
connect.Open();
SqlDataAdapter da = new SqlDataAdapter(@"Select TRANS_NO,IDNO,EMPNO,LNAME+' '+FNAME AS [NAME],
CURR_BRANAME,CURR_BRANCH,CURR_DEPT,CURR_DEPTNAME,CURR_SECTNAME,
CURR_SECTN,TRANS_TYPE,DEPT,DEPTNAME,BRANAME,BRANCH,SECTNAME,SECTN,
SUP_NAME,SUP_NO,TRANDATE,EFF_DATE,GRANT1
from Transfer order by empno", connect);
DataSet ds = new DataSet();
da.Fill(ds, "Transfer");
txt_Trans.Text = ds.Tables["Transfer"].Rows[0]["TRANS_NO"].ToString();
txt_Code.Text = ds.Tables["Transfer"].Rows[0]["IDNO"].ToString();
txt_Empno.Text = ds.Tables["Transfer"].Rows[0]["EMPNO"].ToString();
txt_Name.Text = ds.Tables["Transfer"].Rows[0]["NAME"].ToString();
Member 12770648
28-Apr-19 9:01am
View
The combination is not achieved.
Member 12770648
28-Apr-19 9:00am
View
Problem it picks only the first field only and the expected result is not achieved
Member 12770648
5-Dec-18 1:21am
View
Null
How do you check for null
Member 12770648
5-Dec-18 1:20am
View
How do you check for null?
Member 12770648
4-Dec-18 21:18pm
View
Thereafter the ADD button is selected for submission.
If intno2 is empty the conditional statement should kick in.
Member 12770648
4-Dec-18 21:13pm
View
If a record is selected from a grid to populate the text boxes on a page and txt_idcnt.Text is empty
intno2 = txt_idcnt.Text;
if (intno2 == "")
{
lblstatus.Text = "No record Selected";
}
Member 12770648
4-Dec-18 20:59pm
View
Yes
Member 12770648
6-May-18 2:51am
View
Thanks for the explanation
using the the example you've provided how will
I select this.
SET @sql = 'SELECT BRN_NAME, PROD_SERV, COMP_TYPE,
PROD_SERV_TAT,OVER_CNT,OPINIONS,OPINION_CNT
from ('+ @sql+') AA
Thanks again
Member 12770648
5-May-18 7:55am
View
Thanks
This is a complex scenario need assistance beyond the normal definition
Member 12770648
7-Feb-18 6:56am
View
Do you start from Group Expert or Section Expert please assist
Member 12770648
7-Feb-18 5:50am
View
The solution provided lacks merit
Member 12770648
3-Nov-17 7:22am
View
How do you calculate the average with some of the options not applicable
Member 12770648
31-Oct-17 12:23pm
View
How do you call the called subroutine from the calling?
Member 12770648
11-Oct-17 5:49am
View
How do you trim LNAME + ' ' + FNAME
Member 12770648
24-Mar-17 1:14am
View
create table [Ktasks]
(
taskID int identity(1,1),
Task nvarchar(150),
AssignedTo int
)
INSERT INTO [Ktasks] VALUES('1','JOHN SMITH' ,1)
INSERT INTO [Ktasks] VALUES('1','SARAH ADAMS',1)
INSERT INTO [Ktasks] VALUES('1','MIC JONES' ,1)
INSERT INTO [Ktasks] VALUES('1','GODFRED ARTHUR' ,1)
INSERT INTO [Ktasks] VALUES('1','DAVID LAWSON' ,1)
INSERT INTO [Ktasks] VALUES('1','JENNY BRUCE' ,1)
create table [Master]
(
idno varchar(10),
name varchar(15),
)
Insert Into Master Values ('0001','JAMES')
Insert Into Master Values ('0002','PAUL')
Insert Into Master Values ('0003','MAY')
Insert Into Master Values ('0004','PAT')
UPDATE [Ktasks] SET AssignedTo =
(select TOP 1 idno
from [Master] M left outer join [Ktasks] T on M.idno=T.AssignedTo
group by idno
order by COUNT(t.taskID) )
WHERE AssignedTo IS NULL
select * from Ktasks
Member 12770648
24-Mar-17 1:13am
View
I run it but it was not able to generate '0004' 'PAT'
Member 12770648
14-Mar-17 9:12am
View
please assist with the updatepanel, not familiar with that
thanks
Member 12770648
12-Mar-17 16:52pm
View
When I debugged
Member 12770648
20-Feb-17 14:32pm
View
Its been updated I left it out
Member 12770648
4-Feb-17 8:20am
View
public partial class comprehensive_view : System.Web.UI.Page
{
ReportDocument reportDocum = new ReportDocument();
protected void Page_Init(object sender, EventArgs e)
{
string prd = (String)(Session["dperiod"]);
string yrr = (String)(Session["dyear"]);
string myst1 = (String)(Session["dfi"]);
if (myst1 == "HISTORIC ARREARS BALANCES")
{
reportDocum.Load(Server.MapPath("~/Reports/Comprehensive_Current.rpt"));
reportDocum.SetDatabaseLogon("CMS", "Passw0rd!", "Eadmin", "Credit_App");
reportDocum.SetParameterValue("@CMONTH", prd);
reportDocum.SetParameterValue("@CYEAR", yrr);
Errror :: Invalid Path
Member 12770648
27-Jan-17 23:11pm
View
UPDATE HL
SET HL.ALLOW8 = H.ALLOW8 ,
HL.ALLOW9 = H.ALLOW9 ,
HL.ALLOW10 = H.ALLOW10
FROM PAYSLIP HL
INNER JOIN PAYROLL H
ON H.IDNO=HL.IDNO
WHERE HL.YEAR1 ='2017' AND H.YEAR1 ='2017'
error message
ORA -00933 SQL command not properly ended
The error is around the from
Member 12770648
2-Nov-16 0:38am
View
sorry the database is MSSQL -2008
HANKS
Member 12770648
14-Oct-16 5:41am
View
I have other projects which are working fine.
I just created a new form and its ok in one of them
Member 12770648
14-Oct-16 3:29am
View
I created an empty form to test and it wont work the same error, it seems the project is corrupted.
Member 12770648
6-Oct-16 5:43am
View
I need an example in CTE that has NOT IN and UNION such that EMPNO in UTILITY that are
also in COMPLAINT are excluded
UTILITY (EMPNO,EMPNAME)
EMPNO EMPNAME
001 IVY
002 HAN
003 AMY
004 SAM
005 DAN
COMPLAINT (EMPNO,EMPNAME)
EMPNO EMPNAME
001 IVY
002 HAN
003 AMY
Thanks
Member 12770648
3-Oct-16 16:57pm
View
I have just read about datasets and I need to incorporate the operation in a while loop.
Remember this is a feature I have working in another language and Iam switching over to c# asp.net, There is a learning curve.
You guys are not patient with new users.
Member 12770648
3-Oct-16 12:46pm
View
You have misled the request.
All, I wanted was how to get the filtered records mailed and not about the connection please.
I have searched for such an example but to no avail.
Member 12770648
3-Oct-16 12:37pm
View
Please its not about the connection.
Its about how to loop to send the mails in c# asp.net
Member 12770648
3-Oct-16 12:36pm
View
please its not about the connection. I am new to c# asp.net I just moved from another language.
Its about the looping to send the message
Member 12770648
3-Oct-16 12:34pm
View
I dont have problem with data retrival please.
Its the looping please.
Member 12770648
3-Oct-16 12:32pm
View
Its not about the connection please .
Its about setting the loop thereafer afer the data has been retrieved,
Show More