milosev.com
  • Home
    • List all categories
    • Sitemap
  • Downloads
    • WebSphere
    • Hitachi902
    • Hospital
    • Kryptonite
    • OCR
    • APK
  • About me
    • Gallery
      • Italy2022
      • Côte d'Azur 2024
    • Curriculum vitae
      • Resume
      • Lebenslauf
    • Social networks
      • Facebook
      • Twitter
      • LinkedIn
      • Xing
      • GitHub
      • Google Maps
      • Sports tracker
    • Adventures planning
  1. You are here:  
  2. Home

Import BACPAC files (restore backup from windows Azure)

Details
Written by: Stanko Milosev
Category: SQL
Published: 12 November 2012
Last Updated: 12 November 2012
Hits: 7591

Install SSMS 2012 (not DB engine, only Management Studio) from:

 

http://download.microsoft.com/download/8/D/D/8DD7BDBA-CEF7-4D8E-8C16-D9F69527F909/ENU/x64/SQLManagementStudio_x64_ENU.exe

 

Download BACPAC, it can be done using Visual Studio (View->Server explorer,…)

 

If you receive the error like:

Error SQL72014: .Net SqlClient Data Provider: Msg 468, Level 16, State 9, Procedure MyProc, Line "some number" Cannot resolve the collation conflict between "SQL_Latin1_General_CP1_CI_AS" and "Latin1_General_CI_AS" in the equal to operation.

 (Microsoft.SqlServer.Dac)

Then unzip BacPac (bacpac is actually zip file), find file which has SQL_Latin1_General_CP1_CI_AS, then, best is just to rename bacpac to zip, and search and replace file directly from zip, or install new instance of MS SQL, because I couldn’t find a way to change collation of the server…

How to get row count of every table in a SQL Azure Database

Details
Written by: Stanko Milosev
Category: SQL
Published: 30 October 2012
Last Updated: 30 October 2012
Hits: 5308
SELECT so.name as TableName, ddps.row_count as [RowCount]
FROM sys.objects so
JOIN sys.indexes si ON si.OBJECT_ID = so.OBJECT_ID
JOIN sys.dm_db_partition_stats AS ddps 
       ON si.OBJECT_ID = ddps.OBJECT_ID  AND si.index_id = ddps.index_id
WHERE si.index_id < 2  AND so.is_ms_shipped = 0
ORDER BY ddps.row_count DESC
Taken from here

Add firewall rule

Details
Written by: Stanko Milosev
Category: SQL
Published: 30 November -0001
Last Updated: 03 March 2013
Hits: 6126

If you are receiving error like:

Failed to add rule 'xxx.xxx.xxx.xxx to xxx.xxx.xxx.xxx' to firewall. Please add it manually.

Then first go to SQL databases, like on the picture:

After go to servers, and click on the server which you want to configure:

Then click configure:

And here you can add your rule:

 

Debug ASP.NET on IIS

Details
Written by: Stanko Milosev
Category: ASP.NET
Published: 30 December 2019
Last Updated: 06 April 2022
Hits: 2732
Here I already explained how to debug IIS express and here I explained how to add web site to IIS.

Now I am will give little bit more detailed explanation how to debug ASP.NET on IIS.

First start Visual Studio as administrator:

Set breakpoints and attach to process w3wp.exe:

If you don't see w3wp.exe then either refresh browser, or open your application in browser, and click refresh in "Attach to process" window.

  1. String as a null
  2. E - mail regular expression
  3. Composite primary key
  4. Debug IIS express

Subcategories

C#

Azure

ASP.NET

JavaScript

Software Development Philosophy

MS SQL

IBM WebSphere MQ

MySQL

Joomla

Delphi

PHP

Windows

Life

Lazarus

Downloads

Android

CSS

Chrome

HTML

Linux

Eclipse

Page 41 of 164

  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45