Incorporating Wildcards In A Report So Users Can Search Comments

Apr 15, 2014

I need to create a stored procedure and incorporate it into a report where the users can look up certain values in comment fields. This is what I have so far but I am getting errors.

Code:

CREATE PROCEDURE
[dbo].[SearchAccomplishments]
@Enter_Accomplishments text =null,
@Beginning_CompletionDate datetime = null,
@End_CompletionDate datetime = null
AS
IF patindex( '*', @Enter_Accomplishments ) > 0

[Code]...

View 1 Replies


ADVERTISEMENT

Full Text Search - Wildcards (SQL Server 2005)

Feb 5, 2008

the sql server documentation states that the use of wildcards is allowed by placing an '*' at the end of the search term.  I can get this to work OK in the SQL Server 2005 query window, heres an example
select ID, SUBSTRING(Title, 1, 100) AS Title, Implemented, Published from Table1 where contains(title,'"Therap*"') ORDER BY Title
 
this works OK and returns a list ot titles with the word Therapy in the title
  Im trying to implelemnt this functionalty in a web app with C#.  The string is passed to a stored procedure.  How on earth do I pass in the quotes ??
Ive tried building the string as normal then adding single quotes on the end, so I get something like
retval = txt + "*";    //txt contains the partial word im searching for, then add the wildcard
then  retval = "'" + retval + "'";  // add the single quotes
and pass txt as a string parameter to my stored procedure.  It doesnt work.  Can anyone tell me what im doing wrong ??
the same query works fine in the SQL query window.

View 7 Replies View Related

Fulltext Search DB - Allow Users To Search Products

Dec 6, 2011

My site uses a text box to allow visitors to search products. I'm trying to design the SQL Statement to allow search's on full words, part words, and words/phrases regardless of the order the words are in.

E.g.
megger
meg
mft megger (proper order in the database is megger mft)
mft1710 (using 1710 should find the product)

This is my select statement (classic ASP)

Code:
<%
Dim RSResults__param5
RSResults__param5 = "xxx"
If (Request("searchme") <> "") Then
RSResults__param5 = Request("searchme")
End If

[Code] ....

View 1 Replies View Related

Adding Comments To A Report

Jan 7, 2007

I would like to allow users to add a comment to a report. What is the best way to do this? When the report is run I would like users to be able to see all comments and which user reported them and the date and time the comment was entered

View 1 Replies View Related

Entering Notes/Comments/Remarks To Report

Jan 4, 2007

Hi, there,

We intended to create a report that allows users to enter remarks, comments or additional notes in supporting the report.

Can it be done in SSRS? FYI, we are using SQL Server 2005 Enterprise.

Thank you.

Regards,

Yong Hwee

View 5 Replies View Related

Transact SQL :: Search For Users By Either Their Name Or Nickname

Oct 14, 2015

I am using a web service to search for users by either their name or their nickname. Users can type the persons name into a dot net text box that has a Autocomplete extender - which means it returns a list of user with each keystroke.

This works fine if I just search for a name.

select r.fname +' ' + r.lname
from users u
join log l
on l.riderid = u.riderid

where fname +' '+ lname like @item +'%'
group by l.fname , r.lname, nicknamellame

So if I am searching for Dan Brown When I enter a D I get all users whose name starts with D, A reduces the list to those that start with Da until you get a small enough list to find Dan Brown. This works - what I would like to allow is if they entered the users nickname (another column in the users table) it would also include those options: So, if Dan's nickname is DannyBoy typing that in would return the nickname.

select r.fname +' ' + r.lname
, nickname
from users u
join log m
on l.riderid = u.riderid
where (fname +' '+ lname like @item +'%')
or (nickname like @item + '%')
group by r.fname , r.lname, r.nickname
having max(l.[date]) >= '2014-01-01'

This does not work

View 4 Replies View Related

Incorporating More Fields/more Options In SP

Dec 12, 2007

I would like to add a couple more fields that the users can query by, more options how would I add in the same stored proecedure, First Name, Date, and IR#?? so they can have the ability to run it by one field or two fields or all the above?? how would I incorporate those in the stored procedure??






