I'm using C# and asp.net with SQL Sever 2012 and want to log an environmental signals on a database (like temperature or humidity). I want to retrieve logged information to make reports and create charts. In your opinion what's the best method to do the job?
Thanks in advance
Go to this example hope it shall be helpful
http://stevenjohnston.co.uk/2012/12/12/net-gadgeteer-temperature-logger-example/
Related
Problem:
I need to restore only one table from a backup. How should I do it in a course of action?
Thanks for you help!
There are 3rd party tools that can assist in what you are asking for:
APEX SQL Recover
Idera SQL Virtual DB
They may require registration but offer a fully functional trial to get the job done.
Thanks in advance for any help.
We have a particular database on a SQL Server 2012 box along with about 20 other databases.
What I require is a method/script/audit (open minded about the solution) that will simply track anyone who logs in (successfully / unsuccessful) to this one particular database on the server (the single database is the key as the end user does not want information on any of the other databases that sit on the server), it also has to log time the attempt was made and it must track the logins via SQL Server or the application itself that is attached to the database.
Once we have this information we need to simply store that somehow. I say somehow as the storing part depends on the solutions recommended to me, so I’m open minded about this too.
Any help would be great as I'm scratching my head on this one.
There's actually a tool built into SQL Management Studio for this.
Please see the attached link for Configure Login Auditing
Once it has been setup, all events will be recorded in the error log.
I have looked at a few stackoverflow forum posts but nothing fits (or atleast I dont think so) what I need help with.
I'm looking for general advise, my company has 'tasked' me to look at moving some data from tables stored in our parent companies databases into a database of our own that has all the information we need in one place.
For instance if we want information that related to one thing, we may have to pull data from several different databases. I think I can get my head around the moving of the data and create a sql query to do it, however we're currently using SQL express as our SQL db (the company is more than happy to buy/create a SQL server but as far as we can see SQL express does what we need it too (feel free to correct me)).
I need to look at scheduling the data move for every hour or few hours to keep the data 'up to date' for when reports are generated using the data.
I have looked at a few programs but the as the queries and the database is on a server 2008 r2 system some of the 'programs' don't like it as they were last updated pre 2010 etc. I have also installed SQL management suite 2012 due to SQL server agent but I cant even get that worked (Service is enabled and I have restarted the DB just still nothing within suite).
I'm not looking (however happy to take the help) for a 'Do this and that and that' type reply but more than happy to accept that amount of help but if you guys / gals can point me in the right direction.
Summary:
-Combining data already on databases from our parent company into a table / DB of our own making
-Currently using SQL Express but willing to upgrade to something else that does the job
-Schedule the data moves for every X hours (Windows scheduling?)
-automating the entire thing so don't have to manually do the moves.
Help on any of the points above would be greatly appreciated and I would 'love you long time' for the help.
JB
There are a bunch of limitations for SQL Express. One of them is that SQL Agent is not supported. SSIS like SQL Agent is not supported.
http://msdn.microsoft.com/en-us/library/cc645993.aspx
Do not fret, you can always schedule a job with Windows Scheduler.
http://windows.microsoft.com/en-US/windows/schedule-task#1TC=windows-7
As for moving the data, it is up to you to select a solution.
1 - Write a PowerShell application to perform the Extract, Translate, and Load (ETL).
http://technet.microsoft.com/en-us/library/cc281945(v=sql.105).aspx
2 - Use the SQLCMD to perform logic like calling stored procedures.
http://technet.microsoft.com/en-us/library/ms162773.aspx
3 - Use BCP to dump and load data.
http://craftydba.com/?p=1245
http://craftydba.com/?p=1255
http://craftydba.com/?p=1584
http://craftydba.com/?p=1690
It is funny how youngsters think they need to spend a-lot of $ to create a solution for a business.
However, Microsoft does supply you with a-lot of free tools.
You just have to put them together for a solution.
PS: I remember about 10 years ago I created a custom ETL solution using VBSCRIPT. Unlike power shell, it is installed on old and new programs.
Good luck!
You can create a console application which executes that particular stored procedure which handles your logic. ( http://dotnet.dzone.com/articles/basics-stored-procedures-net )
Of course using SSIS is much easier but it's not available in SQL Server Express Edition.
I think you should have a look at Integartion Services, which is not available for Express Edition. Have a look at this article to get started with SSIS.
I have a SQL Server 2008 database in 3NF.
I must check if the db can support many concurent users.
Which is the best method ?
Is there any free tool to do this ?
Thank you very much.
SQLQueryStress - http://www.datamanipulation.net/SQLQueryStress/documentation/documentation.asp
and
SQLStress - http://www.sqlstress.com/Overview.aspx
Both look like a good fit for what you want to do.
The database design and the queries you run against it are vital; no generic answer can be reliable.
I recommend you start with the MS SQL community's benchmark tools.
Since uses are hopefully not accessing the database directly you must have some front end, that is where I would perform my load test. You can use TFS to do load tests as well as Selenium.
Assuming that you have created some kind of web front end that queries your database, then the excellent open source tool Sahi would really help you out. The test toolkit allows you to simulate multiple users using your website - and therefore your database.
I have found this project on Codeplex.
http://www.codeplex.com/ProjNET
I need to integrate this code with Sql Server 2008, and found a similar project on the Web
http://sqlspatialtools.codeplex.com/
The second one can be bound to Sql Server. What do i need to do, to "bind" the first one, the same way as the first?
EDIT using code like create assembly and functions in Sql Server, Sql Spatial tools is bound to SQL.
I'm not sure i made myself clear, but if i take the same approach, all i need is to register the first one, the same way as the second?
http://sqlspatialtools.codeplex.com/sourcecontrol/changeset/view/23749?projectName=sqlspatialtools#255008 (check SQL Scripts->register.sql)
Any light on this matter?
Thank you everyone.
Studying the .sql file on Sql Spatial tools em and another friend was able to find the correct pathway that we needed.
We builded a function on ProjNet API, and then in Sql Server 2008 we did this:
create assembly ProjNET 'pathToFile'
go
create function ourFunction(signature) returns geography
as external projnet.ourNamespace.Function
Thanks for the attention everyone.
G.