Visual Studio 2010 Error “VSTS for Database Professionals Sql Server Data-tier Application…”
This error occurred when installing / uninstalling SQL Server database components.
This error occurred when installing / uninstalling SQL Server database components.
These instructions assume we have a Windows Server called “vm1” that we need to expand the “c” drive. 1). Remove any snapshots from vm1. This method will not work with …
Syntax for a TSQL date time variable 1234567DECLARE @START_DATE DATETIME DECLARE @END_DATE DATETIME SET @START_DATE = ’09/21/2012 00:00:00′ SET @END_DATE = ’09/21/2012 23:59:59′ SELECT * FROM TABLE WHERE POSTINGDATE >= …
TSQL 123456–all tables and rowcount (in descending order by count) select ‘[‘+SCHEMA_NAME(t.[SCHEMA_ID])+’].[‘+t.NAME+’]’ AS [fulltable_name], SCHEMA_NAME(t.[SCHEMA_ID]) as [schema_name],t.NAME as [table_name] ,i.rows from sys.tables t INNER JOIN sysindexes i ON (t.object_id = …
Various serialization functions 123456789101112131415public static string SerializeObject(object obj) { if (obj == null) { return string.Empty; } System.Xml.Serialization.XmlSerializer serializer = new System.Xml.Serialization.XmlSerializer(obj.GetType()); string s …
12345$> mysql -u ‘root’ -p mysql> create database atestdatabase; mysql> create user ‘myuser’@’localhost’ identified by ‘secret’; mysql> grant all on atestdatabase.* to ‘myuser’@’localhost’;
When trying to activate Windows 8 Enterprise, the error “DNS name does not exist” is shown. To resolve this, issue the following command from an elevated permissions command prompt. 1slmgr.vbs …
To resize the Windows VM Disk issue the command (where size is in MB): 1$ VBoxManage modifyhd Windows7.vdi –resize 30720 Afterwards, boot the VM and use Control Panel -> Administrative …
When getting the following error when using impdp: 1ORA-00439: feature not enabled: Deferred Segment Creation Alter the impdp syntax (add the version): 1impdp user/secret@ORACLE11G schemas=USERSCHEMA directory=export_dir dumpfile=export.dmp logfile=output.log version=10.2
Oracle 11gr2 Enterprise data pump export does not include 0 row tables 1C:\> expdp user/secret@SID DUMPFILE=out.dmp SCHEMAS=user LOG=out.txt To correct, extend 0 row tables: 1SELECT ‘ALTER TABLE ‘ || TABLE_NAME …
