Transient Deadlock During SSDT Publish

Jul 10, 2015

I have a SSDT project that intermittently fails with the following error when I try to publish via Visual Studio by double-clicking the publish.xml file...

(330,1): SQL72014: .Net SqlClient Data Provider: Msg 1205, Level 13, State 68, Line 5

Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction.

(326,0): SQL72045: Script execution error.  The executed script:
IF EXISTS (SELECT 1
           FROM   [master].[dbo].[sysdatabases]
           WHERE  [name] = N'$(DatabaseName)')
    BEGIN
        ALTER DATABASE [$(DatabaseName)]
            SET READ_COMMITTED_SNAPSHOT OFF 
            WITH ROLLBACK IMMEDIATE;
    END

This is a hyperV client running on my laptop. I'm connecting to the client's VPN inside the hyperV client and using the "runas" method to open Visual Studio to spoof the domain credentials i use on the clients network. This allows me to connect to servers on the client's domain via apps as if I was logged in with appropriate credentials (not sure how to phrase that better). I can elaborate if deemed necessary, but even the client's FTEs are having same problem and they're sitting in the building.

Windows Server 2012 R2 StandardSQL Server 2014 CU6 (12.0.2480)Visual Studio Premium 2013 (12.0.31101.00) Update 4 

Windows Server 2012 R2 (VMWare)SQL Server 2012 SP2 (11.0.5058).Here are some observations...

Happens about 60% of the time during the day (I just keep re-running until it deploys successfully)...late at night and on weekends, it doesn't seem to happen with anywhere near as high a frequency.Only seems to happen when I use "Always re-create database" option (don't recall incrementals having this problem...but admittedly I'm not doing many of those as we're still in the full-speed-ahead-development phase)This does NOT happen when I publish to my local SQL Server instance..Deadlock xEvent trace on target instance. Unfortunately it didn't seem to be able to capture all the info and the deadlock graph doesn't render (error below) checking the Single User Mode during the publish. This seems to increase the frequency with which this issue occurs.

View 10 Replies


ADVERTISEMENT

Mirroring :: Email Deadlock Information When A Deadlock Occurs

Nov 10, 2015

