Viewing 15 posts - 961 through 975 (of 1,838 total)
You mention databases, are some of the objects in different databases? That would certainly not show up here.
May 4, 2017 at 2:47 pm
not sure why, when I replace the procedure name in the function call:
OBJECT_ID('dbo.SP1','P')
I get listing of all views, tables, functions, and other procedures...
May 4, 2017 at 2:00 pm
If you keep the 3 SSIS packages separate and have a SQL Agent job with multiple steps, it will be much easier to rerun the later steps if a step...
May 4, 2017 at 8:44 am
you can try to recursively query the metadata like this:
-- objects referenced by specified stored proc
;WITH ref_list AS
(SELECT o.object_id, OBJECT_SCHEMA_NAME(o.object_id) AS schema_name, o.name...
May 4, 2017 at 8:36 am
I think maybe you just need multiple WHEN clauses in the CASE, instead of multiple CASE statements. maybe something like:
update table
set col1 =
case
May 3, 2017 at 3:27 pm
I'm not quite sure what you're trying to accomplish, but offhand it would seem the SSIS package would have nothing to do with any database transaction in this case. You'd...
May 3, 2017 at 3:17 pm
by client do you mean just the native client libraries, or actual client tools like Management Studio, SQLCMD, etc.? In general, you can have multiple versions of the client libraries...
May 3, 2017 at 1:50 pm
May 3, 2017 at 12:52 pm
Funny thing... documentation seems to say that SECURITYADMIN would be enough to perform database level permissions:
https://docs.microsoft.com/en-us/sql/relational-databases/security/authentication-access/server-level-roles
but I tried it out in a sandbox environment without db_securityadmin, and...
May 3, 2017 at 12:10 pm
May 3, 2017 at 11:46 am
is it possible that the SomeUsers group is a member of another group that does have a login on this instance? You can try this to see what the "permission...
May 2, 2017 at 2:59 pm
I'm thinking the statuses have a priority, not necessarily that the logic conflicts. Here's my attempt, with results similar to Scott's:
CREATE TABLE T_USERPROCESS_STATUS
( varchar(6),
May 2, 2017 at 1:10 pm
If all the SSIS package is doing is calling the batch file, then why couldn't you just use a job step of type "Operating system (CmdExec)"? You can setup credentials...
May 2, 2017 at 11:25 am
Yes, you can restore backups of user databases to the new SQL Server, and it will perform any needed upgrade as part of the restore process. You don't want to...
May 1, 2017 at 10:51 am
in newer versions of SQL Server you could probably use windowing functions with your count:
http://sqlmag.com/sql-server-2012/how-use-microsoft-sql-server-2012s-window-functions-part-1
April 28, 2017 at 8:41 am
Viewing 15 posts - 961 through 975 (of 1,838 total)