Linked server query to retrieve data from two different sql instances
HI Team,I know how to use Linked server query to retrieve data from two different sql on premise instances.I would like to try the same on sql server instances hosted on azure.When I connect to sql...
View ArticleEvaluation period has expired SQL 2014
Today we have started getting this error when we try to open SQL Server 2014 Management Studio.The install was done using the correct media with the appropriate product key.I have:Gone through the...
View ArticleWhat is the need of OUTPUT parameter in Stored Procedure?
Hi,I am not clear about the use of OUTPUT parameter in stored procedure as we can return any value using select query.Can anyone clarify by simple example.Thanks and Regards,Anujit KarmakarAnujit...
View Articlejava code to retrive data from sql server stored procedure which returns...
Hi Team,Can any one help me on java code to retrieve the data returned by SQL server stored procedure which is of CURSOR VARYIGN OUTPUT type and display the details on console.Thanks for your valuable...
View ArticleScript to find out login failed for which database.
Hi Experts,I know how to find out login failed users randomly, but I need to find out to which database these failed logins were associated with?Can you please let me know is there any script with...
View ArticleHow to install SQL Server 2008 five parts .
Hi experts , I have downloaded SQL Server 2008 R2 in 5 parts and now i wanna install it . How can i install SQL although of it's multiple parts ? note : i wanna install it on windows server 2008...
View ArticleTrying to download SQL Server Express, Download link redirects me to start of...
Hi. I can't seem to complete the registration process for downloading SQL Server Express. Is anyone else having this issue? I've used multiple browsers and multiple accounts, but they all run into the...
View ArticleHaving trouble
I have the below code and want to run a sub query but keep getting a syntax error:Msg 156, Level 15, State 1, Line 11Incorrect syntax near the keyword 'FROM'. the field...
View ArticleHow many databases we can add in aways on replica`
Hi All,is there any limition in AlwayOn to add database in secondary replica?Regards,Pawan SinghThanks
View ArticleHow do I merge two rows only if there is the TagWidgetIds are same but the...
I have this stored procedure which generates the following output.The query which generates the output from the stored procedure is as follows:SELECT tat.[agent-id], tat.[agent-guid], tat.[agent-name]...
View ArticleHow to convert a datetime field to a date field in SQL
Hi,I embedded a SQL query in excel that gets some datetime fields like "TASK_FINISH_DATE" .How can I convert a datetime field to a date field in SQL in a way that excel will recognize it as a date type...
View ArticleFind out time my instance went down
Is there anyway that I can find out the time an instance went offline? Does the last entry in the error logs show this? One on my instances went down during the night and I need to know the time this...
View ArticleSolid way to move SQL mdf/ldf files to new drives.
Hi everyone,May it is seems is a stupid questions?What is the best way to move huge databases from drive 'A' to drive 'B'?I'm looking for "the best".Thank you.
View ArticleTrying to Create a Permanent Association Between Two Tables
I've two tables in SQL Server 2014, in database named cncI wish to create a permanent association between the two tables, with referential integrity. I cannot find, in all the books I've gone through,...
View ArticleNeed to change multiple row of query into single row in sql server
Dear Experts, But i need help in SQL SERVER Badly.please help Here is my SQL SEVER QUERY. Need to change vertical execution of query into horizontal in sql server SELECT TL.TERMINAL_ID,T.IP_ADDRESS,...
View ArticleAppend vertical row result into Horizontal
Dear Experts, I want to append vertical row result into horizontalCREATE TABLE #mable(mid INT, token nvarchar(16))INSERT INTO #mable VALUES (0, 'foo') INSERT INTO #mable...
View ArticleError in connecting to SQL Database
Hi everyone,In the past, I've remoted into our domain controller which houses our SQL database. From there I've been using the Microsoft SQL Database manager to run queries. However, I would prefer to...
View ArticleRemote Connection Rights?
Hello all, I'm running SQL Server 2008 R2. I'm trying to connect to a database I created using Access from my PC. I get the error:Connection failed:SQLState: '08001'SQL Server Error: 17SQL Server does...
View ArticleSQL Server design window not showing
I installed Microsoft SQL Server Express 2014 and I connected it to my Microsoft Azure database. When I try to create new databases or tables in the Management Studio, I only get a query window with a...
View Article