Hi, I have to allow a business user to run a specific SQL Agent job. I wanted the user to run a procedure from msdb to strat the job instead of having explicit rights to run from SQL Server Agent Jobs.For this purpose,I have created a role in the msdb database using the following script :USE [msdb]GOCREATE USER [JobA] FOR LOGIN [DIR\SMini] WITH DEFAULT_SCHEMA=[dbo]GO-Then I created the procedure which she can run to start the job and granted execute rights to the role to execute this procedure.-- Create SQL Server Agent job start stored procedure with input parameterUSE msdbGOALTER PROC dbo.usp_StartJob @MyJobName sysname = 'My Job Name'AS DECLARE @ReturnCode tinyint -- 0 (success) or 1 (failure) EXEC @ReturnCode=msdb.dbo.sp_start_job @job_name=@MyJobName; RETURN (@ReturnCode)GOAlso, to her login, I have granted SQLAgentUSerRole for msdb database.Still she receives an error saying :Msg 14262, Level 16, State 1, Procedure sp_verify_job_identifiers, Line 67The specified @job_name ('My Job Name') does not exist. Please help.Thanks,PSB
↧
SQL 2012 Grant execute rights to user on specific SQL Agent Job
↧
sample databases for SQL server 2014
We are using SQL server 2014 standard edition.Person in one department request to install training database adventureWorks and Northwind on their server for training purpose.I know adventure works are available , but cannot find northwind for SQl 2014.Is there a reason for that?If I install these databases, what things I need pay attention to?Thanks,
↧
↧
C-h-e-a-p K-i-t-c-h-e-n-s Hull
Cheap Kitchens Hull . Go to www.cheapkitchens.uk.com
↧
CHECKDB - Cannot continue the execution because the session is in the kill state.
we started getting this last weekend on a large-ish AlwaysOn database (800GB).it failed on all 3 replicas last weekend. next run it succeeds on two and fails on one (a secondary). using Ola's scripts, full checkdb. any idea what the issue is? i don't find anything useful online. thanks!Date and time: 2016-08-15 20:00:09Command: DBCC CHECKDB ([XXX]) WITH NO_INFOMSGS, ALL_ERRORMSGS, PHYSICAL_ONLYHResult 0x254, Level 21, State 1Cannot continue the execution because the session is in the kill state.
↧
Partition and Index Alignment
Morning All,Regarding a partitioned table -- does it ever make sense to have the index partitioned on something else, or is it considered a best practice to align it.I ask for the following reason:I have a table, it has a few million rows in it, nothing spectacular -- but there is a blob in there. The table itself is 500GB.It has a legacy app pointing at it which we cannot change. As usual.Currently the table is not partitioned but it is heavily indexed.At some point in the middle distance is the idea to archive some old data out but that isn't here yet.The table is most often queried on UserID and CategoryID (both int/bigint).The table contains two date fields CreateDate an UpdateDate -- as far as I can see UpdateDate is mostly null and I'll ignore it for now as its RARELY gets updated. In fact out of the few million rows only 2 have ever been updated 6 years ago.Part of me wants to partition on CreateDate because it makes Archiving data out much easier. I can just remove the partition pertaining to 2011.However, another part of me thinks partitioning on CategoryID (there are a finite number, 143 to be exact, these arn't likely to be added to anytime soon and if so, at most 2 rows). Would be better for performance. And performance is the main point here.Is it possible to partition an index so differently to the table? Is it wise?Does anyone see a problem with my thoughts?Cheers All,AlexGiven that does it make sense to Partition on CreateDate
↧
↧
This guaranteed game plan is containing 100%
This guaranteed game plan is containing 100% staggering concoction and for progressing impelled skin answer for decreasing developing issue [url=http://www.drhelpnutrition.org/alucia-cream-reviews/]alucia cream[/url] you can trust it absolutely with no peril. Its pushed condition should be associated with the entire face and neck zone and orderly you will see how your skin tone will get higher and you will be gone to the level of its statures sufficiently. This solid skin condition is awful being utilized for people that are under 18. It is not proposed for excessively touchy people and it is not a treatment of any facial disease. It is awful for hurt skin so keep away from using it if your skin having parts. It is not found viably in business parts and retail stores. http://www.drhelpnutrition.org/alucia-cream-reviews/
↧
Cannot connect from passive node to SQL Server Cluster
Hi All,I've made a sql server cluster environment with two nodes Node1 and Node2. Both nodes are UP in the cluster manager. When Node1 is active I can connect to the sql server cluster but cannot from Node2, and vise versa.TCP/IP is enabled. The Firewall TCP ports are opened.When trying to connect from the passive node the error message isCannot connect to SQLCLUSTER2014.------------------------------ADDITIONAL INFORMATION:Connection Timeout Expired. The timeout period elapsed while attempting to consume the pre-login handshake acknowledgement. This could be because the pre-login handshake failed or the server was unable to respond back in time. The duration spent while attempting to connect to this server was - [Pre-Login] initialization=21013; handshake=0; (Microsoft SQL Server, Error: -2)Can anyone suggest something for this?
↧
msdb.dbo.suspect_pages
Hi Experts,Got some data in msdb.dbo.suspect_pages table. Ran DBCC CHECKDB on that particular DB an it returned nothing. The file_id is showing as Log file. What action to take if the same happens in future for data or log file?database_id file_id page_id event_type error_count last_update_date5 2 2 3 1 2016-07-28 16:44:20.0905 2 3 1 1 2016-07-28 16:44:20.0935 2 6 1 1 2016-07-28 16:44:20.0975 2 7 1 1 2016-07-28 16:44:20.1005 2 1 1 1 2016-07-28 16:44:20.103
↧
Read Only File Groups Performance
Morning All,Is there any performance gain in moving static data tables to read-only filegroups.I heard somewhere (through a MS YouTube Exam prep) that you can save on Locking by marking filegroups as readonly.One of my databases has plenty of look up tables, probably totalling 1GB in size, over about 30 tables. Is it worth moving to a separate filegroup and marking as read only.I am not seeing any locking problems as it stands right now, but just wondered.Cheers,Alex
↧
↧
shrink MDF
Everything i read goes on and on about how bad it is. One of our sql instances houses a database that uses mainly batch processing and as a result does truncate and load of massive amounts of data daily. It's current mdf is 1.5 tb. There's 503,199 mb free space available.Am i crazy to want to shrink this database and free up several hundred gigs? At what point do i shrink it? when it has 50% or 60% free space?
↧
OS Error 5: Access is denied on attach
We had a Windows 2008R2 server with SQL 2012 that crapped out during a hardware upgrade.We've attached the same SAN drives to a new Windows 2012 R2 server and installed SQL2014. The old SQL instance was shut down cleanly before the instance died so the MDF & LDF files should be intact. I'm trying to attach them to the new 2014 instance but I'm getting the error "Unable to open the physical file "E:\SQLData\User\dbname.mdf". Operating system error 5: "5(Access is denied.)".As far as I can tell, the SQL Service Account has full control on the files and the folders. Any ideas?
↧
What Bit AES used in ALWAYSON Endpoints?
Hello,What bit [128? 256?] AES encryption used in creating endpoints for [HADR_ENDPOINT]?,if [HADR_ENDPOINT] is scripted, the script has TAG [AES] as shown in below script.For auditing purpose, we need to know the bit used in AES (128 bit?, 256 bit?).Could NOT find documentation to show what BIT size used in the below script.Please help to know and provide a valid documentation or screen shot / reference.Your help is very much appreciated, thanks for your service.=========================================CREATE ENDPOINT endpoint_mirroring STATE = STARTED AS TCP ( LISTENER_PORT = 7022 ) FOR DATABASE_MIRRORING ( AUTHENTICATION = WINDOWS KERBEROS, ENCRYPTION = REQUIRED AES) GO ================================
↧
Cannot Login - No Process on the other end of the pipe
The following error is received whenever attempting to remote connect to the machine and connect to the SQL instance. I can successfully connect to the database from my local machine. "A connection was successfully established with the server, but then an error occurred during the login process.(provider: SSL Provider, error:0- No process is on the other end of the pipe.)(Microsoft SQL Server. Error 233)"I've perused some articles about this error and so far haven't found any reason for this error to present. Named Pipes are enabled, TCP/IP is enabled, Shared Memory is enabled, VIA is disabled. Right before this error was received I enabled some trace flags on three instances and then rolled that change back and still received the error. Another machine where the trace flags were applied does not throw this error. Any help would be appreciated.
↧
↧
upgradtion 2014
I need to upgrade sql 2008 to sql 2014 and the databases are configured in logshipping , can any one send me the steps to upgrade the sql server to sql 2014
↧
neuphoric skin is a pushed age testing
neuphoric skin is a pushed age testing course of action which is made to take out the detectable quality of the wrinkles, rare contrasts, dark circles and [url=http://www.healthyorder.org/neuphoric-skin-reviews/]neuphoric skin[/url] other developing signs. neuphoric skin Before using this condition, you need to research this review, which includes an ordered portrayal about the solid skin formula: What is neuphoric skin? neuphoric skin Anti Aging Retinol Cream is a shocking formula that helps you decrease the nearness of developing signs. It resuscitates your skin without using any unreasonable and anguishing surgeries. By using this cream, you can see the brain boggling changes in your skin inside few days. This condition deals with your skin and helps you to get a smooth look.http://www.healthyorder.org/neuphoric-skin-reviews/
↧
data load performance
Hello,using a combination of ssis and C#, we are placing file data into sql server tables.The files contain around 70 million of rows...We can not use bulk insert as there are checks being done on every column in every row.What steps can we take to improve the speed of the inserts?Thank you
↧
SQL 2014 Cluster Install Error
Hi All, I'm doing SQL 2014 install on Win2012 and having couple of issues Almost at the end of Install I'm receving the following error : with a retry or Cancel option from SQL InstallA network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) SQL DB engine is not ready, BUt I'm able to go under SQL Configuration If I start SQL Engine : (I'm using domain\service account) it gives me login error well I tried different account and also SA account also I checked Name pipe, Memory and TCP/IP area, all are enabled Correct IP address is usedI tried using port also but no luck FIREWALL is blocked What exactly is the issue?, Why SQL Server failed to complete install ? Is this network related issue ? What I can do to resolve this issue ?Please help
↧
↧
by listing the various ways she
[url=https://www.linkedin.com/pulse/updated-quantum-code-review-its-worthiness-fulfilling-kristen-beilly]Quantum Code Review[/url]
↧
the right time to let go of
[url=http://www.rogueclimate.org/tlpwsds/_100_free_quantum_code_review_what_is_qc_scam_or_not_more_to_know]Quantum Code Review[/url]
↧
Identify Actual User / Host Connecting...
Morning All,I have a problem whereby I need to identify the user logged in indirectly to a SQL Server.By indirectly what I mean is the user logs on to their desktop. Launches an application that connects to a SQL Server via a Service Account; not via the AD user they logged in as. The usual sp_who2 only shows the hostname (app server) and service account that has connected.Does anyone know of a way I can find the actual user behind this?Cheers,Alex
↧