15,991,047 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 .NET 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 10017719 (Top 30 by date)
Member 10017719
15-May-14 1:27am
View
Can u give example DamithSL
Member 10017719
23-Apr-14 1:18am
View
Deleted
One more doubt.. If absent days for April is 2 and May is nil means how to do? then i m using SQL SERVER 2008... I want to include @ToDate also Andrius :)
Member 10017719
23-Apr-14 1:16am
View
gr8...) Hats off
Member 10017719
22-Apr-14 8:12am
View
For same month and year no problem, i need solution for different month and year
Member 10017719
22-Apr-14 8:10am
View
Thank u anup:) I need salary calculation as Output ex:if fromdate='2014-04-20' and todate='2014-04-23' Working days=3 so, Salary Calculation=(10000/30)*3=1000
Member 10017719
22-Apr-14 8:09am
View
Thank u Andrius, 10000 is montly salary, salary per day=(montly salary/total days of month)
if fromdate='2014-04-20' and todate='2014-04-23' Working days=3 so, Salary Calculation=(10000/30)*3=1000
Member 10017719
11-Apr-14 5:55am
View
Ya Correct!
Member 10017719
11-Apr-14 5:48am
View
Ur question is not clear:)
Member 10017719
11-Apr-14 5:21am
View
Can u elaborate ur question?
Member 10017719
7-Apr-14 2:23am
View
Ya it's possible
Member 10017719
5-Apr-14 5:30am
View
Thank you Schatak...gr8
Member 10017719
5-Apr-14 4:10am
View
Ya I have tried with dynamic sql also as follows
SELECT TOP 1 @First_CName=COLUMN_NAME FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME=@Table_Name
SET @From_Value=CAST(@fromId AS VARCHAR(50))
SET @To_Value=CAST(@toId AS VARCHAR(50))
SELECT @SQL='SELECT * FROM ' +@Table_Name+ ' WHERE '+ @First_CName +' BETWEEN CAST(' +@From_Value+' AS INT) AND CAST(' +@To_Value+ ' AS INT)'-- ex: @fromId=45 and @toId=46(inputs)
EXEC sp_executesql @SQL
Its returning error:The parameters supplied for the batch are not valid.
Member 10017719
5-Apr-14 3:43am
View
Actually that column name I am passing to that variable right.. Now @First_CName=ColumnName of table
Member 10017719
1-Apr-14 3:11am
View
Id Name
======================
1 John
2 Mark
4 Peter
6 Joe
Member 10017719
1-Apr-14 2:43am
View
I m not skipping 5..consider id 5 is not available
Member 10017719
1-Apr-14 2:06am
View
1,3,6... Its not depend on multiples of any number..its depend on occurence of input number
Member 10017719
1-Apr-14 1:58am
View
Deleted
1,3,6... Its not depend on multiples of any number..its depend on occurence of input number
Member 10017719
27-Mar-14 4:47am
View
Awesome...:)
Member 10017719
27-Mar-14 4:47am
View
Thank u Raul Iloc
Member 10017719
6-Mar-14 2:19am
View
Can u post ur question still clearly
Member 10017719
5-Mar-14 0:19am
View
ya Humayun Rashed
Member 10017719
5-Mar-14 0:04am
View
U can use While loop in sql server
Member 10017719
4-Mar-14 23:59pm
View
Can u explain your method
Member 10017719
8-Feb-14 6:12am
View
I did tat also plz see SP
Member 10017719
8-Feb-14 6:08am
View
I m getting Imei_Number Karthick.Thats no probs
Member 10017719
8-Feb-14 5:53am
View
Thank u abhijitmalkar but still its returning null for lat and long....
Member 10017719
8-Feb-14 5:38am
View
Thank u so much karthik.But still its returning null
Member 10017719
30-Jan-14 7:55am
View
I checked manually also its executing but table does not contains values
Member 10017719
30-Jan-14 6:11am
View
Thanks OriginalGriff.....Error like must declare scalar variable @gps..
Member 10017719
30-Jan-14 6:08am
View
Thanks Karthick for ur reply but still same issue..Query is executing but values have'nt inserted in table
Show More