Sql Profiler & Trace
I've run a SQL Trace using the TSQL_SPs template, grouped by Object NameSo I get a nice list of the Stored Procedures run in a time period (that I set)Is there a way of extracting this list, or the...
View ArticleCompatible JDBC Driver
Hello all,which JDBC Driver is compatible with "Microsoft SQL Server 2008 R2 (SP1) Enterprise and Standard Editions (10.50.2550.0 or higher within version 10.50.x.x)".Please respond to this question as...
View Articlehow to know sql server version and edition information
Hello,We can see the version information in help menu item in the SSMS.How can i find the edition that was installed in my system?Thanks in advance.Thanks and Regards, Readers please vote for my posts...
View ArticleMinimum permissions needed to use ALTER ROLE on predefined database roles
I'm writing a script that allows my application to create Logins/Users that have permissions to create users them selves. I've read in the MS SQL 2012 documentation that if the user is a member of the...
View ArticleAutomatically Disable Logins on access expiry date
Hi All,As SQL Server don't have native way to disable logins on access expiry date. I am planning to create a table withthree columns 1. LoginName2.RolesGranted3.ExpiryDateNow I will schedule a job...
View ArticleCreating a stored procedure that gets the current price when adding order...
Trying to learn more about stored procedures.I would like to make a stored procedure in Northwind that adds a new order detail record without passing the price. It's only parameters should be the...
View ArticleStored Procedure not working
hi,I have written the following stored procedure:set ANSI_NULLS ON set QUOTED_IDENTIFIER ON go ALTER procedure [dbo].[spUpdateIndividualUser] ( @Username varchar (50), @Password varchar (50), @Email...
View ArticleSql 2008 - Index was outside of bounds of the array
I have found related posts to this issue, but none have helped to remedy my issue. - Installed SQLManagementStudio_x64ENU- Connect to hosted database- I can create and alter tables and do everything...
View ArticleLS Alert Logshipping Monitor jobs fails in Node1 cluster
HI All,We have two nodes in a cluster:Recently we have failover groups and its resources from node1 to node2 thereafter LS alert job is failing due to msdb tables are not being updated even afterbackup...
View ArticleJoin rows from 2 tables with non-matching numeric intervals
Hi,Could you please help me with the following: I have 2 tables - [Coal_Samples] and [Coal Type] Which I have pasted below. I want to create a single result set that matches as closley as possible...
View ArticleIs it possible to connect remote SQL2005DB using SQL2012 management studio...
1Is it possible to connect remote SQL2005DB using SQL2012 management studio express and windows integrated authentication ?2Is it possible to add login by sqlcmd command because SQL2005 management...
View ArticleInsert records even if value is NULL in sql 2008
Hi all,I want to insert a values into a table, it should select even if the value is NULL and insert all the records. Below is my code, it should accept NUll values even with the other values. Please...
View ArticleJoining 3 tables
Hi Guys,I trying to join 3 tables to one main table but the result is always multiplying the number of record between each tables.Heres the scenario:Table 1idName1n1Table 2idName1t2 name11t2 name 21t2...
View Articlequery error
hi i want create many table with one sqlcommand------------------------------------------------------using System; using System.Collections.Generic; using System.Linq; using System.Web; using...
View ArticleSelect distinct top 3 from table
in my sql table named staff there is a field named PL. sampl data is as underPLKMKTKMHGTGHGi tried select distinct top 1 PL from staffi got top 1 i want top 1then top 2 onethen top 3 one then top 4 one...
View ArticleHow TOP query will work in SQL Server?
Hi Experts, While running TOP command, what internally happen in SQL Server Engine ? How its fetching TOP 10 rows from Table.ThanksSelva
View ArticleI Just Purchased MS SQL Serve Develpers Edition (Does it Include MS Visual...
I have just purchased Microsoft SQL Server 2012 Developer's Editionfrom Amazon.com I want to learn how to use the MS Report Server and checking to see ifVisual Studio is included in the installation....
View ArticleMultiple SQL server Instance on single Server box
Hi,I want to install 6 instance of SQL server 2012 Entperprise or Datacenter on a single Physical or Virtual Machine.Is this feasible ? if yes than what would be recommended configuration for such PM...
View Article