DataSource Controls :: Simulating Many Users To Test Search Query?

Feb 28, 2010

I'm developing an ASP.NET application which has allows users to search for other users based on their name. This search is done using Linq to SQL. At the moment, I've only got 10 or so users in my database, so I can't really test the efficiency of my search query. I'm new to testing and such, but what is the best way to simulate 100/1000/10000 users on a query? Is there a tool (preferably free) that would allow me to perform tests to see how quickly the database can be searched if it had x number of users?

View 1 Replies


Similar Messages:

DataSource Controls :: Full Text Search Test - Works Without Parameters

May 28, 2010

I'm new with all stored procs - but I have a very basic Full Text Search going on...I created a stored proc, and linked it up to my application using Linq to SQL. If I use Linq to SQL to call the stored proc without any parameters (hard coded search string) i get results back, as soon as I add a parameter - the result set is 0 for some reason.

The funny thing is that I run Profiler and execute both queries its trying to do - and it looks identical

Here is the working parameterless query:

[Code]....

and according to Profile this is what it looks like when its called as a stored proc

[Code]....

I get 2 results as expected.
Here is the NON-working stored proc that takes in 1 string parameter

[Code]....

and here is the query that gets called when profiling

[Code]....

declare @p4 int

View 3 Replies

DataSource Controls :: Test The Performance Of When The Query Is Included Directly In The SqlDataSource?

Feb 16, 2011

I have a query that I want to test the performance of when the query is included directly in the SqlDataSource versus when I call a stored procedure. Does anyone have suggestions on how I would be able to closely watch the actual steps here? I was thinking of turning on tracing and adding Trace.Write for each of the events that fire along the way. This doesn't seem efficient and I wanted to see if there was a better approach.

View 2 Replies

DataSource Controls :: A Query Generator To Search In The DB?

May 27, 2010

I'm looking for something similar to EasyQuery. Some sort of control that lets the user or the admin to select some tables, then some columns for the tables and the conditions, so he can do the query without entering the mysql sentence, only selecting the tables and the rows...

View 1 Replies

DataSource Controls :: Sql Query Syntax For Advanced Search With Dropdownlists

Feb 16, 2010

I want to be able to make a query from three dropdownlists but not all three have to be selected to create results. This is what I have so far :

sub getdata (src as object, e as eventargs)
dim strsql as string
dim myconnection as oledbconnection
dim mycommand as oledbcommand
myconnection = new oledbconnection(ConfigurationSettings.AppSettings("MM_CONNECTION_STRING_csrdb"))
strsql ="SELECT tbl_case.Case_id, tbl_case.Title, tbl_case.Description, Tbl_Country.Country_Name, tbl_principle.Principle_Name," _
& "tbl_keyword.Keyword FROM tbl_keyword INNER JOIN ((tbl_principle INNER JOIN (Tbl_Country INNER JOIN tbl_case ON Tbl_Country.Country_Id
tbl_case.country) ON tbl_principle.Principle_ID = tbl_case.Principle) INNER JOIN tbl_Usedkeywords ON tbl_case.Case_id
= tbl_Usedkeywords.case) ON tbl_keyword.Keyword_id = tbl_Usedkeywords.keyword " _
& "WHERE "
if DLPrinciple.selectedindex=0 then
strsql = strsql & "((tbl_principle.Principle_Name) like '%')"
else
if DLCountry.Selectedindex=0 then
strsql = strsql & "((tbl_country.country_Name) like '%')"
else
if DLKeyword.selectedindex=0 then
strsql = strsql & "((tbl_keyword.Keyword) like '%')"
else
strsql = strsql & "((tbl_principle.principle_Name) = '" & session("infoprinciple") & "')" + "((tbl_country.country_Name) = '" & session("infoland") & "')" + "((tbl_keyword.keyword) = '" & session("infokeyword") & "')"
end if
end if
end if

This is working perfectly with only one dropdownlist but I can not figure out how to make it work with several.

View 14 Replies

DataSource Controls :: Sql Query For Active Directory Users?

Apr 28, 2010

I ran the following in my active directory server, and it completed successfully.

[Code]....

Can I query from a different server in order to get the active directory users?When I try to run the following query, it says.'Could not find server 'ADSI' in sysservers. Execute sp_addlinkedserver to add the server to sysservers'.I need to be able to query active directory users from a different server as I'll have to do a table join at some point. Right now I'm just trying to get a basic query of users to return.

View 2 Replies

