Viewing 15 posts - 10,726 through 10,740 (of 13,469 total)
here's an example which uses the FORXML to produce a comma delimited list as a result for each ID:
is this what you were after:
Resource_Id Skills ...
July 29, 2009 at 10:59 am
tom.goehring (7/29/2009)
Did you ever get a chance to create the procedure for the steps below:
3) Install IIS (please include with what pieces to install and configure)
4) How do I create...
July 29, 2009 at 9:10 am
there is a script submission that loads all the trace files into a table here:
Default Trace Load of All 5 Files[/url]
you could easily change the command from '*.trc" to logins*.trc"...
July 29, 2009 at 7:36 am
nope, no other way. even the GUI does that behind the scenes...the ALTER TABLE clause only lets you changing some of the other attrivutes for column, like ISNULL,...
July 29, 2009 at 6:37 am
what you want is the sp_rename function.
with that, you can rename any object...table, constraint,column...doesn't matter.
to rename a column, the syntax is like this:
EXEC sp_rename 'SchemaName.TableName.ColumnName', 'NewColumnName, 'COLUMN';
July 29, 2009 at 6:24 am
how about wrap it with try catch, and use dynamic SQL instead; that way it won't test for the connection until the EXEC fires:
BEGIN TRY
Begin Transaction
IF @p_LoadExcelB = 1
BEGIN
SET @sql='
INSERT...
July 28, 2009 at 9:17 pm
ok, i know that the moment you use a function on a JOIN or WHERE condition, you lose the ability to use indexes, and it requires a table scan.
Your #1...
July 28, 2009 at 5:42 pm
why not create a view, so it is always ready on demand?
CREATE VIEW MyTrace As
Select * from FROM ::fn_trace_gettable(c:\my_trace.trc", default)
July 28, 2009 at 3:29 pm
probably a misstatment, but you can't use a trigger i think, but you can certainly use a script to test for your invalid columns:
here's an example of the first two...
July 28, 2009 at 12:31 pm
OK I've got ~140 or so points accrued from the QOD section, that are not applied yet to the points viewed in the forums; right now my rank is "SSCrazy",...
July 28, 2009 at 9:16 am
after you stop and restart the server, the tempdb gets recreated....if it is small by default,(say 10 meg) the first SQL that inserts those 11,000 rows into the temp table...
July 28, 2009 at 9:10 am
i have this saved in my snippets,it's supposed to find all zip codes within a given distance, assuming you have a table with zipcode, lattitude,longitude in it:
hope this helps:
/*
Returns zip...
July 28, 2009 at 8:50 am
isn't the table scan and not using the index due to the SARGable condition?(Search ARGument)
column = @value can be used to search as boolean match to the index
column is...
July 28, 2009 at 8:21 am
adrish sorry about the late followup; the forum doesn't seem to notify the author for posts on content the way it does for forum threads.
since this version got created, I've...
July 28, 2009 at 7:40 am
show us your function call;
here's an example of using a linked server to get a function call back, does this help?
exec ServerName.master.dbo.sp_executesql N'Select SERVERPROPERTY(''MachineName'')'
July 28, 2009 at 7:27 am
Viewing 15 posts - 10,726 through 10,740 (of 13,469 total)