Viewing 15 posts - 91 through 105 (of 497 total)
jared-709193 (10/19/2011)
October 23, 2011 at 10:30 pm
Found a workaround: if you use "IncludeIfNotExists" it would script the views using dynamic sql:
SL SQLSERVER:\SQL\"(local)"\DEFAULT\Databases\"MyDb"\Views
$so = new-object Microsoft.SqlServer.Management.Smo.ScriptingOptions
$so.IncludeIfNotExists = 1
dir | %{$_.Script($so) + 'GO' | Out-File "C:\Temp\04_Views.sql" -Append}
SET ANSI_NULLS...
October 20, 2011 at 9:21 pm
Roust_m (10/18/2011)
anthony.green (10/18/2011)
couple...
October 18, 2011 at 11:54 pm
jared-709193 (10/18/2011)
October 18, 2011 at 5:06 pm
jared-709193 (10/18/2011)
Roust_m (10/18/2011)
jared-709193 (10/18/2011)
October 18, 2011 at 5:05 pm
anthony.green (10/18/2011)
couple of...
October 18, 2011 at 5:03 pm
jared-709193 (10/18/2011)
October 18, 2011 at 4:32 pm
Dev @ +91 973 913 6683 (10/18/2011)
The failure may or may not happen. If it does happen, I will use scripts and re-initialise the data.
Will you not require having...
October 18, 2011 at 4:26 pm
jared-709193 (10/17/2011)
Roust_m (10/16/2011)
October 17, 2011 at 3:44 pm
Dev @ +91 973 913 6683 (10/17/2011)
I want to script them out and in case of any failure restore the databases from the script and then re-initialise the...
October 17, 2011 at 3:38 pm
MysteryJimbo (10/17/2011)
Dev @ +91 973 913 6683 (10/17/2011)
I don't want to backup them, so to avoid any performance impact,
If it's just object definitions, scripting make sense else it...
October 17, 2011 at 3:36 pm
Dev @ +91 973 913 6683 (10/17/2011)
I don't want to backup them, so to avoid any performance impact,
If it's just object definitions, scripting make sense else it (script...
October 17, 2011 at 3:33 pm
Yes, I know, but I need to automate it and run it from an sql job, not manually.
October 17, 2011 at 12:13 am
Ok, found it out: yes it would remove the record from the subscriber
October 14, 2011 at 12:04 am
GilaMonster (9/21/2011)
EXEC sp_MSforeachdb N'DECLARE @s-2 VARCHAR(200);
USE ?;
IF ''?'' LIKE ''MyDb__''
BEGIN
IF EXISTS (SELECT * FROM sys.columns WHERE name = ''PriceListID'' and OBJECT_NAME(object_id) =...
September 21, 2011 at 2:34 am
Viewing 15 posts - 91 through 105 (of 497 total)