Viewing 15 posts - 346 through 360 (of 13,460 total)
the restore headeronly command can do what you are asking
the results has a column named "SoftwareVersionMajor", and "SoftwareVersionMinor", where you can get things like 13,0 for SQL2016, for...
Lowell
September 15, 2017 at 9:24 am
where are you displaying this, in SSMS or in some SSRS report? Lowell
you can convert the values to varchar with a case statement, but is that what you want?
--help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!
September 14, 2017 at 2:15 pm
I've seen this as a cross check that the big file is not still currently being written to; ie the file exists, and would be open but potentially if read would...
Lowell
September 14, 2017 at 12:24 pm
it is not possible that a database restore skips a table.
that means the table was empty at the time of the backup.
you most likely need to go to a...
Lowell
September 13, 2017 at 8:23 am
nope, you have to drop the foreign keys that reference the PK, then drop the PK, then recreate a new PK and -the foreign keys so they now feature the...
Lowell
September 13, 2017 at 7:06 am
I have to use this kind of logic to maintain a suite of tables that are consistent as a group, ie all data s of 8am, and I can hot...
Lowell
September 5, 2017 at 2:43 pm
how about swapping objects in and out of a schema? doing a bunch of transfers is extremely fast, but like Chris said, you are consuming resources on production to do the...
Lowell
September 5, 2017 at 1:00 pm
SSDT can connect to FTP but not SecureFTP/SFTP.. FileZilla or many other executables handle both FTP and SFTP.
if that is what you are connecting to, you'll need to...
Lowell
September 2, 2017 at 3:37 am
so do you want to arrange your data as columns, or one column that is comma delimted?
yopu did not provide an example query or expected output, but here's...
Lowell
August 31, 2017 at 6:05 am
you have to be patient. it finishes rolling back when it finishes. maybe 15 to 30 hours from now; it's common that a rollback can take twice as long as...
Lowell
August 31, 2017 at 5:48 am
I think you should have fixed the one query that was the issue, since you already identified it as a problem.
instead you changed the entire server behavior to account...
Lowell
August 30, 2017 at 7:59 am
i do something exactly like this in PowerShell; with that, i can capture the output of the script, whether it was an info message, a data set or an error...
Lowell
August 25, 2017 at 7:52 am
here's a quick and dirty version of powershell, detailing what Grant was referencing
$FileNames = Invoke-SQLCMD -Query "SELECT top 5 'C:\Data\' + name + '.sql'...
Lowell
August 22, 2017 at 3:42 pm
I don't know that ConenctionProperty is actually database functionality . function. it's server functionality related to the connection, right?
this works in SQL2008 and above, and I just checked, and...
Lowell
August 21, 2017 at 1:55 pm
sure.
this scripts out the synonyms exactly as is, so I simply added a replace on the definition to change the whichever synonyms had a base_object_name that contains 'CONTOSO' to have...
Lowell
August 10, 2017 at 8:47 am
Viewing 15 posts - 346 through 360 (of 13,460 total)