Viewing 15 posts - 4,006 through 4,020 (of 13,469 total)
what does your connection string look like?
are you putting servername-comma-port in the connection string? i know it's common for people to use a semicolon by mistake.
for example
Private Const...
February 14, 2013 at 7:03 am
uggh; looks like you are doing something in a trigger(inserting/updating into another server?) that should be done in a service broker, or a schedule job that would do...
February 14, 2013 at 6:30 am
I'd blame the application that might be inserting rows into the table; chances are the code is inserting a default of zero from the application, which is outside of the...
February 13, 2013 at 8:22 am
not sure about the trigger being what you want to do or not...
it should be an instead of trigger and not a FOR/AFTER trigger, i think
a float cannot have an...
February 13, 2013 at 7:40 am
jpomfret7 (2/13/2013)
I'm looking for a tool that would allow me to group objects together and assign permissions based on those groups. Such as Joe gets rights to all...
February 13, 2013 at 7:35 am
I'd go with the powershell as well, but here's one more alternative:
I've used SQLRecon in the past, which is free and did the job for me, but was last...
February 13, 2013 at 7:22 am
side note to mister.magoo: which SSMS add on is that that lets you group totals from the results grid?
February 13, 2013 at 5:43 am
CTE with variables? sure, it's just like any other SELECT statement WHERE SomeColumn = @Param is certainly valid; just declare the variables before teh CTE, adn make sure you end...
February 12, 2013 at 2:57 pm
newbieuser (2/12/2013)
February 12, 2013 at 2:40 pm
UT excellent job with the DDL and sample data;
does this give you the results you are looking for?
SELECT
ID,
TTYpe,
TTime,
COALESCE(NULLIF(TFunction, ''), TStatus) AS...
February 12, 2013 at 2:15 pm
bah the above won't work because of the local table.
divide and conquer is what you'll need to do i think.
i would try to use a CTE that gets just the...
February 12, 2013 at 1:34 pm
amybe...but the problem with open query is your command has to be a static string...no variable, or concatenation of stirngs plus variables are allowed.
how would this worl for you:
SELECT *...
February 12, 2013 at 1:28 pm
at least viewing the estimated execution plan would give you a ballpark number;

February 12, 2013 at 12:24 pm
it works for me fine when i use
EXEC(@ViewStr)
--or
EXEC sp_ExecuteSQL @Statement = @ViewStr
I don't think you need the parameters in the EXEC anyway;
the string passed doesn't have...
February 12, 2013 at 9:13 am
i believe that unless you have started your instance with trace flag 1807, the server can only attach databases that exist on local, and not network storage.
the trace flag is...
February 12, 2013 at 7:07 am
Viewing 15 posts - 4,006 through 4,020 (of 13,469 total)