|
When I wrote one of these in the 90s we required word docs only, then we compared each word in the document with a list of skills, if there was a kit it was added to the skills set for that document.
I imagine the tech has moved on in the last 20 years
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
How much did the tech move forward for time-sheets?
Bastard Programmer from Hell
if you can't read my code, try converting it here[^]
|
|
|
|
|
If it's actual files (blob) like word, .txt, excel etc you can use iFilter in sql. http://support.microsoft.com/kb/945934[^]
This will give you a fast search of content in your files.
--------------------
When Chuck Norris' dreams come true, your worst nightmares begin.
|
|
|
|
|
ASPnoob wrote: Any suggestions will be greatly appreciated
How many resumes? Hundreds, hundreds of thousands, Millions?
How responsive does it need to be? How many searches at one time?
Will this database and database server be used for anything else?
The answers to those questions impact how it can be designed.
|
|
|
|
|
Google 'Resume Parser'. No need to re-invent the wheel.
|
|
|
|
|
Astonishing, it would never have occurred to me that there seems to be a whole industry around parsing the crap we see in CVs. I wonder if they should be promoted as bullshit detectors!
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Implement in the language of your choice:
boolean is_bullsh-t(string cv)
{
return true;
}
Cheers,
Peter
Software rusts. Simon Stephenson, ca 1994. So does this signature. me, 2012
|
|
|
|
|
When I Put SET NOCOUNT ON before sql statement its giving -1 rows effected in sql server 2005.
But in my code i need rows effected 0 . How to do that ?
|
|
|
|
|
You told the server not to count, so it returns -1.
Why do you "need" a count of 0?
Bastard Programmer from Hell
if you can't read my code, try converting it here[^]
|
|
|
|
|
That's an old concept for returning a value when actually no value can be returned (e.g. due to an error).
Here, you told the server that it must not count the rows affected. When you now ask "how many rows were affected" it cannot return the "correct" value, you ought to expect an exception, but for compatibility with legacy applications, it returns a number.
Any whole number from 0 to inifinite would pretend to be the correct result. Hence, the server must not return any value in that range. And therefore, it returns -1: it is not possible that a negative number of rows was affected.
Get used to that old concept, you may encounter it more often.
|
|
|
|
|
Dim Ssql
Dim dbstatus
Dim rs
'*************
Ssql = " Select * from User_Access A Where A.User_pwd ='1234' "
set rs = Server.CreateObject("ADODB.RecordSet")
rs = DB.execute(Ssql,dbstatus)
Response.Write(dbstatus)
If dbstatus <> 0 Then
'Error code here
Else
'code here
END IF
'*************
Above is the code working ok . Actually this is written in dll. Now code will give error if "dbstatus" is other than 0 . Here I'm getting -1 always in my environment.
|
|
|
|
|
..and what's the problem with changing that code to reflect reality? There aren't 0 records affected, but an "uncounted" number;
If dbstatus <> -1 Then
'Error code here
Else
'code here
END IF
Then again, your If-Else wouldn't be very valuable, since it will always return -1 (unless an exception occurs or you raiserror)
Bastard Programmer from Hell
if you can't read my code, try converting it here[^]
|
|
|
|
|
|
..add a SELECT 1 WHERE 1 = 0 to your Sql-statement. IIRC and you execute a batch, only the affected rows of the last statement are returned.
Bastard Programmer from Hell
if you can't read my code, try converting it here[^]
|
|
|
|
|
Hi,
Because you are telling to server, "don't count the numbers of rows affected".
If you need the numbers of rows affected then try setting SET NOCOUNT OFF .
All the bset.
|
|
|
|
|
SET NOCOUNT OFF is working for insert delete update but for select statement it is giving -1 always .
|
|
|
|
|
Member 3487632 wrote: for select statement it is giving -1 always
What a shocker. It is what the doc[^] says: For UPDATE, INSERT, and DELETE statements, the return value is the number of rows affected by the command... For all other types of statements, the return value is -1
|
|
|
|
|
|
Member 3487632 wrote: select statement it is giving -1 always
Why you are checking the SET NOCOUNT in the case of select? Instead of that you can check your result-set rows..
Check your result-set rows for the number of rows selected..
|
|
|
|
|
Based on your other responses.
You have the following code
1. SQL
2. Calling code.
In a previous statement it appears that you cannot modify 2.
So that means you MUST modify 1 such that it returns the value that you want.
Thus for example you can structure a stored proc such that if there are no results, which you check for, then you return zero. (That means you write the code to do just that.)
|
|
|
|
|
How to do SET NOCOUNT ON at database level or at server level
Thanks in advance
|
|
|
|
|
There is no option to turn this on for a particular database on the server. You can turn this off for the whole server <var>Properties > Connections > No Count checkbox</var> .
When I was a coder, we worked on algorithms. Today, we memorize APIs for countless libraries — those libraries have the algorithms - Eric Allman
|
|
|
|
|
Hi Even then rows effected i'm getting -1 in select statement .
What i'm observing is that when i put SET NOCOUNT ON before sql statement even then it is returning -1. I guess it shud return 0 .
I'm having sql server 2005 . Please help.
Thanks
|
|
|
|
|
Hi .
I want to know how can i increase the session existence time in SQL server. I have a software that uses a connection to SQL server . when it remains idle for some minutes then the new session will be created to SQL server from the application side . This produces me me a big problem . Because i use the connection_Id for auditing the user . in my login table i have applicationID that refers to connection_Id in sys.dm_exec_connections .
when the software authenticates the user , It updates the connection_ID in login table and through this column i can get my user's username in my triggers .
here is the problem
when my software becomes idle , then another connection_id is created and i can not trace my user because i can not reach my user in logins table
this is my login table
CREATE TABLE [dbo].[Logins](
[LoginUser] [nvarchar](50) NOT NULL ,
[Password] [nvarchar](50) NOT NULL,
[IsDefaultPassword] [int] NULL,
[AppID] [uniqueidentifier] NULL,
CONSTRAINT [PK_Logins] PRIMARY KEY CLUSTERED
(
[LoginUser] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
and this is my authenticate procedure
CREATE PROCEDURE [dbo].[Authenticate] (@username nvarchar(30) , @password nvarchar(30))
AS
declare @Authenticated int
set @Authenticated = 0
select @Authenticated = 1
from Logins l
where l.LoginUser =@username and l.Password =@password
if @Authenticated = 1
begin;
declare @AppID uniqueidentifier
select @AppID=p.connection_id from sys.dm_exec_connections p
where p.session_id = @@SPID
update Logins
set AppID = @AppID
where Logins.LoginUser = @username and Logins.Password = @password
end;
select @Authenticated ,@AppID
|
|
|
|
|
yousefshokati wrote: when my software becomes idle , then another connection_id is created
Easiest way out is to not create a new connection, but re-use the existing one. Otherwise, keep the Id around in a variable after your first connect, and pass it as a param on the idle-connection.
Bastard Programmer from Hell
if you can't read my code, try converting it here[^]
|
|
|
|