Welcome to dbForumz.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

SQL CODE

 
   Database Forums (Home) -> Client RSS
Next:  Syntax to access database on another server  
Author Message
Chris

External


Since: Feb 19, 2008
Posts: 1



(Msg. 1) Posted: Tue Feb 26, 2008 3:01 pm
Post subject: SQL CODE
Archived from groups: microsoft>public>sqlserver>clients (more info?)

Hi

I am kind of new at coding, i dont know if any of you guys can help. I got a
webpage with an access table and right now everytime someone visits the page
it adds the IP of the person that is visiting the page and the date but
right now i got to many of the same ips how can i stop it from adding IPs
that are already in the table. Im using asp.net platform. thanks

 >> Stay informed about: SQL CODE 
Back to top
Login to vote
Mike C#

External


Since: Jul 27, 2006
Posts: 212



(Msg. 2) Posted: Fri Mar 07, 2008 9:35 pm
Post subject: Re: SQL CODE [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Chris" wrote in message

> Hi
>
> I am kind of new at coding, i dont know if any of you guys can help. I got
> a webpage with an access table and right now everytime someone visits the
> page it adds the IP of the person that is visiting the page and the date
> but right now i got to many of the same ips how can i stop it from adding
> IPs that are already in the table. Im using asp.net platform. thanks

My recommendation would be to normalize your tables first.

 >> Stay informed about: SQL CODE 
Back to top
Login to vote
Ekrem_Önsoy

External


Since: Aug 29, 2007
Posts: 192



(Msg. 3) Posted: Fri Mar 07, 2008 11:00 pm
Post subject: Re: SQL CODE [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

You did not tell us the structure of your table that keeps track of the
visitors, however you could try making the IP column unique and use TRY and
CATCH block in your asp.net code to prevent errors that will occur when the
same IP is being tried to be added to the table.

Or you could write an SP which checks if there is already an existing IP
record before inserting it into the table. And you'd insert or ignore the IP
according to the result of that SP' s execution.

--
Ekrem Önsoy



"Chris" wrote in message

> Hi
>
> I am kind of new at coding, i dont know if any of you guys can help. I got
> a webpage with an access table and right now everytime someone visits the
> page it adds the IP of the person that is visiting the page and the date
> but right now i got to many of the same ips how can i stop it from adding
> IPs that are already in the table. Im using asp.net platform. thanks
>
 >> Stay informed about: SQL CODE 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Old code not able to connect to unicode instance - Hi, I have a program written in C/C++ compiled with MS Visual Studio 6.0 that fails to connect to a french SQL Server instance (probably a 2005 instance) with "SQL Server does not exist or access denied". I can connect to the instance with ...

problem deploying access project - I have given a copy of my access project to user. This was developed in Access 2003 in Access 2000 file format. User PC is running Access 2000 ( 904402 SR-1). The problem seems to be that Functions are not visible to thic client so queries and forms..

Why the table is locked ? - Dear all, I have Access Font End to SQL server Back end. In an Access form, I use combobox, based on a stored procedure, which based on 1 table (SELECT LocationID, LocationDescription FROM Locations). When I open the form and check in the SQL server....

SQL problem pls help - I have installed Visual Studio 2005 beta 2 that include the SQL Express. Then I installed the SQLClient to my pc too. And when I click on the sql group An error message pops up "A connection could not be established to Computername\sqlexpress. ....

enterprise manager error - Hi, When trying to modify or add a table using enterprise manager I got this message error: Enterprise manager: not enough storage is available to complete this operation. I have a lot off space available. I don't have a memory leake. My server is..
   Database Forums (Home) -> Client All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]