Viewing 15 posts - 2,116 through 2,130 (of 13,469 total)
dynamic sql to create the database? that won't fix any warnign where you have a USE [NewDB] that doesn't exist at parse time, i think:
if NOT EXISTS(SELECT * FROM...
January 9, 2015 at 1:13 pm
I know you explicitly said same server, but that's too weird.
so theres no chance you are in a multi server environment, and the window you look at is test/development, but...
January 9, 2015 at 1:08 pm
my first google for "linked server analysis servers" looked good to me,: they both showed examples of crating the linked server and the open query command as well.
select * from...
January 9, 2015 at 6:36 am
this is what they call a "ragged right" file format, and bcp and bulk insert cannot handle that;
see this post for an example of how to do it, but the...
January 8, 2015 at 12:00 pm
Jeff Moden (1/8/2015)
January 8, 2015 at 9:17 am
jrodriguez 62807 (1/7/2015)
January 7, 2015 at 1:29 pm
it's a question to make you actually talk about details and solving difficult processes, so they can get some insight into how you solve problems.
it's not a real, qualitative question...
January 7, 2015 at 1:21 pm
i bleieve you recently modified this location in SSMS, which decides whether something is scripted with a if not exists selection:
it may have been modified as a patch or something,...
January 5, 2015 at 7:35 am
15 filewatchers, That's what i was originally thought i might have to do, and then i thought a script task that uses some code, that institutes a filewatcher would be...
January 5, 2015 at 5:50 am
isn't it true that only procedures that have been called would have a cache in place?
so if it's not in cache, it's either been aged out, or never called,...
January 2, 2015 at 1:27 pm
i think it's application name and hostname(workstationID) that can be spoofed. username , not a login, bu if your priviledges were high enough you can start using execute as...
January 2, 2015 at 11:20 am
if you include System.IO, you can use the FileInfo object:
--this is vb.Net code
Dim MyFileInfo...
January 2, 2015 at 5:30 am
a quick follow up:
when you run the command above , you get results like this:
you cna see any of the blue links or the plan itself becomes clickable.....
one of...
December 31, 2014 at 1:37 pm
yes you can..
there is some really nice optional features for the procedure.
try running it with these flags:
EXEC sp_whoisactive @get_outer_command = 1,@get_plans=1,@get_full_inner_text=1
here's the list of parameters(sp_help sp_whoisactive)
Parameter_nameTypeLengthPrecScaleParam_orderCollation
@filtersysname256128NULL1SQL_Latin1_General_CP1_CI_AS
@filter_typevarchar1010NULL2SQL_Latin1_General_CP1_CI_AS
@not_filtersysname256128NULL3SQL_Latin1_General_CP1_CI_AS
@not_filter_typevarchar1010NULL4SQL_Latin1_General_CP1_CI_AS
@show_own_spidbit11NULL5NULL
@show_system_spidsbit11NULL6NULL
@show_sleeping_spidstinyint1307NULL
@get_full_inner_textbit11NULL8NULL
@get_planstinyint1309NULL
@get_outer_commandbit11NULL10NULL
@get_transaction_infobit11NULL11NULL
@get_task_infotinyint13012NULL
@get_locksbit11NULL13NULL
@get_avg_timebit11NULL14NULL
@get_additional_infobit11NULL15NULL
@find_block_leadersbit11NULL16NULL
@delta_intervaltinyint13017NULL
@output_column_listvarchar80008000NULL18SQL_Latin1_General_CP1_CI_AS
@sort_ordervarchar500500NULL19SQL_Latin1_General_CP1_CI_AS
@format_outputtinyint13020NULL
@destination_tablevarchar40004000NULL21SQL_Latin1_General_CP1_CI_AS
@return_schemabit11NULL22NULL
@schemavarchar-10NULL23SQL_Latin1_General_CP1_CI_AS
@helpbit11NULL24NULL
December 31, 2014 at 12:57 pm
yep a rough example: set parseonly makes sure it's syntactically correct, but doesn't check for object existance:
DECLARE @code varchar(max) = 'SELECT * FROM syys.tables';
EXEC ('SET NOCOUNT ON;SET PARSEONLY ON;'+ @code)
EXEC(@code)--Error...
December 31, 2014 at 12:46 pm
Viewing 15 posts - 2,116 through 2,130 (of 13,469 total)