Viewing 15 posts - 76 through 90 (of 506 total)
October 5, 2018 at 3:00 pm
SELECT pcs.MACHINE_NAME
A utility table would be more efficient and if you are using a case insensitive collation all it would need is the actual list of proper cased months. If you...
October 5, 2018 at 2:33 pm
Test on a test or development server before deployment.
October 5, 2018 at 2:24 pm
DECLARE @STR nvarchar(20)='''00000000000';
SELECT @STR String, Replace(@str, '''', '') ReplacedString;
October 4, 2018 at 12:48 pm
Ditch your DTS. In SSMS use the Import wizard to generate a package to do the import, save it to the file system. Create a new project in SSDT, delete...
October 4, 2018 at 12:44 pm
https://blogs.technet.microsoft.com/heyscriptingguy/2009/08/13/hey-scripting-guy-can-i-query-a-microsoft-access-database-with-a-windows-powershell-script/
https://stackoverflow.com/questions/25682703/connect-to-sql-server-database-from-powershell
October 3, 2018 at 12:19 pm
Use dynamic SQL and build your query joining sys.tables and sys.columns on object_id where is_identity = 0 and a cursor.
October 3, 2018 at 11:56 am
PowerShell or VB script and a Windows Task Scheduler job would be the easiest to automate.
October 3, 2018 at 11:51 am
I suggest using Registered Servers in SSMS and registering all your SQL Servers under a Server Group then right click the group and select new query. In the new query...
October 3, 2018 at 11:36 am
WITH t (EName, UnitsSold, Category)
AS
(
SELECT *
FROM (VALUES ('Nik', 12, 'Red')
, ('Bob', 10, 'Red')
, ('Luis', 10, 'Red')
, ('James', ...
October 2, 2018 at 4:43 pm
WITH x
AS
(Select A.EMP
, A.SpanReason
, A.EventStartOrEndDate
, ROW_NUMBER() OVER (PARTITION BY A.EMP ORDER BY A.EventStartOrEndDate ) as RN
FROM
...
September 27, 2018 at 6:29 pm
Add a Row_number() OVER(PARTITION BY mac September 26, 2018 at 5:37 pm
You could change to asynchronous with manual failover and take the witness out the AG or work on improving the network configuration to avoid the automatic failovers.
September 26, 2018 at 3:47 pm
What do you get with:SELECT Object_Name(1497165209) ObjName
September 26, 2018 at 10:58 am
Viewing 15 posts - 76 through 90 (of 506 total)