DataSource Controls :: Prevent Injection On Search Query From TextBox Control?

Jun 1, 2010

I've been reading up on SQL Injection and want to go back and implement some measures to prevent these kinds of potential attacks.For example, on our company intranet, we have an address book feature and a search function so the user is able to look a company or a person up from the database/The user will enter their query into a TextBox control and click the Submit button, calling the following function:addybookDS1.SelectCommand = "SELECT * FROM [addressbook] WHERE COMPANY LIKE '%" + search1 + "%' OR CONTACT LIKE '%" + search1 + "%' OR LASTNAME LIKE '%" + search1 + "%' OR EMAIL LIKE '%" + search1 + "%'"search1 is the TextBox controlI had previously implemented this measure:search1 = Replace(search1, "'", "''")But I want to know if there is more I can do here and how I can go about doing it.

View 16 Replies

DataSource Controls :: Query To Search "non - English Characters" With Column

Apr 29, 2010

I am using this code to find titles depending on user criteria:

[Code]....

The search is non-english charachters, and it has some problems. when you looks for "Marker" and in database you have this title: "Markers" it won't find it..... This search just not good enough and I am looking to replace it urgently....

View 6 Replies

Forms Data Controls :: How To Display Records After Going Through The Query Builder And Select "Test Query"

Nov 5, 2010

I have a SQL Data Source that displays records after going through the Query Builder and select "Test Query" yet when I save it, go back to the design mode and select View in Browser I get nothing but a blank screen.

View 3 Replies

DataSource Controls :: Word Search In Sql Server Without Full Text Search On Particular Column?

Jan 27, 2010

I want a word search i doing the search like this , but it is giving character wherever there is in the string,if i give two character like ok it is searching for a full string where ever Ok is there select * from table1 where textfield like '%word%' this query would match word but also wordabc how can i make it aware of delimitions

View 3 Replies

DataSource Controls :: Full Text Search -- How To Search Image

Mar 29, 2010

I am using SQL Server 2008 and Full Text search.

Its working fine for PDF / doc files but not working for .JPG files.

Basically i have some document scanned and stored it in varbinnary datatype in DB.

I am able to search for .doc /.xml /.pdf files .. but not able to search .jpg.

also i am not getting ".jgp" extension in result of following query

SELECT document_type, version, manufacturer
FROM sys.fulltext_document_types order by document_type

View 1 Replies

DataSource Controls :: Different Return For Added Users And For Rejected Users?

Jun 25, 2010

different return for added users and for rejected users?

[Code]....

View 4 Replies

DataSource Controls :: How To Parse Normal Search Text To Sql Server Full Text Search String

Feb 13, 2010

How i can make the normal search string to sql server full text search parse, because when we are user enyer search text "how to run windows schedule in C#", in database we have article to to this, but data not returning and sometime is say error in key word and etc.

View 1 Replies

DataSource Controls :: Search In A Database - Make A TEXTBOX And A Button "Search"?

Jan 18, 2010

now have tried to locate and find anything about how to make a

TEXTBOX and A Button "Search"

Problem is that I have made this "bellow" and when I then enter a "value" into texbox2 and hit enter on the button it wont show me the "emnenummer" that I have requested.

im not even sure this is the correct way to do a "search"

<asp:TextBox ID="TextBox2" runat="server"></asp:TextBox><asp:Button ID="Button1"
runat="server" Text="Button" />
<asp:SqlDataSource ID="SqlDataSource1" runat="server"[code]....

View 3 Replies

DataSource Controls :: SqlDataSource And Parameters Query / Trying To Accomplish Is Building Dynamic Query

Aug 22, 2010

1. I have a GridView on my page and it uses sqldatasource with parameterized query. What I want to do is, on page load (where nothing has been selected so no parameter supplied), I want it to query everything (something like SELECT * FROM [this_table]) but since my SelectCommand is something like

SELECT * FROM [this_table] WHERE [this_column] = @someParameters AND [that_column] = @someParameters.

Can I play around with default value to achieve something like that but how ? Now, when the page loads, it doesn't show anything (No Gridview).

2. On my page, I made something like (username, gender, address, and more) and one single search button. That means, no single control enable auto postback. What I am trying to accomplish is building dynamic query

(if username specifed -> SELECT * FROM [this_table] WHERE [username] LIKE @username).

If both username and gender are specified (SELECT * FROM [this_table] WHERE [username] LIKE @username AND [gender] = @gender) and you know the rest. How can I do this using GridView and SqlDataSource ? To my knowledge, I can only specify one SELECT statement in a sqldatasource.

