Viewing 15 posts - 2,356 through 2,370 (of 2,701 total)
perfectly normal - floats do not convert to varchar the way you expect.
DECLARE @myInt float = 5555555;
SELECT CAST(@myInt AS VARCHAR(12)), RIGHT(REPLICATE('0',8) + CAST(cast(@myInt as int) AS VARCHAR(8)),8)
July 29, 2018 at 4:35 am
small error on it as first 2 options are the same - did pick up one of the 2 set nulls off and got the wrong one
July 29, 2018 at 1:21 am
This really should not be sent to standard output but rather redirected to a database or a file as volumes can be quite high.
Import-Module sqlps -DisableNameChecking
July 28, 2018 at 4:43 pm
try
Import-Module sqlps -DisableNameChecking
$path='C:\localhost\serveur.txt'
$serveurs=Get-Content -path $path
$query="exec xp_readerrorlog 0,1"
foreach ($server in $serveurs)
{
invoke-sqlcmd -Query $query -ServerInstance $server
}
July 28, 2018 at 11:18 am
you also need to take in consideration licensing - if your dev boxes are using a SQL Server Developer license (being it a MSDN one or not) they can not...
July 25, 2018 at 9:05 am
Issue with MS CRM is that you cannot insert data directly onto their tables as doing so will void the maintenance contract.
if this is a PasS or SaaS you...
July 22, 2018 at 3:40 am
1 - and how many files you backing up to?
2 - Using backup compression or not?
3 - How many cores on the server?
4 - Server Memory?
July 20, 2018 at 11:00 am
This is AWS - but it can easily go to next level of vm (m4.2large - 4 CPU, 16 GB RAM)
Azure you could easily go to a higher spec...
July 20, 2018 at 8:45 am
Haven't tried loading a billion rows, that's for sure. I don't actually know...
July 19, 2018 at 7:32 am
ìn case anyone wishes to look at it.
Its not a complex proc - its just a rather complex query
alter procedure [Schema]. @DateFrom date
,...
July 18, 2018 at 10:35 am
Possible options
- define the file as not having headers on it, load into a staging table with all columns defined similar to what you did, and then parse...
July 18, 2018 at 1:13 am
can you put code for that proc here? if it is the one I saw before it won't deal with dates datatypes.
July 15, 2018 at 1:42 am
Really you should not set it to off and should code accordingly.
But in either case it is doing what the manual says.
https://docs.microsoft.com/en-us/sql/t-sql/statements/set-ansi-nulls-transact-sql?view=sql-server-2017
set...
July 14, 2018 at 1:03 pm
You could setup a msa/gmsa just to perform that task - give it the required permissions to the folders on both servers, and have on a windows schedule on one...
July 13, 2018 at 3:10 pm
As this is a error that occurs only at times, mainly at particular periods it leads me to believe the most likely cause is something on the network temporarily blocking...
July 13, 2018 at 3:03 pm
Viewing 15 posts - 2,356 through 2,370 (of 2,701 total)