Get id by max identifier
Is there anyhow to pass this as where statement? I mean, "where Max(version) group by name" I need to retrieve only the ids in it, something like this:select id where max(version)groupby name
View ArticleSimplest way to get max record
Hi, I think my title want clear enough. Let me try to explain. I have this simple table:CREATE TABLE dbo.mytable ( id [int] IDENTITY NOT NULL, name NVARCHAR(100) NOT NULL, version [int], PRIMARY KEY...
View ArticleCan I use SQL Server 2005 9.00.2047.00 for free?
Hello. I have received a computer which has installed Microsoft SQL Server 2005 - 9.00.2047.00. I wonder if this is a free version of SQL server, or should I uninstall it? I know that SQL Server 2005...
View ArticleDirty Reads
Hi AllI'm trying to do a Dirty Read ieUpdating a specific record in the Database Then trying to read the same record prior to the Update Transaction being Committed. Ive tried all the different...
View ArticleHandling large amount of data in SQL server 2008 >10Gb
Hello, We are working on crawling software which should be able to collect data from over 200 web sites. Our plan is to store XML files into the DB. These sites are quite active, having over 10k events...
View ArticleInstall/Configure SQL Server 2012 Server-Client
Hi experts,My requirement is like this:1 server machine and 4-5 client machine.we (Client machine) need to work on SSMS,SSIS and SSRS. The database should be on server machine.Client machine should...
View ArticleWindows ce 6.0, SQL server 2005, Cannot generate SSPI context
Hi all,I am trying to access sql server 2005 from my VB CF .net application on a Windows CE 6.0 device. Sql server is running on my PC (windows 7) which is in domain.sqlconn = New...
View ArticleRestrict start, stop & pause services to VIEW SERVER STATE
Hi All,SQL Server 2008R2I have assigned VIEW SERVER STATE to a login but I don't want this user to start, stop & pause services. Please suggest on how to achieve this.Regards,Shiva----Learners...
View ArticleBig trans log -- need insight
This morning we noticed a database trans log had grown to 30GB on the disk. I spoke to the developer(s) and he assured me that the app, "which has been developed over 10 years by multiple developers...
View ArticleDisplay horizontal rows vertically SQL Server 2008 R2
I ran the following query SELECT EMPID,ENAME,SALARY,DEPARTMENT from EMPLOYEEand the result was thisEMPID ENAME SALARY DEPARTMENT---------------------------------------------01 TEST1 2000 A/C02 TEST2...
View ArticlePatching Activities
Hi,How do we test on a test/dev SQL Server first before applying SP into production. Is there any seperate process or just installing SP is enough. And how do we confirm that all applications are...
View ArticleSQL Server 2008 Connecting from 2008R2 not from 2008
Hi,In Server machine SSMS not connecting server (SQL Server 2008) and error is" cannot generate sspi context. (.net sqlclient data provider) management studio" but from other machine(Client machine)...
View Articledbowner can't change database options?
Hi,I have created a login with public role in server level and dbowner in database level now my question is dbowner can't change database properties like recovery model, collation & autoclose...
View ArticleCan't download SQL server 2008 R2 Evaluation
I'm trying a development server build with SQL server 2008But the download link takes me round in circleshttp://www.microsoft.com/en-us/download/details.aspx?id=8158Is this the right place to download...
View ArticleTail log backup
In the scenario if Sql Service(not only database) is down can we take Tail Log backup
View ArticleT-Sql script to make all Databases to Read-only mode in sql server 2012
Hi All,I am trying to make few databases to Read-only .Once testing is done I need to switch back to read/wrire mode.I am looking forT-Sql script to make all Databases to Read-only mode in sql server...
View ArticleA network-related or instance-specific error occurred while establishing a...
Hello All,I installed the student version of SQL Server 2012 in my home PC. I tried connecting to the database engine. It does not work for some reason. I also configured the firewall....
View ArticleHow to change default location of a server
Hello Everyone,I'm just getting started with SQL server and initially when I set it up I set my local hard drive as the location of my local server.I recently installed a new 1TB hard drive. I want to...
View ArticleSetting up a MySQL Database with WebMatrix 2013
I recently set up a MySQL Database with WebMatrix 2013. It has been working fine, until I had to incorporate PHP. to use mysqli, you need the username and password. But I have no idea what they are,...
View Article