Code Block
ALTER PROCEDURE [dbo].[AdvSearchRevocations]
( @Enter_LastName nvarchar(25) )
AS

IF patindex( '*', @Enter_LastName ) > 0
BEGIN
SET @Enter_LastName = replace( @Enter_Lastname, '*', '%' )

SELECT
LastName,
FirstName,
ReasonOfRevocation,
TM#,
[I/R #],
Date
FROM dbo.Revocations_Tbl
WHERE LastName LIKE @Enter_LastName
END

ELSE
BEGIN
IF patindex( '*', @Enter_LastName ) > 0
SET @Enter_LastName = replace( @Enter_Lastname, '*', '%' )
SELECT LastName,FirstName, ReasonOfRevocation, TM#, [I/R #], Date
FROM dbo.Revocations_Tbl
WHERE LastName LIKE @Enter_LastName

END
GO









is this correct





Code Block
CREATE PROCEDURE [SearchByDateExcls]
(@StartDateServed datetime,
@EndDateServed datetime, @Enter_LastName nvarchar(25), @Enter_Duration nvarchar(10))
AS SELECT IR#, [Date Served], [Reason For Exclusion], Duration, [First Name], [Last Name]
FROM [dbo].[Extended Exclusions]
GROUP BY IR#, [Date Served], [Reason For Exclusion] , Duration, [First Name], [Last Name]
HAVING (Date BETWEEN @StartDateServed AND @EndDateServed, Enter_LastName, @Enter_Duration)

View 3 Replies View Related

Incorporating Data Mining Wizard Into A Program?

Oct 21, 2006

Is there any way to incorporate the SQL 2005 Mining Wizard into my program? Sure, I can create my own mining wizard using DMX, but that's quite a bit of work. Has anyone tried this? Is it possible? Any pointers?

-Young K

View 4 Replies View Related

How Can I Display No Comments If There Is Not Any Comments ??

Oct 1, 2007



Hi all,

I have state, day_date, error, and text column. If there is data then it is showing all the columns. But if there is no comments I would like to show no comments in the text field. Currently I have this store procedure.




CREATE PROCEDURE dbo.up_daily_quad_text

@DAY_DATE datetime



AS

BEGIN

SELECT

dbo.adins_database.ZONE_NAME + ', ' + dbo.adins_database.ZONE_STATE AS [STATE AND LOCATION],

dbo.COMMENT_CATEGORY.NAME,

dbo.COMMENT.TEXT

FROM

dbo.adins_database,

dbo.COMMENT_CATEGORY,

dbo.COMMENT,

dbo.DIM_DATE

WHERE

( dbo.adins_database.adins_id=dbo.COMMENT.adinsdb_id OR (dbo.COMMENT.adinsdb_id is Null) )

AND ( dbo.COMMENT.comment_dt=dbo.DIM_DATE.DAY_DATE )

AND ( dbo.COMMENT_CATEGORY.category_id=dbo.COMMENT.category_id )

AND

dbo.DIM_DATE.DAY_DATE = @DAY_DATE

END

GO

GRANT EXECUTE ON dbo.up_daily_quad_text TO AdIns_SSRS

GO




How can I modify do that.

Thanks

Rozar2007

View 7 Replies View Related

Time Series, Incorporating Future Input Data For Prediction

Sep 25, 2006

Hi,

I've got a time series of the number of new customer subscriptions, which
is the target attribute to predict. The number of subscriptions depends on
various marketing activities, such as mailings, which are known within
the time series for the past.


If I train an ART (MS Autoregression Tree), it learns the trend pattern
as well as the correlations between the marketing activities and the
target (cross-correlations), right?
What I would like to do is, providing the model with some marketing activity
planning for the future and let the model predict the number of new
subscriptions based on a) the past trend pattern and b) the future activities.


Unfortunately a time series algorithm does not provide some kind of scoring for input data.


What would be the best approach to solve this problem? How about linear regression?
But how to train a regression model with trend patterns?


Thanks for your help!

View 1 Replies View Related

SQL Users Logged In Report