Is there a way to send out an email woth deadlock information (victim query, winner query, process id's and resources on which the deadlock occurred) as soon as a deadlock occurs in a database or at instance level?I currently has trace flag 1222 turned on. And also created an alert that send me an email whenever a deadlock occurs. but it just says that a deadlock occurred and I log into sql server error log and review the information.

View 5 Replies View Related

Can Rs.exe Also Un Publish Reports?

Jan 7, 2008

there's lots of info on the web about rs.exe adding objects to RS, but what about rs.exe deleting them, for cleaning house, without "breaking" anything?

View 4 Replies View Related

Cannot Open Objects Using SSDT

Jun 4, 2015

I have SQL server 2014  database installed on a Windows 2012 server and SSDT also got installed ( 2013 shell)

I can connect to a database and see all objects using SSDT , but I cannot write any queries or modify any of the objects,

I am new to the SSDT, and this is the first time I am going to configure SSDT to work with SQL Server.

View 7 Replies View Related

ASPNETDB With Publish Provider

Aug 22, 2007

Hi!
 I have created a sql script with publish provider and the file has all information about ASPNETDB and now i want to drive the sql script into my databas on my webbhosting.
How do i? i have SQL Server Management Studio Express to admin my databas.
any?

View 7 Replies View Related

How To Publish OLAP Cube

May 6, 2003

Hi,

I am new to SQLServer 2000.I have built a cube.I was wondering how to acess this from a client(say via excel or a browser).

Thanks,
copericus

View 4 Replies View Related

Low Latency Publish-Subscribe

May 4, 2007



Hi,



I have a couple of questions to make.



How can i trigger notifications to my application ( C#)

without hanging in WaitFor Operation??



It's possible for broker service to call some remote

object that my application provide ???



Can Publish/Subscribe using Broker Service be used

for a low latency notifications (150ms ) max with milions of

messages published per second??



Thanks in advance



Sérgio

View 2 Replies View Related

How To Take Backup Or Restore A Database Using SSDT

May 2, 2013

I was wondering if there is a way to take backup or restore the database using SSDT.

View 6 Replies View Related

How Do I Publish Sql Express Database In Internet?

May 29, 2007

Hi all,
There is a sql express database .mdf file which I can access locally through local web pages using windows authentication and integrated security = true.
Now I want to publish this db and the web pages to my hoster's server so as to access the db from internet.
The connection string currently is in the web config as below:<add name="NORTHWNDConnectionString" connectionString="Data Source=.SQLEXPRESS;AttachDbFilename=|DataDirectory|NORTHWND.MDF;Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient" />     The database is currently located in the App_Data folder.
Please give me some step by step solution to configure the db to access from internet. Thanks a lot in advance.

View 1 Replies View Related

Replication :: Publish Database On Subscriber

Aug 13, 2015

I have database (DB) on the server SQL1. This database (DB) is published on SQL1 server for SQL2 server. So, SQL1 is publisher and SQL2 is subscriber for (DB). Can I publish database (DB) on the server SQL2 for the server SQL3? I would like to implement this scheme of Publication/Subscription:

<o:p></o:p>
SQL1 -> SQL2 ->SQL3..

I know, that it is simpler just to publish DB for SQL2 and SQL3 from SQL1, but, because of network connectivity, I can't do that...

View 3 Replies View Related

Publish C# Project Connected To Database?

Aug 10, 2015

i want ti publish a c# project connected to sql database, i introduced the database into my project, i use the connection string: 

  SqlConnection cn = new SqlConnection(@"Data Source=CONTA-LAPTOP;Initial Catalog=RaducuIonel;Integrated
Security=True");  if right click on the database-> properties iti show me next connection string: Data Source=CONTA-LAPTOP;AttachDbFilename="C:Program FilesMicrosoft SQL ServerMSSQL10.MSSQLSERVERMSSQLDATARaducuIonel.mdf";Initial
Catalog=RaducuIonel;Integrated Security=True    

...when i connect to server in sql i use windows autentification. And the last thing: when i publish the project it ask me: application will check for updates from [URL] or application will not check for updates. I select first option: to check for updates from here: [URL] .to another computer my application cannot connect to database (login error) .what i am doing wrong? 

View 2 Replies View Related

VS2013 SSDT Crash On Schema Compare?

Aug 25, 2014

We are getting regular SSDT/VS crashes when doing schema compares (source: project, target: server). Sometimes the compare succeeds but around 80% of the time we get a crash.

We are using VS2013 Update 3 and the latest version of SSDT.

Application : devenv.exe
Version du Framework : v4.0.30319
Description : le processus a été arrêté en raison d'une exception non gérée.
Informations sur l'exception : System.Runtime.InteropServices.COMException
Pile :
   à System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32, IntPtr)

[code]....

View 5 Replies View Related

Can Install SSDT Without Any Visual Studio Installed

May 28, 2015

Just wanted to find if there is a way i can install SSDT without a Visual studio Install in the machine?I intend to use sqlpackages.exe which is from SSDT for publishing a dacpac, and do not intend to install any Visual Studio for this purpose.

View 3 Replies View Related

SSDT Tries To Alter Timestamp Column In TFS Build

Apr 21, 2015

We're trying to perform an upgrade test against a copy (backup/restore) of our customer database as target. There are some tables with  timestamp column in the database. The way we do this is by having a database project with a publish profile targeting that copy of customer database and then with TFS build server is used to build the database but only to generate a publish script (/p:UpdateDatabase=False) set in the build definition - msbuild argument.

Example of table definition:

CREATE TABLE dbo.CodeTable1
(ID INT IDENTITY(1,1) NOT NULL PRIMARY KEY
,Code CHAR(6)
,[Timestamp] TIMESTAMP NULL);

We would like to have the "Code" column to have CHAR(7), so in the project we modify the table definition:

CREATE TABLE dbo.CodeTable1
(ID INT IDENTITY(1,1) NOT NULL PRIMARY KEY
,Code CHAR(7)
,[Timestamp] TIMESTAMP NULL);

Expecting SSDT build will generate alter script:

ALTER TABLE dbo.CodeTable1 ALTER COLUMN Code CHAR(7);

To our surprise the generated script was:

ALTER TABLE dbo.CodeTable1 ALTER COLUMN Code CHAR(7);
ALTER TABLE dbo.CodeTable1 ALTER COLUMN [Timestamp] TIMESTAMP NULL;

Which will cause error when the script is executed: "Cannot alter column 'TIMESTAMP' to be data type timestamp."

Why is SSDT generating the change script for that timestamp column??

We then try a local build in VS, the issue is not happening, SSDT correctly generates alter script only for the "Code" column to CHAR(7);

Both local machine and TFS Build server are having VS 2013 Update 4- SSDT 12.0.50318.0 installed.

As we tried to troubleshoot further, we found out that it seems it only happens on a restored database from a backup copy of our customer database. It doesn't happen for databases created by SSDT build from scratch or that we manually created. We've tried make sure all database properties are the same as the database that correctly built.

But still if the target database is the one we restored from a customer's copy, SSDT always tries to alter timestamp column (on server build).

View 5 Replies View Related

After Publish From VS2005 To IIS 5.1, SQLExpress Doesn't Work

Jan 30, 2007

I created an app in vs2005 and everything works perfectly in the development environment. I've published the site to my local IIS, but when I try to log in, it doesn't allow me. I'm assuming that it has something to do with the db not working correctly. Unfortunately I don't know how to debug to see where the problem is coming from now that it's running on my 'live' IIS. Does anyone have any ideas on what could be the problem. I have some settings in the web.config, which have been working perfectly.
 <appSettings><add key="UserName" value=""/><add key="Password" value=""/><add key="Server" value="xxxxxxsqlexpress"/><add key="Database" value="xxxxx_xxx_users"/><add key="UseTrusted" value="True"/></appSettings>
I had a local guy at the office here saying that the ASP.NET user needs to be granted access to sqlexpress2005, but I wasn't sure on how to do that.
So all in all, My app works in Visual Studio 2005, and not in IIS. There are no errors when loading various pages. They all load correctly and without error. It seems that it's just when I try to do anything with the DB.
Thanks for the help. I appreciate it!
 

View 4 Replies View Related

Publish A Report From A Local Database To The Server

Nov 10, 2007



Hello,
I recently read the following book:
http://www.amazon.com/Microsoft-Server-2005-Reporting-Services/dp/0072262397/ref=pd_bbs_sr_1/104-5275187-2065567?ie=UTF8&s=books&qid=1194662002&sr=8-1

It was excellent.

I was hoping to find an example of the following:

My company has a desktop application with a local database (sql server 2k express) I would like to be able to have local reports and if the user likes the report they are viewing, the user could "publish" that report to the server. Since the database is local, the report data source cannot point to that database. So, it would publish the report AND the data in it.

For this use case, what is the recommended strategy of moving the data with the report? Would i create a small xml file and then dynamically build a datasource that points to that xml? Any best practices advice?

If i could find an example would be fantastic.

Thanks for your help,
Dan

View 1 Replies View Related

Publish Window Application With Sql Server Express SP2

Feb 4, 2008

How do I get SQL Server 2005 Express Edition Service Pack 2 to show up in the prerequisites list when publishing the application?

Thanks

View 1 Replies View Related

Reporting Services :: Publish MDW Reports On SSRS

Jun 1, 2015

Is there a way to publish the MDW (Data Collection) reports (Disk Usage history, Query Statistic history, and Server Activity history ) on SSRS server?! 

It is not logical for all who wants to view the mentioned reports to open the SSMS !  

I've already check [URL] .... there, the writer is suggesting to recreate the reports from scratch on SSRS, that if I could figure their queries, which I don't think the only way that we have!

View 3 Replies View Related

How Cany I Publish 1 Table From An Attached Database?

Oct 24, 2006

Hello,

In my vb.net application, I have an attached database called dbMaster with the following tables:

tblCustomer, tblProducts, tblUsers

In visual studio 2005, is it possible to publish only one table? My problem is, is that I want to send my end users updated data from my tblCustomer, and am finding that on my test laptop, if I publish dbMaster, it sends all tables when I just want one to be sent.



Thanks in advance.

View 5 Replies View Related

SQL 2012 :: Downloading SSDT Without Live Internet Connection?

Apr 30, 2012

I am working in a secured company which doesn't allow live internet connection, therefore I can't install SSDT using Web Platform Installer and we also don't want to install the intire 2012 client tools.

View 2 Replies View Related

SQL 2012 :: SSDT Installation On Multi-server Platforms

Jun 25, 2014

We have a BI-Stack configuration for server SQL 2012 that includes a gateway server that houses the app, a second server which houses SQL Server DB and SSIS, and a third server that houses SSAS and SSRS. Where should SSDT tools be installed? I assume on the gateway? This is a production environment, so should VS and/or SSDT not be here at all?

View 1 Replies View Related

SQL 2012 :: Rename A File In SSIS (SSDT) Using Expression

Jul 23, 2015

I have a file named abc-72015.txt.

I have a package that renames the file from abc.txt to abc-72015.txt

I want to do the reverse. I wan to rename it from abc-72015.txt to abc.txt.

I have a variable named myFileValue with a value of abc.txt.

Can I do this by setting the variable as an expressions and use a function to rename it as abc.txt?

What would the syntax be?

View 4 Replies View Related

SQL 2012 :: Suppress SSDT Database Reference Error

Aug 21, 2015

In database projects, VS2015, I want to create some views for me database that will reference another database table using 3 part naming reference.

Works fine in SSMS but when I try and build me project I is throwing up a reference error.

I can't import the other database into this project, so is there a way to suppress the error? I don't really want to exclude these view from the project.

View 5 Replies View Related

Integration Services :: Oracle Connectors (3.0) With SSDT (2013)?

Nov 14, 2014

In previous versions of BIDS we were able to customize the DataFlow toolbox to incorporate the Oracle Source and Oracle Destination items - however, it appears this is no longer the case in SSDT (no option to customize toolbox).  I've installed the 3.0 Microsoft Connectors for Oracle - when I create a new connection in the Connection Manager I can see the Attunity drivers, but under Other Source/Other Destinations in the Toolbox I cannot find the Oracle Source/Destination components.

View 5 Replies View Related

SSDT Database Users Being Dropped If Not In Source With DropObjectsNotInSource

Sep 18, 2012

URL>..n how to deploy (AKA publish) without dropping the users with the DropObjectsNotInSource enabled.  With the SSDT September 2012 release I have been testing I seem to be able to ignore permissions and role memberships but not users.In my situation and that of several other folks I have talked to it is a problem trying to manage this.  I am thinking of scenarios where there could be (1..n) databases needing the current build (where n is big and not a static number) and need to be updated but the database Users are different for several reasons.

don't have to manually use schema compare to identify objects to drop when we deploy and not drop database users at the target?  Because of the dynamic nature of these databases (i.e. 1-n might be on a different release than the current build) we would like to manage security at the source and not the project or post deployment script level.From the MSFT folks is there any hope that we will get a parameter to ignore users when DropObjects otInSource=true in an soon to be released version of SSDT?

View 14 Replies View Related

Failure To Publish An Indexed View Logbased Publication

Jun 14, 2007

i am trying to publish an indexed view logbased publication but I'm getting "must be a schema-bound view with at least a clustered index to be published as a log-based indexed view article."

The table has clustered index and the view is schema-bound.



this is the script for schemabinding

SET ANSI_NULLS ON

GO

SET QUOTED_IDENTIFIER ON

GO

ALTER VIEW [nth].[musictracks1] with schemabinding

AS

SELECT autoid,idtrack,songname,singer,writer,composer,center

FROM nth.musictracks

GO

SET ANSI_NULLS OFF

GO

SET QUOTED_IDENTIFIER OFF

GO



and this is for making the publication an indexed view logbased publication



exec sp_addarticle

@publication = N'lb_publication',

@article = N'musictracks1',

@source_owner = N'nth',

@source_object = N'musictracks1',

@type = N'indexed view logbased',

@description = null,

@creation_script = null,

@pre_creation_cmd = N'none',

@schema_option = 0x0000000008000001,

/* table name doesn€™t have to be the same as view name */

@destination_table = N'musictracks1',

@destination_owner = N'nth'

GO



Any idea what is wrong?



Thanks,

Salah

View 3 Replies View Related

How To Publish Tables Without Primary Keys In Transactional Replication

May 16, 2007

Hi All

I am a newbie to replication. I just want to know Is there any way to publish tables (articles) without primary keys in transactional replication.



Early Thanks,

Salman Shehbaz.

View 1 Replies View Related

SSDT In Visual Studio 2012 - Selected Identifier Is Not Highlighted

Jan 22, 2015

In VisualStudio 2012 in C# projects when you double-click on a identifier (variable name, class name, etc) then all occurrences of that sting in the current file are highlighted.

It doesn't work in SQLServer projects in sql files. It is a shame that although we are in VisualStudio we are still limited in functionality.

Is there a way to enable this feature?

View 4 Replies View Related

Reporting Services Error When Preview/publish A Report Containing SAP BI Hierarchy

Jan 28, 2008

Hi SSRS Experts

I'm trying to create a report using a SAP BI InfoCube as my datasource.
One of the fields in the InfoCube (GL Account) consist of a 3 level hierarchy, which need to be reported on.
The query that I built using QueryBuilder executes fine and displays the hierarchies correctly, but when I preview the report, i get the following error:

An error occurred during local report processing
An error has occurred during report processing
Query execution failed for data set "SAPBWD"
The "0GL_ACCOUNT 1000IE" Object was not found.


0GL_ACCOUNT is the GL account field to report on
1000IE is the selected GL Account Hierarchy to be displayed

Here's the query that was generated using query builder:

SELECT NON EMPTY { [Measures].[D2A3Y7ANS9YOF2FONXMUS9RAI] } ON COLUMNS, NON EMPTY {[0GL_ACCOUNT 1000IE].[LEVEL03].ALLMEMBERS * [ZF_MC].[LEVEL01].ALLMEMBERS } DIMENSION PROPERTIES MEMBER_CAPTION, MEMBER_UNIQUE_NAME ON ROWS FROM [ZFGL_M03/ZREP_BOR001] CELL PROPERTIES VALUE, BACK_COLOR, FORE_COLOR, FORMATTED_VALUE, FORMAT_STRING SAP VARIABLES [ZFV_FY] INCLUDING [0FISCYEAR].[Z12007] [ZFV_PC] INCLUDING [0PROFIT_CTR 1000FS].[10000001000033] [ZFV_RM] INCLUDING [0FISCPER3].[005] [ZFV_PV] INCLUDING [0VERSION].[003]



I hope you would be able to assist.

Kind Regards
Utian Goliath

View 1 Replies View Related

SQL Server 2014 :: Can't Find Data Flow Task In SSDT 2012

Nov 5, 2015

I Can't find the Data Flow Task in SSDT 2012.

Has it been replaced by another task or do I need to do something to make it visible?

Edit: It popped up under my favorite tasks.

[URL]

View 2 Replies View Related

I Have A Web Site Where I Input Stories And Set The Publish Date To Some Time In Future And Set An Hour From 1-24....

Sep 20, 2007

i need to be able to do an sql call whereby i can check the day and hour for publishing.eg select story where day = ?? AND hour = ?? any one know the best way to do this.
i need to call out date as a day number or someting and the getdate as just the hour??? anyone know how??

View 1 Replies View Related

SQL 2012 :: SSDT Database Project - Cross DB Trigger Enable / Disable Gives Warning 71502

Jul 13, 2015

I have 2 dbs (SQL 2012) - one contains a trigger that is enabled/disabled by a procedure in the other database. This all works fine.

If I create a Database Project solution in Visual Studio 2012 SSDT (or 2013) for both databases, the stored procedure generates a SQL71502 stating that my trigger name can't be resolved.

To recreate the issue:

CREATE DATABASE DbWithTrigger
GO
USE DbWithTrigger
GO
CREATE TABLE dbo.TblWithTrigger(
Id int NULL,
SomeValue varchar(30) NULL

[code]....

-- Test to confirm

EXEC CrossDbTriggerCall
INSERT DbWithTrigger.dbo.TblWithTrigger VALUES(1, 'Blah blah')

In Visual Studio 2012:

1. Create a new solution with a project named DbWithTrigger
2. In project settings set the Target platform to SQL 2012
2. Import the DbWithTrigger db into this project
3. Create a new project named DbCallsTrigger
4. In project settings set the Target platform to SQL 2012
5. Import the DbCallsTrigger db into this project
6. Add a Database Reference in DbCallsTrigger for DbWithTrigger

When you build the solution both dbs build successfully, however there are two warnings. One is easily resolved by replacing DbWithTrigger in the body of the procedure with [$(DbWithTrigger)] (db variable name for the reference) but I can't find out how to get rid of the other. Is it a bug?

View 1 Replies View Related

Fail SSDT Project Build When A Stored Procedure Call Missing Required Parameter?

Jun 17, 2015

Is it possible to force a build to fail when a stored procedure in a project calls another stored procedure with one or more required parameters missing. E.g.:
 
CREATE PROCEDURE [App].[ServiceUser_Save]
@userID int-- Param #0
,@serviceuserID int-- Param #1
,@version int-- Param #2 etc...

And then in a separate stored procedure we have the following

CREATE PROCEDURE [Admin].[CreateMiscellaneousData]
@customerIDint,
@serviceIDint,
@fullURL nvarchar(255),
@apiUserPwd nvarchar(255)
AS
BEGIN
...
EXEC@return_value = [App].[ServiceUser_Save]
@userID = 1,
@serviceuserID = 0, etc...

Note there is no value passed for the @Version parameter.

What I want is the build to fail because of the missing parameter on the call to ServiceUser_Save in the Create_MiscellaneousData stored procedure.

How can I achieve this?

View 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved