back soft

مطالب مرتبط با «sql server 2012 versions» در back soft | نویسنده: استخدام کار

Transfer output file of T-SQL statement in SSIS package to another server

Vote count: 0 I have an existing SSIS package on my DB server and I have another server which is the application server which uses this DB server for its operation. This SSIS package, is being used by a job ruing on the DB server. I would like to add an additional step. That step is just a basic select count(*) query to get count from one table. I implemented that on my test server and gave the output path in the advanced tab as well. And i got the output in a simple text file. My question now i...

ادامه مطلب

Sql Server Stored procedure for Counting returning 0 as the count

Vote count: 0 At the moment I would like to run a store procedure that retus the count of the number of records. The records look like this The stored procedure looks like ALTER PROCEDURE [dbo].[USP_NEWFOLDER_COUNT] -- Add the parameters for the stored procedure here AS BEGIN -- SET NOCOUNT ON added to prevent extra result sets from -- interfering with SELECT statements. SET NOCOUNT ON; -- Insert statements for procedure here -- FileLocation is a table SELECT @@ROWCOUNT FROM FileLocation END The...

ادامه مطلب

Altering the contents of a column in SQL server 2008

Vote count: 0 I exported data from an excel file. From that file, I have a column called 'ID'.For now that column has entries like the following. ID 1.14455, 2.48755, 3.65588, 4.25415, and so on. I need to get rid of that comma from the column. How do I do it? edited 2 mins ago asked 3 mins agovicky394 1 Answer Vote count: 0 If there are no other commas in the values, then just use replace(): select replace(col, ',', '') If there are possibly other commas: select (case when col like '%,' then le...

ادامه مطلب

Tried to utilize azure windows 2012 R2 virtual machine mysql but I can't access it

Vote count: 0 I recently got interested in utilizing a bunch of VM that I have access to and I come to a conclusion that windows server R2 2012 was the easiest to start with. I was able to remotely coect to it, no problem I manage to install MySQL server and IIS where I am able to see it on localhost. Here is how the IIS looks like and here is the localhost database from the VM grant all privileges on *.* 'USEAME'@'IP' IDENTIFIED BY 'PASSWORD'; FLUSH PRIVILEGES; iis from VM I figured out that I ...

ادامه مطلب

Filter out duplicate results in where clause in sql server

Vote count: 0 I have a temp table which created and filled as below: DECLARE @WALKINS TABLE (WorkId Int, EmployeeId INT, MembId Int) INSERT @WALKINS SELECT WorkId = WORK_ID, EmployeeId = EMPL_ID, MembId = WORKS.MEMB_ID FROM CARS.DBO.WORK_Worksheets WORKS WHERE WORKS.WORK_ID NOT IN ( SELECT WORS.WORK_ID FROM CARS.DBO.WORS_WorksheetsLeads WORS IER JOIN CARS.DBO.LEAD_Leads LEAD ON LEAD.LEAD_ID = WORS.LEAD_ID AND WORS.WORK_ID IS NOT NULL IER JOIN COM.DBO.CNTL_ContactCenterLeads CNTL ON LEAD.LEAD_Old...

ادامه مطلب

syntax difference between .. and . in SQL Server in sysobjects

Vote count: 0 I've seen something like this in SQL Server (ruing this query against the master database): select * from tempdb..sysobjects which seems to retu exactly the same results as: select * from tempdb.sys.objects I've seen that the double dot can be used as a way to omit the schema name but I don't see anything omitted here, going by that logic then tempdb..objects would be valid which is not). asked 4 mins agodaremkd Let's block ads!...

ادامه مطلب

Retrieve data from database and bulk index them - Sql Server

Vote count: 0 I have some records in SQL Server management studio and I want to index them to my ES index. At present I'm indexing them individually which is taking a long time. I would like to bulk index them. I tried using the Bulk Descriptor it is throwing an error saying > the object to index, if id not set manually it will be inferred from the object below is my code. string coectionString = ConfigurationManager.CoectionStrings["MyDbCo"].ToString(); using (cn = new SqlCoection(coectionStrin...

ادامه مطلب

Curious sporadically performance problems of select count(*) query after upgrading to SQL Server 2012 (from 2005)

Vote count: 0 We have a native C++ COM application for controlling our production lines. The application is using ADO to access a MS SQL server. Server part of application is ruing on Windows Server 2003 and Clients XP. Recently we switched from SQL SERVER 2005 to SQL SERVER 2012 (but database remaining in 2005 compatibility modus). The migration was quite smooth (just 1/2 downtime). Old server and clients are in same domain, new server is in a different domain (of course trusted). Authenticatio...

ادامه مطلب

In SQL server what is the difference between using = and join?

Vote count: 0 We have been leaing SQL Server programming in Database Systems class. The professor goes exceptionally fast and is not very open to asking questions. I did ask him this, but he just advised me to review the code he'd given (which doesn't actually answer the question). When making a query, what is the difference between using the term JOIN and using the "=" operator? For example, I have the following query: SELECT VENDOR_NAME, ITEM_NAME, QTY FROM VENDOR, VENDOR_ORDER, INVENTORY WHER...

ادامه مطلب

sqlserver.jdbc.KerbAuthentication GSSException Integrated authentication failed in apache storm 1.0.0

Vote count: 0 We're ruing apache storm 1.0.0 on redhat and while trying to query an mssql database from within a bolt using Kerberos authentication jdbc:sqlserver://xxxyyy;databaseName=zzz;integratedSecurity=true;authenticationScheme=JavaKerberos we are getting the following exception [com.microsoft.sqlserver.jdbc.SQLServerCoection.terminate(SQLServerCoection.java:1884), com.microsoft.sqlserver.jdbc.KerbAuthentication.intAuthInit(KerbAuthentication.java:175), com.microsoft.sqlserver.jdbc.KerbAut...

ادامه مطلب

SQL Server Output Parameter showing null value in EF C#

Vote count: 0 I have a below stored procedure with output parameter. ALTER proc [dbo].[CRS_GetNewMessageCount] @CaseId int, @Type varchar(50), @Location varchar(50), @Count int out as begin if @location='admin' begin if @type='consumer' select @Count=(Select count(fdId) from tb_CRS_Messages where fdCaseId=@CaseId and fdIsConsumerType=1 and fdIsReadatAdmin=0) else select @Count=(Select count(fdId) from tb_CRS_Messages where fdCaseId=@CaseId and fdIsMemberType=1 and fdIsReadatAdmin=0) end else beg...

ادامه مطلب

(2003, "Can't connect to MySQL server on 'mysql.server' (111)") error in pythonanywhere

Vote count: 1 I am trying to deploy a django project on pythonanywhere but it is giving error- (2003, "Can't coect to MySQL server on 'mysql.server' (111)") I have seen many such questions already asked for this problem but no answer solves my problem. May be there is a previlleges problem with database . Database settings are- DATABASES = { 'default': { 'ENGINE': 'django.db.backends.mysql', 'NAME': 'mutechrobotics$mutech_db', 'USER': 'mutechrobotics', 'PASSWORD':'root', 'HOST': 'mysql.server', ...

ادامه مطلب

How to extract datetime string sql server?

Vote count: 0 I want a datetime string till minute from Datetime in sql server. Means I want to extract string after minute from Datetime from sql server. Like :: 2011-11-02 13:35:14.613 and I want this from above datetime string - 2011-11-02 13:35 asked 46 secs agoPawan Agrawal Let's block ads!...

ادامه مطلب

I want to debug mysql server

Vote count: 0 I am developing storage engine for mysql. I need to know flow of mysql server. so I want to debug mysql server statement be statement in xcode of GNU debugger. Any body will help me to build n run mysql in debug mode. asked 1 min agoPiyush Sonani Let's block ads!...

ادامه مطلب

get working working days from calendar Table in sql server

Vote count: 0 I have two tables One is list of holidays school wise of January Month 2010 I want to calculate data of working days of all three schools in Jan 2010. I took a just small example from real problem. Holidays Table SchoolID HolidayOn 1 01-01-2010 1 02-01-2010 2 01-01-2010 2 02-01-2010 3 01-01-2010 3 02-01-2010 3 03-01-2010 I want working days of All three schools Output should be like this SchoolID WorkingDays 1 03-01-2010 1 04-01-2010 1 05-01-2010 1 06-01-2010 . . . . 1 31-01-2010 2...

ادامه مطلب

SQL Server error 18456

Vote count: 0 windows unable to coect to SQL server with windows authentication mode I haven't created SQL authentication.Server name is AYAZ .Server is able to coect with Analysis and Reporting service but unable to coect with Database engine asked 1 min agoAyaz Ahmad Tarar Let's block ads!...

ادامه مطلب

SQL Server: how to use a database name as a parameter in a stored procedure

Vote count: 0 How can I do a join on tables of 2 different db in same domain like SET DBname = "sample" SELECT * FROM Table1 IER JOIN DBname.table 2 On Table1.key = Table2.Key Any help would be appreciated asked 29 secs agoRobert_Junior Let's block ads!...

ادامه مطلب

SQL SERVER how to convert a nvarchar field that contains 'dd/MM/yyyy HH:mm:ss' to datetime

Vote count: 0 How to convert a nvarchar field that contains 'dd/MM/yyyy HH:mm:ss' to datetime. When i'm trying this conversion, it retus an error: "The conversion of a nvarchar data type to a datetime data type resulted in an out-of-range value" asked 3 mins agoMarcus Vinicius Almeida Let's block ads!...

ادامه مطلب

SQL SERVER SSIS Deployment

Vote count: 0 I am new to the BI Section. I have created a parametric SQL Report through SQL Server Reporting Services and deployed over the local server. Post this, I could view my reports over Inteet explorer. Similarly, I have deployed the SSIS package on my server. But I can't get any URL where the SSIS package has been deployed. Is there any method to which I can publish this SSIS package? asked 2 mins agoAnshul Dubey Let's block ads!...

ادامه مطلب

SQL server installation problems

Vote count: 0 when i start installing SQL server i get this error message : there was a failure to calculate the applicability of setting license path error code enter image description here asked 1 min agoPain zou Let's block ads!...

ادامه مطلب