Feb 15, 2006

Hi

I need to get a report that tells me the no. of users logged on to the SQL Server (this has to be an hourly report)

Will this do



WHILE 1=1
BEGIN
Select Hostname,getdate() from sysprocesses
WAITFOR DELAY '00:59:00'
END
GO


Will it have any bad affects on the SQL Server


Or can someone plz let me knw how to get that


Thanks

View 3 Replies View Related

Record Of Report Users

Oct 24, 2007



Hi, Is it possible to find out who has accessed a certain report for a given time period?
Does Reporting Services store this data somewhere?
If so how can I access it?

TIA

View 5 Replies View Related

Users In The Report Manager

Oct 31, 2007



Hi guys,

I created a user on the system with a limited access privilege (Users group member). I need this user to see only specific reports when he login in to the report manager. I gave him a browser role on the report manager and went to the individual report and remove the permission. However, when this user go to the report manager he is not only browsing but also can do whatever the admin can do. I'm just confused. This user is created with a limited access and provided only a browser role, how can he act like an admin?

Please let me know if I missed something.

Thank you

View 1 Replies View Related

Report On Users Accessing A Database

Aug 5, 2004

Hi,

I need a way to automatically generate a daily report of user names, time of access, and type of access (login, select, insert, update, delete, etc.) to a database.

We need to audit all accesses from all accounts to find out who is accessing the payroll system. We have already defined the security to be as tight as possible - however we need to monitor all Administrator accounts to ensure they are not being used to obtain sensitive information.

I have looked for some software to read the live SQL Transaction Logs, but none of the tools I have seen can do exactly what we require. For example, I've tried Lumigent Log Explorer (http://www.lumigent.com/products/le_sql.html), but it's not automated and the report output is just garble to our payroll staff.

I have looked up all Microsoft SQL Server partners but their software is all about data recovery and data reporting. We need Security Reporting.

I have created a general SQL Profiler trace that may suffice if everything else fails, but I still have no way of automating it - it relies on Real-Time monitoring which I can't trust (admin can turn this off, do their stuff, turn it back on). Also this is dependant on someone turning it off, save the log, turn it back on, every day - this person would be the Administrator - what admin would monitor themselves?


- SQL Trace seems like a good idea, how do I read the trace log file? How do I automate a trace?


- Can we automate the SQL Profiler to read the transaction log to find all accesses to a database?

- Does anyone know what we can do to automatically audit accesses to a database? What format can the report come in (pdf, xls, dbf, html etc.)

- Recommended software to try?

- Ideas for alternatives to try?

- Any companies/developers out there who know of a tool or are developing a tool to provide this sort of report?

- Is there a spec somewhere to let us write our own software to query the live transaction log?


Thanks, I appreciate any help.
Kind Regards
James Payne

IT Administrator

View 7 Replies View Related

Report On Users Accessing Reports

May 13, 2008

All,

I would like a report to display the number of users and the reports accessed for a certain duration of time[being able to go back and check for previous years as well].

I read on the msdn that 60 days worth of report log is kept,and the rest gets wipped off.Any suggestions on how I would be able to get user access list for the past year as well.

View 5 Replies View Related

Report Effective Permissions For All Users?

Jul 20, 2005

As our customers demand that we tighten our IT security in the company,I've been asked to prepare a report quarterly showing, for each user inActive directory, what his effective permissions are for every table inevery database that he has permission for on our SQL Server 2000 server. Isearched a bit for a tool to do this, but all I found was the PERMISSIONS()function for showing effective permissions of the current user. Is thereany way to do it for an arbitrary user, without logging in as them?

View 5 Replies View Related

Allow Users To Access Report Server

Mar 8, 2008

Ive finally gotten my report server setup to run. I can access the reports via IIS from a remote computer if I login as the server administrator. Ive given certain users permissions to the /Program Files/sql server/Reporting Services/ folder, however, when I try to enter their login info, from the IIS login prompt when i visit http://servername/ReportServer/ I am unable to login. How do I grant users permission to login to report server?

thanks

View 1 Replies View Related

