Execute a procedure with a list of array in sql server 2008
HI all,I have a procedure which has a list of values passed as an array . How can i execute my procedure with array list? how to implement this?Please help me.Thanks in advanceDeepa
View ArticleHow to get a notification if a job is running for too long
Hi everyone,I'm using a SQL Server 2k5. Recently I got an occasional job issue, that is, sometimes(usually once in a week), the job was stuck in running status and didn't finish. So I wonder if there...
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 ArticleInsert row to table with computed primary key
I have a table with a computed primary key where I'm trying to insert a row but I'm getting this error:Msg 515, Level 16, State 2, Line 1Cannot insert the value NULL into column 'PriKey', table...
View ArticleSql 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 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 Articledelete row from stored Procedure
Hi,In the below query have insert and update commnds .If i want delete existing row i dont know how to update the table..[SP_AEmpTimeSheet] -- Add the parameters for the stored procedure here...
View ArticleCan not install SQL 2008 r2 on windows 2012 r2, Attempted to perform an...
I configure all se SQL, and star the installation, but, when the installation runs "SqlBrowserConfingAction_install_ConfigNonRC_Cpu32"display a message with the error "Attempted to perform an...
View ArticleSQL Server 2008 Installation Error
I found this error when i am try to Install SQL Server 2008 on Windows 8TITLE: Microsoft SQL Server 2008 Setup ------------------------------ The following error has occurred: Error getting file...
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 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 Article