Viewing 15 posts - 1,411 through 1,425 (of 13,445 total)
a foreign key constraint between the tables could block other spids from updating or inserting data due to locks,
October 20, 2015 at 8:02 am
schleep (10/15/2015)
Version 10 of smo and smoextended are both there; same on my SQL Servers.
hmm; and the database? [AdventureWorks2012] definitely exists on your local machine, right? if you obfuscated it,...
October 15, 2015 at 10:04 am
sa02000 (10/15/2015)
Is there a free version of SQL server...
October 15, 2015 at 10:01 am
i would think it has something to do with the object Microsoft.SqlServer.Management.SMO.Server that got created; is this a new local machine? maybe you didn't install SMO when you installed ...
October 15, 2015 at 9:54 am
well obviously, the backup has to be available between both machines.
you can simply start a backup job and script it.
you get results something like this:
BACKUP DATABASE [ProductionDb]
TO...
October 15, 2015 at 8:18 am
i have this saved in my snippets; does ~7 miles sound correct for what you posted?
Miles
6.99824265061246
DECLARE
@Latitude NUMERIC(9, 6),
@Longitude NUMERIC(9, 6),
@MyLatitude NUMERIC(9, 6),
@MyLongitude NUMERIC(9, 6)
Set @Latitude =...
October 15, 2015 at 8:01 am
i think you also need to set connectiontimeout as well.
Each object can have it's own time timeout: SQLBulkCopy , SQLCommand, and SQLConnection all have seperate timeouts, for example.
so if you...
October 15, 2015 at 6:56 am
in my case, we have a "reporting" database the end users have access to; but sometimes they want the freshest data.
they don't have access to production, so my simple solution...
October 15, 2015 at 6:39 am
you can create a stored procedure that does EXECUTE AS OWNER, which will backup, restore etc.
in my case, I have end users that can do excel or a web...
October 14, 2015 at 2:42 pm
i've done exactly that with plain old FOR XML and sp_send_dbmail; why do you need to complicate it with powershell?
here's an old snippet:
Declare @HTMLBody varchar(max),
...
October 14, 2015 at 11:25 am
My advice would be to take the better paying job right now. no doubt.
once you are at a higher rate, it is very , very doubtful that you would find...
October 14, 2015 at 8:21 am
you need a geolocation lookup table with geo coordinates for every address; do you have that?
are you going to call a google web service for it instead?
October 13, 2015 at 1:50 pm
if you have linked servers set up, then yes, it's pretty easy:
SELECT * FROM
[Development].master.sys.server_principals T1
INNER JOIN [UAT].master.sys.server_principals T2
ON T1.name = T2.name
WHERE T1.sid <> T2.sid
if you don.t then you need to...
October 12, 2015 at 9:37 am
so the column containing the HTML is nvarchar(max), i assume, and you are going to spin off the contents to files?
with the schema of the table, we could give you...
October 12, 2015 at 9:32 am
just for fun, i grabbed the Ashley Madison database bittorrent, which is in the form of MySQL dumps, brought it into MYSQL, and then tried to import it into SQL...
October 12, 2015 at 9:22 am
Viewing 15 posts - 1,411 through 1,425 (of 13,445 total)