Report Generation Time Between Users And Admin

Aug 9, 2007

Hi,

When we generate a report with an account that is in the admin group it takes 2-3 seconds but when we do it with another user it takes over 2 minutes... any reason for this?
(The "Report is being generated" thing, by the way)

Not sure if my question is clear, I've been looking and searching for the past 2 hours but can't find anything remotly close to that problem... any help would be appreaciated!

Thanks

View 1 Replies View Related

Can Multiple Users Access The Same Report Simultaneously?

Aug 24, 2007

We are currently using Crystal reports but are considering using SQL RS. We need to know if there is a restriction on simultanoeus access to the same report by multiple users? What happens when multiple users try to access the same report simultaneously? If reports can be accessed simultaneously, do the requests queue up or are they processed concurrently?

Any help on this issue is greatly appreciated.

View 7 Replies View Related

How Do I Restrict Access To The Report Servers Header From Users

Jun 16, 2007

Hi

I'm looking to deploy some SQL Server reports and I want to restrict the access that the users have. Currently when connecting to the reports site they have access to a lot of functionality through the header bar, for example
- Properties
- New Folder
- New Data Source
- My Subscriptions
- Site Settings
- Search
etc.

How can I disbale or hide all these options so that all the user sees is the list of reports?

Thanks in advance

Mark

View 1 Replies View Related

Is It Possible To Restrict The Users To Export Report Results Only To Excel ?

Jan 2, 2007

Is it possible to restrict the Users to Export Report Results only to Excel ?

So instead of the default drop down options of csv, pdf, tiff,Web Archive,Web Archive etc... can we get it to just display Excel.

Any help would be appreciated.

View 1 Replies View Related

How To Restrict Certain Export Options (Like Excel) For Some Users For A Report.

Oct 26, 2007



Hi,

I am developing a report using SQL Server Reporting Services 2005. Now I need to restrict the Export to Excel functionality for some users, but allow it to others, on a given report (Not all reports). Please let me know if it can be done, and if Yes, then How?

Thanks & Regards,
Rahul

View 2 Replies View Related

Reporting Services :: Parameter Selection For Users In Sub Report

Aug 9, 2015

I have a report with two parameters (@StartDate and @EndDate) to enable users to specify values to customize the data in the report. These two parameters are created within the Dataset. The parameter visibility is set to visible.Opening the report directly works as expected (the user is able to input the date parameters as he wishes and then sees only the data of the specified time period, see image1).Now I want to use this report as a subreport (beeing opened from my main report): But when I open the report within the main report (via action go to report) the parameters are not shown anymore, see image2.Why are the parameters not shown anymore?

-- I'm working with Reporting Services in SharePoint mode using Sql Server 2012, SharePoint 2013.

View 4 Replies View Related

Want To Enable/disable Report Builder Option For Set Of Users

Feb 8, 2008


I want to restrict report builder access only to a reporting alias and block for other users.
Please suggest the solution

View 3 Replies View Related

Security Report - List Of All Active Users In Database With Their Privileges

Aug 28, 2014

I am looking to write a script that would give the list of all active users in a database with their privileges.

Sample would look something like this.

Login User Schema IsdbOwner canWrite canRead
xyz xyz dbo N Y Y

View 2 Replies View Related

Restrict Users To View Reports And Also Folders In Report Manager

May 6, 2008



Hi,

I would like to restrict users to allow to view related reports only...
like i have 2 users..with 4 reports

1 user can see only two reports
2 user can see only another two reports

how can i do this by SSRS???
Can i do by using Configure item-level role definitions in seetings link..
or is thr any another way to do this?

Pls reply back

Regards,
Maruthi..


View 4 Replies View Related

Reporting Services :: SSRS 2012 Report For Non Domain Users

Nov 6, 2015

I created a SSRS Reports in SQL Server 2012 and deployed in server, I want this report to be accessed by one particular User created in that hosted server and any time if user hits the Report URL it asked for login Prompt.Suppose if I create a Windows User "ReportUser" in report server , I want when user hits the URL he should be able to access the report by providing the 'ReportUser" credentials.