View 11 Replies

DataSource Controls :: Update Query Not Working When Using Query Builder To Configure Table Adapter

Jan 15, 2010

[code]...

This query works perfectly on the query analyser.

But when configuring the Table adapter ,I try executing the query and i get 0 rows affected.

What could I be getting wrong in this case.

NB:Existing GalleryID has been supplied.

View 1 Replies

DataSource Controls :: Can't Find Query's / By Right Clicking On Database Created A Query In Server Explorer?

May 17, 2010

By right clicking on my database i created a query in server explorer. But where are this query stored can't find them back. I should aspect that their is a folder query's like there is a folder tables but this isn't the case.

View 10 Replies

Forms Data Controls :: Programmatically Simulating The ListView's ItemCommand Event?

Aug 20, 2010

I have a User Control that contains a ListView. In the user control's code is this event handler:

protected void listView1_ItemCommand(object source, ListViewCommandEventArgs e)
{
Button_ClickHandler(source, e);
}

What's occurring is that I'm explicitly firing an event so that the parent web page can monitor this and take appropriate actions. Thus when the user clicks on a different ListViewItem it triggers the population of associated data elsewhere on the web page.

This all works fine except for one thing: When I first load the control I'm pre-setting the first ListViewItem. Unfortunately, just setting the ListView's SelectedIndex = 0 doesn't fire the aforementioned event handler.

So I started investigating how to call "listView1_ItemCommand" but couldn't figure out how to instantiate the "e" parameter.

View 9 Replies

Web Forms :: How To Test SEO (Search Engine Optimization) On Single Page

Sep 1, 2010

I have more products in a single aspx page. So I want to upload this page in my remote server where my website is running. How can I test whether search engine can resolve my product on that page?

View 1 Replies

DataSource Controls :: How To Convert Sql Query Into Linq Query

Mar 10, 2010

select Groupid,GroupName,onorusername from palgroup where groupid in (select distinct Groupid

View 5 Replies

DataSource Controls :: Accessing FK From A Query Via Entity Query

Jan 21, 2010

I've got a query such as

Dim MediaQuery =
From m
In dB.DOWNLOADS _Where m.ID = id _Select

which returns a record from the database. One of the fields in the record is a FK to another table. I need to read this value to be able to set a dropdown based on the ID but I can't work out how to access it. For a standard record I can just do the following txtTitle.Text = MediaQuery.FirstOrDefault().TITLE

However with the foreign key it doesn't work like that. I've tried drpGroup.SelectedIndex = MediaQuery.FirstOrDefault().DOWNLOAD_GROUPS.ID where DOWNLOAD_GROUPS is the FK field but it returns Object reference not set to an instance of an object. If you're simply wanting to read some values from a single db record in the entitiy framework and one is a foreign key how should I go about getting the value?

View 2 Replies

DataSource Controls :: Test If Table Exists In Database Using SQL?

Jun 9, 2010

I need to somehow test if a table exists in a database. If it does not then I need to create the table. How can I test for existence of a table using SQL? It seems like some type of SQL logic is needed?

View 2 Replies

DataSource Controls :: Test For A Successful SQL 2005 Connection?

Jun 21, 2010

how to test to ensure a successful connection to SQL 2005 database (DB) before proceeding with getting user name from this sql2005 DB for example.

If connection failed don't let asp.net direct to my error page due to this in web.config.

<customErrors defaultRedirect="~/Error.aspx" mode="On">
</customErrors>

I would like to redirect user to check in as a guest when the sql2005 connection failed from the hoting company.

View 4 Replies

DataSource Controls :: Restore Master DB To Test Server?

Jun 16, 2010

restore a master database from production to test server.

The reason to do this because I need to test and evaluate some login in master database.

I tried to restore master database to test server, but I got some errors regarding about user databases are not exists in test server. I don't want to restore user databases, I only need master database for evaluate user login.

View 1 Replies

DataSource Controls :: Sproc Call To Test SQL Injection?

Feb 18, 2010

I know the following sproc is vulnerable to SQL injection:

[Code]....

I would like to write a call to this sproc that uses SQL injection to execute the additional command:

[Code]....

That way, I can demonstrate the vulnerability of the sproc to SQL injection and test any revised implementations of the sproc using the same test call.

Problem is, SQL injection is harder than I thought! I just can't seem to do it.

Can anyone provide me with text for the sproc call to execute the additional command?

View 1 Replies







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