Transact SQL :: Send Changed Record Of Online Database To Application

Apr 23, 2015

I am programming an online game (such as chess) which two players can play together online.

Each one of the players should have installed the game application (developed by C#) on their computers.

When a player do some action, a record of a database (SQL Server 2012) which has been placed on the internet will be changed.

My need: when a record of this online database changes, whole the record send to both players' game application immediately.

View 3 Replies


ADVERTISEMENT

Transact SQL :: Send Changed Database Record To Computer

Apr 21, 2015

I have an online SQL Server database, and my web site registered clients can change the records of this database. My need: if a record of this database is changed, whole the changed record send to me and to the person who changed it immediately. I thought it could be possible through Transact-SQL,

View 2 Replies View Related

Concurrency Issue On A Single Database User For An Online Read/write Application

Aug 3, 2006

Hi to all DBAs,

I would like to ask if there will be a write and concurrency issue if i would create an online application with just one user connecting to the database, just like most open source php/mysql that can be downloaded

i.e
Setup 1. I will grant a single user that will connect to a database and will be set to a config.inc.php file and then create a table users (userid, username, password) and this table will be used for the application authentication and access control.

Setup 2. or is it much better to grant users that will connect to the database and have the table users for access control of the application?

to further illustrate my query:

Setup 1 would be:
###################Table: Users
user a@ipadd --> db1 --> userid mary --> myOnlineApp
user a@ipadd --> db1 --> userid john --> myOnlineApp
user a@ipadd --> db1 --> userid paul --> myOnlineApp


and Setup 2 would be:
#####################Table: Users
user mary@ipadd --> db1 --> userid mary --> myOnlineApp
user john@ipadd --> db1 --> userid john --> myOnlineApp
user paul@ipadd --> db1 --> userid paul --> myOnlineApp

will Setup 1 be enough if I will use SQL Server as database?

or Setup 2 is better user/database architecture?

This application will be online enrollment for a school with 16,000 students

very much appreciated for the feedbacks and suggestions

^_^x

View 3 Replies View Related

Online/Offline Application That Must Synchronize With SQL 2005

Mar 10, 2007

Hi !

I must developp a WPF Application with online and offline capabilities! First I think to use XML file on the local application and transfer these XML files to a webservice that will synchronize them with the SQL 2005 Server

BUT

I read about "Replication"... and I think it will be much simpler to implement!!!

Do you think it is a good idea to have a "local" SQL Express database and replicate it (when connection available is) with the principal database that will run a standard SQL 2005 version!

Do you have another suggestion to make such an application??

Thanks for help!!!

PlaTyPuS

PS: when the sql express solution a good idea is, does it give a simple solution to programm an automatic synchronization every hour?

View 3 Replies View Related

Using A Windows Application To Connect To An Online Access DB.

Aug 25, 2007

Hi all,

I'm working on a project where I have to create a password protected form for teachers to submit reports about students.
Originally I was going to use asp.net to create the form, but unfortunately the server I'm working with will not be granted asp functionality in the allotted timeframe.

To solve this issue I have another idea. So I will ask a few questions to help with research before I begin coding.

Is it possible to create a windows application that can connect to an access database hosted online? The windows app will need to be be able to update, insert, and select information from the database.

There is only going to be about 30-40 people using this windows application once or twice a week.

Thus I envision taking a password protected access database and dropping it onto a server.
The windows application will have the online location of the database embeded into the code. (connection string)
From there on out coding for the windows application should be the exact same as if the database was hosted locally on the computer, correct?

Also,
1. What is a good way to check and make sure the computer is connected to the internet before my application tries to access the database?

2. Are there any drastic security issues with this process that I should think about. The database will only be password proected, and the windows application will take a username/password from the user and check it against a table before they are able to submit info to the database.

I just need to be pointed in the right direction for this project.
Thanks.

View 1 Replies View Related

How To Find Who Has Changed The Record

Aug 14, 2001

Is there any method so that I can find that the particular user has changed the record in the particualr table..?

View 1 Replies View Related

#Deleted When A Record Is Changed

Feb 1, 2008

First of all, let me apoligize if this is a stupid question, but just a few days ago I decided to change my FE/BE database from Ms Access to SQL Server Express. Now I have a FE in ACC2002 and a BE in SQL SERVER (the two connected via ODBC). Anyway, this is my question:

When everything was in Access I had a form retreiving a series of records based on a filter - for understanding purpose let's say that a field must have been 'Not Null'. The operator then filled that field with data. With Access everything was static, and the operator could see all the records, the ones already changed and the ones not changed. With SQL now: everytime the operator fills in the field, the record changes to #Deleted. I assume that that is happening because the query - someway - is "alive" and is "filtering data alive"... or is updating records instantly. Just to make things more clear: is the record changed immediately so it is not considered part of the filtered data by the query, thus being change to #Deleted? What could I do to prevent this?

Thanks a lot for your help.

View 3 Replies View Related

Error - Record Has Been Changed By Another User

Mar 3, 2005

I apologize in advance if this has been posted but if you get the attached error "The record has been changed by another user...", we've discovered that this error can occur if you have a SQL Server Data Type of "Float" and also a "Text" Data Type in the same table. We discovered that it only happens on some records though and I am not sure why this is so. The solution is apparently to add a TimeStamp Data Type to the SQL Server table which does seem to fix the problem. If anyone has any insight on any other solutions (we cannot change the Data Types) or the reasoning behind this error, I would greatly appreciate the feedback.

View 4 Replies View Related

Find Record Where 1 Field Value Has Changed

Apr 2, 2015

I need to find all items in an inventory table where a field has been unticked in the last 24 hours (there is no audit trail), as well as the contract number of the contract it has been added to (it will not have existed in that table before).

These are the two table querys in their basic form:

select item (nvarchar(20)), inactive (bit) from inventory

select item (nvarchar(20) , contract (nvarchar(20)) , original_start_rent (datetime) from deltickitem

I would like to see just the item number and the contract number it has been added to.

View 11 Replies View Related

This Record Has Been Changed By Another User Since You Started Editing It....

Jul 9, 2002

I am getting the following error while trying to update a SQL Server 7.0 table thru' MS Access('97 version). It was working fine until now. This problem started happening after re-linking the table to MS Access as new columns have been added on the SQL Server table. We tried re-starting the MS Access,re-linking the table again,giving all the permissions to the user on the table etc. Also, no other user is accessing the table at the same time..Any help?

Error message in MS Access:

This record has been changed by another user since you started editing it. If you save the record, you will overwrite the changes the other user made.

Copying the changes to the clipboard will let you look at the values the other user entered, and then paste your changes back in if you decide to make changes.

thanks,
Mike.

View 1 Replies View Related

Odbc Error - Record Has Been Changed By Another User

Oct 9, 2001

The following error is recieved when updating a record using access 97 and odbc driver to an oracle database.

This record has been changed by another user since you started editing it. If you save the record, you will overwrite the changes the other user made.

Any help is greatly appriciated.
Thanks in Advance

View 1 Replies View Related

Please Send Me The Demo Application

Nov 29, 2007

hello

Plesase help me by sending any of demo application and course material for WinCE visaual studio 2005 for development of smart device applications how to connect to atand alone database and for connectivity for Http to mobile .

View 1 Replies View Related

Send Message To Running .Net [Asp.Net With C#] Application From Sql Server

Apr 25, 2008

Hi Guys,
I have already spent so many days in trying to find a solution to this problem but ..all in vain....
so please help me.

I have to send message to my running .Net [Asp.Net with C#] application from sql server. How can i do it?
We should not use notification services.
Please give me some examples / links.
Thanks in advance!


View 6 Replies View Related

Replication :: Syncing Of Database From Local Host Database To Online Database Automatically After Some Interval

Oct 14, 2015

I have database on localhost and i want to show this data on my website. I want to create a database online and want to sync with Local Host. Can it be possible syncing data automatically after some interval?

View 6 Replies View Related

Recovery :: Server Cluster Resource Fails To Come Online And Pending Online State

Nov 3, 2015

We have SQL cluster installed on top of windows cluster on VM environment. Node1 and Node2 under Windows Failover Cluster. SQL instance is currently on node2 the instance is up and running, but SQL Cluster service remains online pending and it restarts the instance on every 5 minutes.

SQL Browser service are running successfully.TCP/IP ports are enabled and configured.If we start the SQL server agent it is on for seconds and stopped immediately  .Cluster Service is attempt to connect to the SQL service every few minutes (setting in SQL cluster resource) for the IsAlive check, if this fails then the SQL resource is restarted even if the instance was online. Hope this is what happening exactly.

[sqsrvres] ODBC Error: [08001] [Microsoft][SQL Server Native Client 11.0]SQL Server Network Interfaces: Error Locating Server/Instance Specified [xFFFFFFFF].  (268435455)
00001024.00053314::2015/10/30-19:57:50.772 ERR   [RES] SQL Server <SQL Server (SIMAH_COMMDB)>: [sqsrvres] ODBC Error: [HYT00] [Microsoft][SQL Server Native Client 11.0]Login timeout expired (0)
00001024.00053314::2015/10/30-19:57:50.772 ERR   [RES] SQL Server <SQL Server (SIMAH_COMMDB)>: [sqsrvres] ODBC Error: [08001] [Microsoft][SQL Server

Native Client 11.0]A network-related or instance-specific error has occurred while establishing a connection to SQL Server. Server is not found or not accessible. Check if instance name is correct and if SQL Server is configured to allow remote connections. For more information see SQL Server Books

Online. (268435455)
00001024.00053314::2015/10/30-19:57:50.772 INFO  [RES] SQL Server <SQL Server (SIMAH_COMMDB)>: [sqsrvres] Could not connect to SQL Server (rc -1

View 5 Replies View Related

Insert A Record Into 2 Tables + Send Email

Sep 4, 2007

hi..
I'm facing 2 problems so please I need help
 
the application that i'm working on is as follow:
 the student fills his information (his name, his ID, his email, his projects.......), when he submits the form, he gets an email to inform him that his form is received.
 
1. this code is to send an email to a fixed email (email@gmail), it is working correctly, but what should i do to fetch the DB to get that user email?Protected Sub btnSendmail(ByVal sender As Object, ByVal e As System.EventArgs)

Dim objMM As New MailMessage
objMM.To.Add("email@gmail")
objMM.From = New MailAddress("sender@gmail")
objMM.Subject = "a new applicant is registered"
objMM.IsBodyHtml = True
objMM.Body = "<html><body><Table><tr><td></td></tr><tr><td>testing</td></tr></Table></body></html>"

Dim smtp As New SmtpClient("the IP address of the server")
objMM.Priority = MailPriority.Normal
smtp.Send(objMM)

End Sub
 
 
2. when he fills the form, the information has to be saved into 2 tables..let's say he entered his ID + projects that he is assigned into..in the DB there are 2 tables: student, projects..the ID is a primary key in the 1st table and a foreign key in the 2nd one
 what shoul i do whith the insert command to be able to do that?

View 5 Replies View Related

Transact SQL :: Send File Via FTP

May 5, 2015

I want to send a file from <g class="gr_ gr_25 gr-alert gr_spell ContextualSpelling ins-del multiReplace" data-gr-id="25" id="25">sql</g> to different server via FTP:

I found following script on internet: [URL] ...

When I run this. I get following error:

Invalid command.
Invalid command.
Not connected.
open Ftp.server.com 
Username
Password
ls C:/Users/Desktop/test/ e: este: est est.txt 
quit 
NULL

View 2 Replies View Related

Updating Online SQL 2005 Database From Local Database

Jan 30, 2007

I have my first small SQl Server 2005 database developed on my localserver and I have also its equivalent as an online database.I wish to update the local database (using and asp.net interface) andthen to upload the data (at least the amended data, but given thesmall size all data should be no trouble) to the online database.I think replication is the straight answer but I have no experience ofthis and I am wondering what else I might use which might be lesscomplicated. One solution is DTS (using SQL 2000 terms) but i am notsure if I can set this up (1) to overwrite existing tables and (2) notto seemingly remove identity attributes from fields set as identities.I know there are other possibilities but I would be glad of advice asto the likely best method for a small database updated perhaps onceweekly or at less frequent intervals,Best wishes, John Morgan

View 3 Replies View Related

Transact SQL :: Send Mail If Any Records Returned

Nov 4, 2015

I would like to use sp_send_dbmail, but I only want to send mail if there are any records returned.

I have found some solutions, but you must always first check if there is any record and later you can call "sp_send_dbmail" and within you must again query database for results.

What I want to do is to query database just once, because I dont want to use server performance two times. Query is bit complicated.

View 11 Replies View Related

Transact SQL :: Send Email Only If Query Contains Results

Aug 8, 2015

I’m running a data integrity procedure from an agent job that is a scheduled weekly maintenance task which emails the results of my query, and is working properly.

I would however like this to only receive the email it the query contains results, and not send it no records are found to prompt me to take action.
 
My code less the personal information
  
EXEC msdb.dbo.sp_send_dbmail     
@profile_name
= '',
       @recipients
= '',
       @subject
= 'Database Integrity - Import Errors',

[Code] ....

View 5 Replies View Related

Transact SQL :: Send Email If Agent Job Fails

Aug 8, 2015

Is it possible for to send an email if a job fails as an alert? Can the email tell me which step failed?

I know how the code to send an email, but unsure how to trigger this for an agent job failure.

View 8 Replies View Related

T-SQL (SS2K8) :: Creating Database Where Each Record Is Required To Have Twin Record In Database

May 12, 2014

,I am creating a database where each record is required to have a twin record in the database.These is a type a value and a type b value and both must be present for the record to be valid.

Customer_ID, Order_Type, Product_Code
54, a, 00345
54, b, 00356

Is this something that would have to be done programmatically, or is it possible to create a constraint of some sort to ensure this?

View 8 Replies View Related

Transact SQL :: Validate Each Field Of Every Row In Table Then Send Email

Aug 5, 2015

I have some records (approx 100K - 500K) in my table (Name, DOB, Zip, Phone). I want to validate each record and every field as given below.

Name - Should not have numerics
DOB - Should be in yyyy-mm-dd format, should be < 1995
Zip - Should be 5 char zip, allowed 3 or 4 char zip for some States
Phone - Should have 10 numeric digits, should be in xxxx-xxxx-xx format.

After validating these rules, If the record is valid then send email saying valid record, if invalid then send email with validation failure details like which column failed which validation rule suppose DOB might not be in specified format or it might be > 2000 all these details.

How to validate all the records in bulk without any loop or cursor.

View 10 Replies View Related

Cache Database Structure (How To Detect If Database-design Has Changed..)

Feb 24, 2006

Hello everyone,I have a webcontrol that uses database-structures alot, it uses the system tables in SQL to read column information from tables. To ease the load of the SQL server I have a property that stores this information in a cache and everything works fine.I am doing some research to find if there are anyway to get information from the SQL server that the structure from a table has changed.I want to know if a column or table has changed any values, like datatype, name, properties, etc.Any suggestions out there ?!

View 3 Replies View Related

Transact SQL :: Send Email To Multiple Users Based On A Column

May 15, 2015

I have a query running and returning 3 columns, user name, e-mail and device name

SELECT DISTINCT v_R_User.Full_User_Name0 AS 'User full Name', v_R_User.Mail0 AS 'E-Mail', _RES_COLL_DEV00144.Name
FROM         v_R_System INNER JOIN
                      v_R_User ON v_R_System.User_Name0 = v_R_User.User_Name0 INNER JOIN
                      _RES_COLL_DEV00144 ON v_R_User.User_Name0 = _RES_COLL_DEV00144.UserName INNER JOIN
                      v_GS_COMPUTER_SYSTEM ON v_R_System.ResourceID = v_GS_COMPUTER_SYSTEM.ResourceID
 Where v_R_User.Mail0 <> ''
ORDER BY 'User Full Name'

From here I would like to generate an e-mail to each user (like mail merge) to each user in the table an include their machine name. I can do it with PS, but rather have it run directly from SQL. Is it possible?

View 9 Replies View Related

Login To Online Sql Database

Apr 11, 2005

Hi all; I am trying to login to an online sql database from enterprise manager;
First of all is this possible and second of all, how do I go about doing it from enterprise manager (by the way I am using MS SQL 2000)
THanks for any assistance

View 1 Replies View Related

SQL Database Diagrams Online?

May 10, 2001

Hi,

I hope i'm in the right forum. Is there a way to create a DB diagram schema via ASP/HTML and publish it on-line - keeping it up-to-date?
I want to at least output a diagram schema to HTML format? Any ideas. TIA!

View 2 Replies View Related

Locating Database Online

Apr 20, 2006

I've just started with a company that had a web developer in to set up their site. She set it up with Coldfusion and MS SQL Server, uploaded the whole thing to their provider, then disappeared. Then the whole thing got dumped in my lap, and I'm pretty new to both SQL Server and Coldfusion.

My first question is, how can I access the SQL Server database online? It's somewhere on the web host's site, and I have the name of it and the password, but I have no clue how I'm supposed to get a look at the thing. Is there a file I should be able to find? Can anyone provide a clue?

Thanks!
April

View 5 Replies View Related

Offline|Online Database

Dec 21, 2005

Hi,

Is there any method to get an historical log where appears the database status (Online|offline) ?

Regards.

View 1 Replies View Related

Bring Database Online

Jul 10, 2007

Hi,

One of our database size 90 Gb was backed up and restored on a standyby server with NoRecovery option .A Stored Procedure was written to do production Database transaction log Backup every 15 min and restore the Tlog File on Standby server.



Once the last transaction log file is restored on standby server the tlog file is deleted.



Now due to some reason the restore tlog job failed but the tlog file got deleted.

Now till we will not restore the last database backup we will not be able to start the restore tlog job.

Now the database is in restoring mode.Is there any methord to get that database online without any transactionlog.



Regards

Sufian











View 4 Replies View Related

Transact SQL :: Dynamically Alter Schema Of Stage Table When Source Table Structure Changed?

Oct 25, 2015

we have a table in our ERP database and we copy data from this table into another "stage" table on a nightly basis. is there a way to dynamically alter the schema of the stage table when the source table's structure is changed? in other words, if a new column is added to the source table, i would like to add the column to the stage table during the nightly refresh.

View 4 Replies View Related

Transact SQL :: Create Job Which Automatically Convert Output Into Excel And Send Mail

Oct 31, 2015

I have an existing MS SQL database (2008 R2). I have a very simple SQL script. I need to automate this script means wants to create a job which runs on a Friday basis and save the output results of the query as a excel file and then automatically sends the mail to everyone.

View 9 Replies View Related

Online Database Design Question

Jan 18, 2008

If I want to let people come to a wesite and login and let them look at information pages and I also want the database to be used by staff of the organization.
So I would have people logging in over the Internet as well as logging in local to use the same database, but the online people would be restrickted to only some of the pages.
What would the basic database design look like.

View 5 Replies View Related







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