View 7 Replies View Related

Report Model Not Allowing Users To Filter Using A Pick List

Jan 9, 2008

I have a MSSQL Report Services Report Model set up to allow users to create their own ad hoc reports. The data source for my model is a Named Query that queries a MS SQL view that actually pulls data from a series of tables & other views. When you create a report from this model and attempt to filter the data some of the fileds will provide you with a pick list to select which values you would like to filter on and other fields do not provide you with a pick list but require you to enter the data directly that you wish to filter on. Most of the data fields that I am trying to filter on are varchar fields and like I said some will create a pick list for you to selet from and others will not. This all seemed to start after I changed my data source to a Named Query rather than having my data source as the MS SQL View directly. I did this becuase it seemed that anytime I had to make a change to the views that the data source pulled from it would mess up any existing reports that had been created and this does not happen if I use a named query. I have gone crazy trying to figure this one out so any ideas would be greatly appreciated!

View 1 Replies View Related

How To Know Number Of Users Hitting A SSRS Report Over A Time Period?

Jan 24, 2008



Hi all,
I want to raise one question which might not relevant to current discussion.
Prob:-- I have some SSRS reports. I want to know for a given time period
1. How many people hit the report.
2. Who are the users hit the report in that time interval.

Is there any query to get that data?
Or,
should I go somewhere to see the data?

NB:- There is not any table in the application which is storing the data

View 10 Replies View Related

SSRS How To Customize The Report Models Created For Specific Users

Jan 3, 2008

hi,

I am new to SSRS. I am doing some report models for Ad-hoc reports. Im my database i have some users and their roles according to my requirement. User should only see the particular reports if he have privilege. how to customize...

User will access Report Builder to do adhoc report.

For example
I have 5 report Models
rptModel1
rptModel2
rptModel3
rptModel4
rptModel5

In my data base there are 3 users.
user1 have privilege to view rptModel1, rptModel3
user2 have privilege to view rptModel4, rptModel5
user3 have privilege to view rptModel2, rptModel5

When Particular user access the report builder, There i want to show only that particular Report models...
is there any posibilities to do this please Help me.

Thanks in Advance...


-Kannan
kannan1017@gmail.com

View 5 Replies View Related

What Report Manager Config Options Are Available If Some RS Users Are Internet And Others Are Intranet?

Jan 2, 2008

If we decide to make Report Manager the UI facing both internet and intranet users, but prefer that our intranet users not face the performance hit created by SSL, and prefer that SSL be turned on for internet users, what options do we have for configuting our RS environment if all users ultimately use the same reports and we wish to keep number of licenses at a minimum?

View 1 Replies View Related

Modifying A Report Model Without Rewrite ALL The Ad-hocs Reports Developed By Users...it Is Possible?

Mar 13, 2007

Community:

Suposse that some models are deployed in Report Server for a while, and users have developed some ad-hoc reports on them using Report Builder, (some of the models are SSAS Cubes).

Modifications are required for a Model, what is the procedure to deploy this modifications? What happens with ad-hoc reports of this Model? Rewrite all the reports is a VERY BAD option, I agree that some reports must be rewrote, but only if they reference objects no longer valids in new model.

I suposse that the procedure for SSAS Cube Models will be different for a Relational Database Source because metods of generating models are so different. (I am particularly curious about Cubes, I can't figure out how I can do it)

Suggestions and links will be very appreciate.

Regards

Julio Díaz C.



View 6 Replies View Related

SQL 2000 MS Search: Boolean Search Doesn't Work When Search By Phrase

Aug 9, 2006

I'm just wonder if this is a bug in MS Search or am I doing something wrong.

I have a query below

declare @search_clause varchar(255)

set @Search_Clause = ' "hepatitis b" and "hepatocellular carcinoma"'

select * from results

where contains(finding,@search_clause)

I don't get the correct result at all.

If I change my search_clause to "hepatitis" and "hepatocellular carcinoma -- without the "b"

then i get the correct result.

It seems MS Search doesn't like the phrase contain one letter or some sort or is it a know bug?

Anyone know?

Thanks

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved