Viewing 15 posts - 1,036 through 1,050 (of 5,393 total)
BC-36233 (10/28/2014)
NET START MSSQLSERVER /f /T3608
You can't start the service like this. Just grab the service target (the path to the executable sqlservr.exe) and run it in a cmd window...
-- Gianluca Sartori
October 28, 2014 at 8:25 am
I have used this in the past with success.
If you're working on a whole folder at a time, you can set the source folder and the target folder using...
-- Gianluca Sartori
October 28, 2014 at 8:18 am
spaghettidba (10/28/2014)
NineIron (10/28/2014)
What does "non sargable" mean?It means it cannot be evaluated using an index.
Which is usually a bad thing, performance wise.
-- Gianluca Sartori
October 28, 2014 at 6:03 am
NineIron (10/28/2014)
What does "non sargable" mean?
It means it cannot be evaluated using an index.
-- Gianluca Sartori
October 28, 2014 at 6:02 am
This will do the trick
SELECT *
FROM TEST
WHERE CAST(CASE Result WHEN '>5.0' THEN '6.0' ELSE Result END AS float) > 4.0
However, casting will make your predicate non-sargable.
-- Gianluca Sartori
October 28, 2014 at 5:39 am
It seems to me the attack aimed at obtaining the database schema definition.
If the application is vulnerable to sql injection, the attacker could have gained access to anything.
-- Gianluca Sartori
October 28, 2014 at 5:11 am
Powershell could be the right tool for this job.
See an example here: http://sethusrinivasan.wordpress.com/2012/01/11/powershell-script-to-run-query-against-many-servers-and-send-combined-output-as-email/
-- Gianluca Sartori
October 28, 2014 at 4:49 am
Does this happen from the GUI only or from script as well?
-- Gianluca Sartori
October 28, 2014 at 3:42 am
Nope.
One server, one license.
-- Gianluca Sartori
October 28, 2014 at 3:39 am
Based on what you posted, I suppose that you're not showing us all the code, but just a small portion of it.
Can you share the whole statement, please?
-- Gianluca Sartori
October 28, 2014 at 3:38 am
Like2SQL (10/27/2014)
-- Gianluca Sartori
October 28, 2014 at 2:33 am
This should do the trick:
-- merge with output
MERGE INTO @originalTable AS trg
USING @otherTable AS src
ON trg.logicalKey = src.logicalKey
WHEN MATCHED
THEN UPDATE SET trg.datafields = src.datafields ...
-- Gianluca Sartori
October 27, 2014 at 10:36 am
Looks like OUTPUT is not an issue here.
For instance, this works:
-- original table
DECLARE @originalTable TABLE (
id int,
logicalKey varchar(50)
)
-- some sample data
INSERT...
-- Gianluca Sartori
October 27, 2014 at 9:49 am
Good point, Jeff.
However, building a sophisticated script like Ola's is not something I would recommend to a novice. I would start from something easier.
-- Gianluca Sartori
October 27, 2014 at 9:17 am
Try to capture the statements issued by SSMS with Profiler.
Maybe it's a client thing and the parameters supplied by SSMS are wrong.
-- Gianluca Sartori
October 27, 2014 at 8:27 am
Viewing 15 posts - 1,036 through 1,050 (of 5,393 total)